Support » Fixing WordPress » Debugging Errors

  • Hi Everyone,

    I am currently trying to fix up my website and I am seeing different notices/errors in the debug admin.
    After I updated WP I got the 505 Error which somehow resolved itself. Another error that all pages had 404 expect homepage I fixed this by permalinks.
    Then WooCommerce backend wasn’t functioning well. This is fixed as well.
    Currently I am just trying to clean up so I won’t come across more errors.

    Can someone please help me how to fix these?
    Would updating PHP fix this? Sorry, I am a complete beginner in this.

    5.5.38 – WooCommerce will run under this version of PHP, however, it has reached end of life. We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version

    1
    WARNING: wp-content/plugins/revslider/includes/operations.class.php:816 – file_get_contents(): Filename cannot be empty
    require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/storefront-child/page.php’), get_header, locate_template, load_template, require_once(‘/themes/storefront-child/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, RevSliderFront::onAddScripts, RevSliderOperations::getStaticCss, file_get_contents

    2.
    wp-includes/functions.php:3883 – WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead.
    require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/storefront-child/page.php’), get_footer, locate_template, load_template, require_once(‘/themes/storefront-child/footer.php’), do_action(‘storefront_footer’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, storefront_handheld_footer_bar, call_user_func, storefront_handheld_footer_bar_cart_link, WC_Legacy_Cart->get_cart_url, wc_deprecated_function, _deprecated_function, do_action(‘deprecated_function_run’)

    3
    NOTICE: wp-content/themes/storefront-child/functions.php:19 – Undefined property: WP_Error::$description
    require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/taxonomy-product_cat.php’), wc_get_template, include(‘/plugins/woocommerce/templates/archive-product.php’), woocommerce_product_loop_start, apply_filters(‘woocommerce_product_loop_start’), WP_Hook->apply_filters, call_user_func_array, woocommerce_maybe_show_product_subcategories, woocommerce_output_product_categories, wc_get_template, include(‘/plugins/woocommerce/templates/content-product_cat.php’), do_action(‘woocommerce_after_subcategory_title’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, custom_add_product_description

    NOTICE: wp-includes/functions.php:4204 – id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/taxonomy-product_cat.php’), wc_get_template, include(‘/plugins/woocommerce/templates/archive-product.php’), wc_get_template_part, load_template, require(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_after_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_template_loop_price, wc_get_template, include(‘/plugins/woocommerce/templates/loop/price.php’), WC_Product_Variable->get_price_html, apply_filters(‘woocommerce_variable_price_html’), WP_Hook->apply_filters, call_user_func_array, WC_GFPA_Main->get_price_html, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.)
    require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/taxonomy-product_cat.php’), wc_get_template, include(‘/plugins/woocommerce/templates/archive-product.php’), wc_get_template_part, load_template, require(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_after_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, woocommerce_template_loop_price, wc_get_template, include(‘/plugins/woocommerce/templates/loop/price.php’), WC_Product_Variable->get_price_html, apply_filters(‘woocommerce_variable_price_html’), WP_Hook->apply_filters, call_user_func_array, WC_GFPA_Main->get_price_html, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong, _doing_it_wrong, trigger_error

    NOTICE: wp-includes/functions.php:4204 – id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/taxonomy-product_cat.php’), wc_get_template, include(‘/plugins/woocommerce/templates/archive-product.php’), wc_get_template_part, load_template, require(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, DOPBSPWooCommerceCategory->displayButtons, WC_Product->add_to_cart_url, apply_filters(‘woocommerce_product_add_to_cart_url’), WP_Hook->apply_filters, call_user_func_array, WC_GFPA_Display->get_add_to_cart_url, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.)
    require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/taxonomy-product_cat.php’), wc_get_template, include(‘/plugins/woocommerce/templates/archive-product.php’), wc_get_template_part, load_template, require(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, DOPBSPWooCommerceCategory->displayButtons, WC_Product->add_to_cart_url, apply_filters(‘woocommerce_product_add_to_cart_url’), WP_Hook->apply_filters, call_user_func_array, WC_GFPA_Display->get_add_to_cart_url, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong, _doing_it_wrong, trigger_error

    NOTICE: wp-includes/functions.php:4204 – id was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/taxonomy-product_cat.php’), wc_get_template, include(‘/plugins/woocommerce/templates/archive-product.php’), wc_get_template_part, load_template, require(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, DOPBSPWooCommerceCategory->displayButtons, WC_Product_Variable->add_to_cart_text, apply_filters(‘woocommerce_product_add_to_cart_text’), WP_Hook->apply_filters, call_user_func_array, WC_GFPA_Display->get_add_to_cart_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.)
    require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/taxonomy-product_cat.php’), wc_get_template, include(‘/plugins/woocommerce/templates/archive-product.php’), wc_get_template_part, load_template, require(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, DOPBSPWooCommerceCategory->displayButtons, WC_Product_Variable->add_to_cart_text, apply_filters(‘woocommerce_product_add_to_cart_text’), WP_Hook->apply_filters, call_user_func_array, WC_GFPA_Display->get_add_to_cart_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong, _doing_it_wrong, trigger_error

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