#4223
AvatarRami Z
Support Expired

I think I found the issue. I installed a “Query Monitor” plugin and it shows that all pages on the dashboard perform well. However, the front pages display PHP errors and that’s what is probably causing the high TTFB.

Example 1:

Undefined property: WP_Error::$name 1
wp-content/themes/organey/includes/template-functions.php:268
organey_mobile_navigation()
wp-content/themes/organey/includes/template-functions.php:238
organey_mobile_nav()
wp-includes/class-wp-hook.php:303
do_action(‘wp_footer’)
wp-includes/general-template.php:3031
wp_footer()
wp-content/themes/organey/footer.php:23
Organey_Header_Footer_Elementor->override_footer()
wp-includes/class-wp-hook.php:305
do_action(‘get_footer’)
wp-includes/general-template.php:82
get_footer()
wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php:30

Example 2:

Attempt to read property “slug” on null 3
wp-includes/taxonomy.php:4510
get_term_link()
wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-list-walker.php:105
WC_Product_Cat_List_Walker->start_el()
wp-includes/class-wp-walker.php:144
Walker->display_element()
wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-list-walker.php:151
WC_Product_Cat_List_Walker->display_element()
wp-includes/class-wp-walker.php:255
Walker->walk()
wp-includes/category-template.php:1107
walk_category_tree()
wp-includes/category-template.php:650
wp_list_categories()
wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-product-categories.php:294
WC_Widget_Product_Categories->widget()
wp-includes/class-wp-widget.php:393
WP_Widget->display_callback()
wp-includes/widgets.php:831
dynamic_sidebar(‘sidebar-woocommerce-shop’)
wp-content/themes/organey/sidebar.php:25
load_template(‘wp-content/themes/organey/sidebar.php’)
wp-includes/template.php:716
locate_template()
wp-includes/general-template.php:136
get_sidebar(‘shop’)
wp-content/plugins/woocommerce/templates/global/sidebar.php:22
wc_get_template()
wp-content/plugins/woocommerce/includes/wc-template-functions.php:1039
woocommerce_get_sidebar()
wp-includes/class-wp-hook.php:303
do_action(‘woocommerce_sidebar’)
wp-content/themes/organey/woocommerce/archive-product.php:126

Example 3:

Undefined property: WP_Error::$name 1
wp-content/themes/organey/includes/template-functions.php:268
organey_mobile_navigation()
wp-content/themes/organey/includes/template-functions.php:238
organey_mobile_nav()
wp-includes/class-wp-hook.php:303
do_action(‘wp_footer’)
wp-includes/general-template.php:3031
wp_footer()
wp-content/themes/organey/footer.php:23
Organey_Header_Footer_Elementor->override_footer()
wp-includes/class-wp-hook.php:305
do_action(‘get_footer’)
wp-includes/general-template.php:82
get_footer(‘shop’)
wp-content/themes/organey/woocommerce/archive-product.php:131