• Resolved Dennis Kelly

    (@chicagomusicguide)


    Good day,

    When loading the customizer in WordPress, I saw the following errors:

    Notice: Trying to get property ‘post_status’ of non-object in /var/www/wp-admin/includes/template.php on line 2121

    Notice: Trying to get property ‘post_status’ of non-object in /var/www/wp-admin/includes/template.php on line 2125

    Notice: Trying to get property ‘post_status’ of non-object in /var/www/wp-admin/includes/template.php on line 2131

    Notice: Trying to get property ‘post_status’ of non-object in /var/www/wp-admin/includes/template.php on line 2135

    Notice: Trying to get property ‘ID’ of non-object in /var/www/wp-admin/includes/template.php on line 2139

    Notice: Trying to get property ‘post_status’ of non-object in /var/www/wp-admin/includes/template.php on line 2143

    Notice: Trying to get property ‘ID’ of non-object in /var/www/wp-admin/includes/template.php on line 2148

    Notice: Trying to get property ‘ID’ of non-object in /var/www/wp-admin/includes/template.php on line 2152

    Notice: Trying to get property ‘ID’ of non-object in /var/www/wp-admin/includes/template.php on line 2157

    I went through and deactivated the most recently added plugins and after deactivating Hummingbird, the errors disappeared. Reactivating brought the errors back. Can you let me know how to fix or can you fix?

    Thank you very much!

    Dennis

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @chicagomusicguide

    I hope you’re doing well!

    I could not replicate these notices on my end. Notice is not an error it is just a note to the developers and not affecting the site’s/plugins’ functions.

    Do you see these notices when only the Hummingbird plugin is enabled? If not, start enabling (after deactivating all plugins) one plugin at a time, till these notices will be back again.

    Make sure to have a full site backup before deactivating all plugin.

    Please let us know what is the PHP version on your site?

    Have a good day!

    Kind regards,
    Nastia

    Thread Starter Dennis Kelly

    (@chicagomusicguide)

    Thank you very much Nastia for your quick response.

    Yes, these notices only appear when the Hummingbird plugin is enabled. PHP version is 7.0.

    Thanks!
    Dennis

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @chicagomusicguide

    Thanks for response!

    The code reported by these notices (in WP core) is related to the function that checks post status – if a post of given ID is e.g. published, draft and so on.

    The notice is a result of the function trying to check status of a non-existing post, basically. I understand that my colleague Nastia wasn’t even able to replicate that as can’t I myself but the fact whether such notices show up or not is also related to PHP error reporting configuration and might be also related to PHP version (7.0 isn’t particularly “smart” if it comes to that- for some reason it was a bit of a ‘fail” as while it brought quite a lot of great improvements, speed and stability, any further version is better than 7.0).

    Hummingbird is using hidden custom posts for its own purposes and it is doing quite a lot of “operations” on them. One of the common reasons for such notices could be e.g. if there is/was Asset Optimization enabled in Hummingbird and was e.g. re-configured a few time. If there’s additionally some sort of cache (other than Page Cache in Hummingbird), especially any server-side cache (e.g. Varnish, object cache and so on) that might cause site to “try” to check those non-existing posts.

    I think it would be worth trying

    – to clear up all the possible caches that you can find, especially object cache on server if it’s there and is possible to flush it

    – if there is Asset Optimization enabled – re-check it (and make adjustments if necessary afterwards); clear caches after that again

    – if Asset Optimization is not enabled but it was – re-enable it, recheck files, try disabling again and clearing caches

    – and also if possible update PHP to any higher version than 7.0

    Best regards,
    Adam

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello there @chicagomusicguide

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customizer Errors’ is closed to new replies.