• Hello,

    I did an update of my woocommerce plugin today. And I’m no longer able to go on my website. My error is:

    Une erreur de type E_ERROR a été causée dans la ligne 376 du fichier /home/lechampdqj/www/wp-content/plugins/woocommerce/includes/class-wc-query.php. Message d’erreur : Uncaught Error: Call to undefined function wc_get_loop_prop() in /home/lechampdqj/www/wp-content/plugins/woocommerce/includes/class-wc-query.php:376
    Stack trace:
    #0 /home/lechampdqj/www/wp-content/plugins/woocommerce/includes/class-wc-query.php(363): WC_Query->adjust_total_pages()
    #1 /home/lechampdqj/www/wp-includes/class-wp-hook.php(289): WC_Query->handle_get_posts(Array)
    #2 /home/lechampdqj/www/wp-includes/plugin.php(249): WP_Hook->apply_filters(Array, Array)
    #3 /home/lechampdqj/www/wp-includes/class-wp-query.php(3190): apply_filters_ref_array('the_posts', Array)
    #4 /home/lechampdqj/www/wp-includes/class-wp-query.php(3448): WP_Query->get_posts()
    #5 /home/lechampdqj/www/wp-includes/class-wp-query.php(3559): WP_Query->query(Array)
    #6 /home/lechampdqj/www/wp-content/themes/shapely/inc/class-shapely-builder.php(41): WP_Query->__construct(Array)
    #7 /home/lechampdqj/www/wp-content/themes/shapely/inc/class-shapely-builder.php(15): Shapely_Builder->get_all_pages()
    #8 /home/lechampdqj/www/wp-content/themes/shapely/I

    It’s seems like the shapely template is not compatible anymore. How do I fix this problem ?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter juliettecougnoux

    (@juliettecougnoux)

    I add this code on my functions.php for the moment and it seems to work:

    `// 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;
    }
    }’

    But I found this solution on a forum and I’m not sure that is a good thing to do.

    Hi there,

    the same thing happened to my friend’s website. The error showed incompatibility with code from the Shapely theme. We had to restore a full back-up copy for the site to work again.

    Hoping Shapely will update the theme soon and make it compatible with the new woocommerce, but until there’s a theme update, we’ll try to stay with the old woo.

    No news from the shapely developers? Are they intending to update the theme sometime? The description says the theme is compatible with Woocommerce, but that is not the case anymore.

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

The topic ‘woocommerce updates error’ is closed to new replies.