• Resolved junga

    (@junga)


    I receive a critical error when trying to access Appearance -> Customize option
    Wordpress debug.log file gives this:

    Stack trace:
    #0 /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-includes/class-wp-hook.php(303): SI_Estimates_Admin::filter_post_states(Array, NULL)
    #1 /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
    #2 /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php(2239): apply_filters('display_post_st...', Array, NULL)
    #3 /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-includes/nav-menu.php(831): get_post_states(NULL)
    #4 [internal function]: wp_setup_nav_menu_item(Object(WP_Post))
    #5 /home/u998798166 in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-content/plugins/sprout-invoices/controllers/estimates/Estimates_Admin.php on line 294
    [24-Dec-2021 11:03:16 UTC] PHP Notice:  Trying to get property 'post_status' of non-object in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php on line 2187
    [24-Dec-2021 11:03:16 UTC] PHP Notice:  Trying to get property 'post_status' of non-object in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php on line 2191
    [24-Dec-2021 11:03:16 UTC] PHP Notice:  Trying to get property 'post_status' of non-object in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php on line 2197
    [24-Dec-2021 11:03:16 UTC] PHP Notice:  Trying to get property 'post_status' of non-object in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php on line 2201
    [24-Dec-2021 11:03:16 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php on line 2205
    [24-Dec-2021 11:03:16 UTC] PHP Notice:  Trying to get property 'post_status' of non-object in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php on line 2209
    [24-Dec-2021 11:03:16 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php on line 2214
    [24-Dec-2021 11:03:16 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php on line 2218
    [24-Dec-2021 11:03:16 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-admin/includes/template.php on line 2223
    [24-Dec-2021 11:03:16 UTC] PHP Fatal error:  Uncaught TypeError: Argument 2 passed to SI_Estimates_Admin::filter_post_states() must be an instance of WP_Post, null given, called in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-includes/class-wp-hook.php on line 303 and defined in /home/u998798166/domains/fizifit.lt/public_html/lentvaris/wp-content/plugins/sprout-invoices/controllers/estimates/Estimates_Admin.php:294
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Elana Davis

    (@elanasparkle)

    Hello @junga,

    ​Thank you for reaching out to support! Sorry for the delay may I ask what theme you are using? This seems to happen on custom themes and you can remove WP_Post from the two locations.

    \wp-content\plugins\sprout-invoices-biz\controllers\estimates\Estimates_Admin.php line 294
    \wp-content\plugins\sprout-invoices-biz\controllers\invoices\Invoices_Admin.php line 246

    This will remove Sprout Invoices and that error from the customizer for you.

    Thanks
    Elana D.

    Thread Starter junga

    (@junga)

    Hi, thanks for reply.

    Theme that we are using: https://themeforest.net/item/powerlift-fitness-and-gym-theme

    Amending those two files solved the problem. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical error when trying to edit Appearance’ is closed to new replies.