• Resolved Zebios

    (@algeriano85)


    Hello

    I just updated woocommerce and my site is down with a fatal error

    An error of type E_ERROR was caused in line 376 of the file /home/user/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php. Error message: Uncaught Error: Call to undefined function wc_get_loop_prop() in /home/user/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php:376
    Stack trace:
    #0 /home/user/public_html/wp-content/plugins/woocommerce/includes/class-wc-query.php(363): WC_Query->adjust_total_pages()
    #1 /home/user/public_html/wp-includes/class-wp-hook.php(289): WC_Query->handle_get_posts(Array)
    #2 /home/user/public_html/wp-includes/plugin.php(249): WP_Hook->apply_filters(Array, Array)
    #3 /home/user/public_html/wp-includes/class-wp-query.php(3190): apply_filters_ref_array(‘the_posts’, Array)
    #4 /home/user/public_html/wp-includes/class-wp-query.php(3448): WP_Query->get_posts()
    #5 /home/user/public_html/wp-includes/class-wp-query.php(3559): WP_Query->query(Array)
    #6 /home/user/public_html/wp-content/themes/vooiptv/functions.php(819): WP_Query->__construct(Array)
    #7 /home/user/public_html/wp-content/themes/vooiptv/inc/fw/theme/options/general-settings.php(6): mirasat_get_sections()

Viewing 7 replies - 1 through 7 (of 7 total)
  • I am also facing same issue.

    Same here and I cannot log in to the WordPress because of this error.

    Same here. I am able to login but Frontend is displaying this error.

    • This reply was modified 4 years, 6 months ago by Ayyaz Ahmad.
    Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Looking at the stack trace, it seems that there’s some sort of compatibility issue between WooCommerce and your theme – vooiptv.

    If it’s any consolation, there are several 3rd party plugins/themes affected with an open bug report at: https://github.com/woocommerce/woocommerce/issues/27394

    BillyBob

    (@williamkharvey)

    As a short time fix until an update you could try the following. Add to functions right at the top.

    				// Shim to fix the late load of the WooCommerce autoloader.
    				if ( defined( 'WC_PLUGIN_FILE' ) && ! function_exists( 'wc_get_loop_prop' ) ) {
    					$woocommerce_file = dirname( WC_PLUGIN_FILE ) . '/includes/wc-template-functions.php';
    					if ( file_exists( $woocommerce_file ) ) {
    						require_once $woocommerce_file;						
    					}
    				}
    • This reply was modified 4 years, 6 months ago by BillyBob.

    Thanks @williamkharvey
    Your mentioned fix worked for me.

    This specific issue was fixed in WooCommerce 4.4.1, so an update to that should correct that error.

    Since this thread appears to have wound down, I’m going to mark it as resolved – if you have any further questions, you can start a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘An error of type E_ERROR after the recent update help’ is closed to new replies.