Wordpress - PHP Fatal error: Cannot access property WP_Hook::$callbacks - php

Starting from yesterday (judging by the error logs), out of the blue, we notice the following error on the site:
PHP Fatal error: Cannot access property WP_Hook::$callbacks in …/public_html/wp-includes/class-wp-hook.php on line 77
The site is working (possibly thanks to the caching plugin), but all attempts to login to admin panel cause the error 500.
We recovered the site from a backup from 6 of March (when the last successful login was), but the error persists.
We also tried to deactivate all the plugins (by renaming the folders via FTP), but still the same error. (Now the work of plugins is recovered from a backup.)
The hosting could not help to solve this problem.
Where to look next?
Site: http://russificateschool.com/
Thank you in advance for the help.

Removing and uploading wp-includes from a fresh WP package solved the problem.

You'll want to overwrite your existing wp-admin and wp-includes folders with baseline versions.
First, get the version number of your Wordpress install by FTPing into
your web host where Wordpress is installed.
Download the wp-includes/version.php and view it, you'll see the version number.
Go to https://wordpress.org/download/releases/ and download the gz or zip file for your version.
Unpack the zip file that you downloaded. This will create folders for wp-admin, wp-content, and wp-includes with other files.
On the web host, rename your wp-content/plugins folder to wp-content/plugins-bak.
On the web host, delete the old wp-includes and wp-admin directories.
Upload the new wp-includes and wp-admin directories to your web host, in place of
the previously deleted directories.
Upload the individual files from the new wp-content folder to your existing wp-content folder, overwriting existing files. Do NOT delete your existing wp-content folder. Do NOT delete any files or folders in your existing wp-content directory (except for the one being overwritten by new files).
Upload all new loose files from the root directory of the new version to your existing wordpress root directory.
Test your site to see if it loads. If it does, on the web host, rename your wp-content/plugins-bak folder to wp-content/plugin.

Related

Magento - Unable to write to the configuration file - tried almost everything

Trying to upgrade from Magento 1.9.3.3 to 1.9.3.4
but I was able to login, going through some help I made couple of changes and finally renamed the folder downloader and uploaded a freash downloader folder to Magento site root.
But I am getting error
Unable to write to the configuration file.
I have also changed to folder permission for downloader to 777.
The file cache.cfg and connect.cfg are created in downloader folder.
The file created cache.cfg and connect.cfg created are owned by root.
but the error still persists. I am unable to login to Magento connect Manager with the correct admin password.
What I am still missing? I have run out of options.
Any suggestion will be greatly appreciated.
What I am still missing

Wordpress error by uploading media files: Missing a temporary folder

