• Hi,

    I updated from 1.3.7.8 to 1.3.8.0 and I’m getting a bunch of PHP notices.

    Notice: Trying to get property ‘ID’ of non-object in /Users/app/public/wp-includes/class-wp-query.php on line 4044

    Location:

    wp-includes/class-wp-query.php:4044
    WP_Query->is_page()
    wp-includes/class-wp-query.php:3954
    WP_Query->is_front_page()
    wp-includes/query.php:473
    is_front_page()
    wp-content/plugins/wp-asset-clean-up/classes/Misc.php:329
    WpAssetCleanUp\Misc::isHomePage()
    wp-content/plugins/wp-asset-clean-up/classes/MetaBoxes.php:255
    WpAssetCleanUp\MetaBoxes::hasNoFrontendOptimizationPageOption()
    wp-content/plugins/wp-asset-clean-up/classes/Plugin.php:426
    WpAssetCleanUp\Plugin::preventAnyFrontendOptimization()
    wp-content/plugins/wp-asset-clean-up/wpacu.php:119
    {closure}()
    wp-includes/class-wp-hook.php:292
    do_action_ref_array('parse_query')
    wp-includes/class-wp-query.php:1083
    WP_Query->parse_query()
    wp-includes/class-wp-query.php:1771
    WP_Query->get_posts()
    wp-includes/class-wp-query.php:3465
    WP_Query->query()
    wp-includes/class-wp.php:629
    WP->query_posts()
    wp-includes/class-wp.php:752
    WP->main()
    wp-includes/functions.php:1291
    wp()
    wp-blog-header.php:16

    Notice: Trying to get property ‘post_title’ of non-object in /Users/app/public/wp-includes/class-wp-query.php on line 4046

    Notice: Trying to get property ‘post_name’ of non-object in /Users/app/public/wp-includes/class-wp-query.php on line 4048

    Query Monitor shows the component causing the issue is: Plugin: wp-asset-clean-up

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jinsley8

    (@jinsley8)

    This only shows the notices on the Homepage at the top of the page.

    Plugin Author Gabe Livan

    (@gabelivan)

    @jinsley8 my apologies! You’re right about that and I’ve released an update (same tag). I don’t often update the same tag, but in this case, I wanted to avoid annoying some users (only those with WP_DEBUG on will have the notice printed since it’s harmless) that didn’t want to update the plugin too often. So, delete the plugin (all settings will be preserved) and then re-install. It will not print the notices anymore. Let me know how it goes!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Notices from latest update’ is closed to new replies.