WordPress dashboard error messages
-
Hi,
When I go to ‘Appearance / Customise’ page of the WordPress dashboard panel, I get a dysfunctional page filled with the following error messages:
Notice: Trying to get property of non-object in /home/shishkeb/public_html/wp-includes/nav-menu.php on line 780
Notice: Trying to get property of non-object in /home/shishkeb/public_html/wp-includes/nav-menu.php on line 784
See screenshot: https://postimg.cc/9zKJHBqKWhen I go to ‘Plugins / Add New’ page in the WordPress dashboard panel, I get a page that begins with 10 lines of the following error message:
“Notice: Undefined property: stdClass::$plugin in /home/shishkeb/public_html/wp-includes/class-wp-list-util.php on line 150”
See screenshot: https://postimg.cc/2bP8rJYVWhat is causing this and how can it be resolved?
Regards,
Yunis
P.S. Plugins are not the problem as the problem persisted after all of them were deactivated
-
This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
If you can install plugins, install “Health Check”: https://wordpress.org/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time.
See http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
Steven,
I disabled all installed plugins, reverted to the TwentySixteen theme and the issue is still there. It did not make any difference.
What could be causing this and how can it be resolved?
Yunis
How are you hosting your site?
Maybe your WP install is messed up. Try a manual reinstall:
https://codex.wordpress.org/Upgrading_WordPress#Manual_Update
Steven,
Is the manual reinstallation of WordPress different than doing a “Re-install Now” from the WP dashboard panel?
Yunis
-
This reply was modified 7 years, 5 months ago by
Yunis777.
So much for that idea.
How is your site hosted?
Steven,
It is hosted on at a normal webhost for WordPress managed websites i.e. tsohost.com
Yunis
Is there any caching involved on your site, either through plugins you’ve installed, plugins the host has installed (mu plugins) or at the server level?
Your hosting provider has a post about how to edit your PHP.INI file for your account here:
https://www.tsohost.com/blog/php.ini-the-small-file-that-makes-a-big-difference
Specifically, point number 6 there tells you how to disable the reporting of notices and warnings on your site:
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNINGSamuel,
My webhost changed the setting of the PHP.INI file to “error reporting to E_ALL & ~E_NOTICE & ~E_WARNING’ and nothing changed. The error messages are still there.
Yunis
Do you have WP_DEBUG enabled in your wp-config.php file?
Steven,
In the wp-config.php file I have the following statement included:
“define(‘WP_DEBUG’, true);”.Regards,
Yunis
Change that from true to false.
Steven,
I changed the “define(‘WP_DEBUG’, true);” to “define(‘WP_DEBUG’, false);” wp-config.php file like you advised and it worked. Thank you very much. The error messages in those dashboard pages have disappeared. You saved me from being on the verge of doing a clean WP re-installation. Thanks.
Regards,
Yunis
-
This reply was modified 7 years, 5 months ago by
Yunis777.
I will mark this thread as closed.
-
This reply was modified 7 years, 5 months ago by
The topic ‘WordPress dashboard error messages’ is closed to new replies.