• Hallo,

    Thank you for your very useful plugin. I am using PHP 7.2 and my debug file is filling with PHP notices and stack traces. Would appreciate if you can fix them.

    PHP Notice:  Trying to get property 'locale' of non-object in \wp-admin\update-core.php on line 40
    PHP Notice:  Trying to get property 'locale' of non-object in \wp-admin\update-core.php on line 43
    PHP Notice:  Trying to get property 'current' of non-object in \wp-admin\update-core.php on line 46
    PHP Notice:  Trying to get property 'locale' of non-object in \wp-admin\update-core.php on line 46
    PHP Notice:  Trying to get property 'response' of non-object in \wp-admin\update-core.php on line 56
    PHP Notice:  Trying to get property 'current' of non-object in \wp-admin\update-core.php on line 93
    PHP Notice:  Trying to get property 'locale' of non-object in \wp-admin\update-core.php on line 94
    PHP Notice:  Trying to get property 'locale' of non-object in \wp-admin\update-core.php on line 103
    PHP Notice:  Trying to get property 'locale' of non-object in \wp-admin\update-core.php on line 109
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Reisetiger

    (@reisetiger)

    Hi Malae!
    These messages do not come from the plugin. It may be that they are caused by your old WordPress version. Then you can not do anything about it. But only notices, no need to worry.
    Greetings, Holger

    Hallo Holger,

    Thank you for your reply. I understand the notices are not a serious problem, but I have the plugin running on several sites with localhost. I presume the plugin code is the cause as they only occur when the plugin is activated and fill up the debug.log file.

    Plugin Author Reisetiger

    (@reisetiger)

    Which WordPress version? I’ll have a look.

    You can also disable the plugin after the downgrade is done. It does not need to be active permanently.

    I am running WordPress 4.9.10.

    I do deactivate the plugin, but this prevents a very useful side benefit especially for sites where the Admin may inadvertantly update to 5.x.x. This is because deactivating removes the message “You have the latest version of WordPress. Future security updates will be applied automatically.” from the Updates page and then shows the version 5.1.1 notification and update nag.

    I installed the plugin in a site running WP 5.1.1 with debug on and saw no notices.

    Plugin Author Reisetiger

    (@reisetiger)

    I’m sorry, but I cant reproduce your problem. I now have my test environment on PHP 7.2 with WordPress 4.9.10 and debug on. But your notices do not appear here.

    Maybe you will turn off debug?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP notices’ is closed to new replies.