I know there's a lot of similar topics, but none of them is solving my problem.
I just downloaded a website from my computer as localhost to a server.
The problem is I don't see any of images which were downloaded on the server with WordPress on my local computer. And if I try to upload them directly through the admin panel I get this error:
Missing a temporary folder.
I tried configuring php.ini and setting a temporary folder for uploads
I don't have any public_html folder
The permission rights are OKAY
And also I had another error earlier (but I don't know what happened) uploading to the wp-content/uploads folder.
UPD: RESOLVED! Just needed to check twice if there is no ; on the line before upload_tmp_dir and if the path to the temporary folder is written as a string.

Unable to import wordpress xml file in Wordpress

This is first time developing website using Wordpress. While importing pages and posts on localhost using wordpress import plugin, I encountered following error.
Unable to create directory uploads. Is its parent directory writable by the server?
I tried changing wp-content folder's permission to 777 -> didn't work
I tried changing ownership of wp-content folder to apache:apache -> didn't work
I tried manually creating uploads folder under wp-content. With this change, I was able to pass the above error, but then I got the following error.
Sorry, there has been an error. The uploaded file could not be moved to uploads.
What else should I try to import Wordpress xml file?
Why the Wordpress cannot create uploads folder?
You can check the web server's temp directory for PHP.if the apache:apache has no permission on this directory,you can't move tempfile to uploads.if so,you can change the permission of the web server's temp directory.

install wordpress from zip

I have become completely frustrated trying to install WP on my server (hosted at home). I am able to launch the WP content manager and when I find the theme I would like to install, it asks me for my server FTP login. I give it the same logins I use for filezilla but it will not work. I have tried every combination.
So I tried installing from ZIP. I go into "upload" and try to upload the .zip I downloaded from the developer but it takes me again to the FTP login. Same problem as before. The theme I want is called "application" by manshi gori.
here
What am I doing wrong? Thanks!
Here is a way in which you can Disble the FTP Credentials for installing Plugins and Themes from backend
Just Add the following Code in wp-config.php
define('FS_METHOD','direct');
You should check the file permissions:
All files should be 644 and all folders 755.

Wordpress Error: A TimThumb error has occured

I've encountered an error after installing wordpress onto a new domain.
I've contacted the theme developer and have had no luck resolving the issue.
I receive the following error when i copy the image link:
Warning: touch() [function.touch]: Utime failed: Permission denied in /home/domain/public_html/wp-content/themes/folioway/core/thumb.php on line 190
Warning: Cannot modify header information - headers already sent by (output started at /home/domain/public_html/wp-content/themes/folioway/core/thumb.php:190) in /home/domain/public_html/wp-content/themes/folioway/core/thumb.php on line 413
A TimThumb error has occured
The following error(s) occured:
Could note create the index.html file.
Query String : src=/wp-content/uploads/2012/03/CoffeetabeBox-custom_web1.jpg&w=187&h=187&zc=1&q=90
TimThumb version : 2.8.2
I have not modified anything else aside from some CSS.
The thumbnails do not appear on the pages, however, the images do appear in lightbox.
I have set the permissions to the cache folder to 777, but this has not resolved the issue.
Any help would be greatly appreciates. Thanks.
It happened to me too, and this is the second time!
If you don't have time to discover why, but you want to keep it working, just rename, or delete your /cache folder; then, create a brand new /cache folder, set permissions to 777, and it will work again.
I found that the cache folder this is referring to is the one within the same folder as timthumb.php - find that file and the related cache folder and give the cache folder 777 permissions.
if you are on a linux based server,
first find the FILE_CACHE_DIRECTORY from the config file by (ex. in linux server open the file in vi commond)
vi /system/web/esupu/wp-content/themes/gadgetry-parent/framework/timthumb/timthumb-config.php
it could be like
define('FILE_CACHE_DIRECTORY', '../../cache/');
SO we change the cache folder ownership to user "www-data" which is the default user for Apache web server which runs this php codes,
sudo chown -hR www-data:www-data /system/web/esupu/wp-content/themes/gadgetry-parent/cache/
also, now better check if folder can be writable too (chmod permissions to 777)
Instead of using 777 as others have suggested, use 755 to the /cache folder.
I just delete the cache folder and refresh the page where code was, it started working.
I think it is the problem of file permission.
Headers already sent is usually a symptom of whitespace either at the beginning or the end of the file - check timthumb.php and make sure you have no blank lines or space either before the
The other possibility is that /wp-content/uploads/ is not writable by the web server, but I'd bank on the first one being the cause.
I added this to a php.ini file:
display_errors = Off
display_warnings = Off
output_buffering = On
TimThumb is a separate open source project that is used by many WP plugins.
If updating folder permissions doesn't work for you, another solution which worked for me was to update the plugin's TimThumb script with the most recent version. You can download it here:
https://timthumb.googlecode.com/svn/trunk/timthumb.php
In my case this file was in wp-content/plugins/events-manager/includes/thumbnails
For others that have this issue when using the FiatLux Wordpress Theme, as I am here is the solution:
Open FTP like Filezilla
Navigate to yoursite/wp-content/themes/fiatlux/includes*
Delete the cache folder
Recreate the cache folder, with permission setting 755
Download the updated timthumb.php file from GitHub and replace (I renamed the old one timthumb.old to test
If you use a Media server/ CDN, then be sure to add that site to the $ALLOWEDSITES array in TimThumb.php file
*If using another Wordpress theme, then find the TimThumb.php file and corresponding cache folder in that theme/ plugins folder in wp-content
in
src=/wp-content/uploads/2012/03/CoffeetabeBox-custom_web1.jpg&w=187&h=187&zc=1&q=90
try put a '?' between .jpg and &w, so it will be like this
src=/wp-content/uploads/2012/03/CoffeetabeBox-custom_web1.jpg?&w=187&h=187&zc=1&q=90

Categories