I’ve asked to fix an error in an old wordpress 2.9.2 website (php 5.4 installed). The frontend works ok but in the backend, after successful login, there are PHP Warnings everywhere:
PHP Warning: Creating default object from empty value in C:InetpubwwwrootLocalUseraaawp-adminincludestheme.php on line 19
PHP Warning: Invalid argument supplied for foreach() in C:InetpubwwwrootLocalUseraaawp-contentpluginssitepress-multilingual-cmsmenudashboard-widget.php on line 94
PHP Warning: Creating default object from empty value in C:InetpubwwwrootLocalUseraaawp-adminincludespost.php on line 342
I don’t want to update wordpress or do something big with this website. I just need to make these warnings go away. I tried to disable them with
WP_DEBUG, php.ini, .haccess. Nothing worked.
It’s strange that the warnings are displayed in administration pages only.
What can I do to fix this?
Read more here: PHP Warnings in an old 2.9.2 wordpress installation