• Resolved aquilamendes

    (@aquilamendes)


    Dear all, I have a project in which Elementor is running as a page builder + WooCommerce to manage product registration, etc.

    It turns out that when you leave the WooCommerce plugin active, you can no longer edit any page with Elementor, it doesn’t load the preview and therefore it becomes impossible to edit the blocks, information, etc.

    See the error image below, when clicking on the debug link it returns the following message.

    https://ibb.co/c8vG1Bp

    Warning: include(): Filename cannot be empty in /www/wwwroot/listademae.com.br/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 52
    
    Warning: include(): Failed opening '' for inclusion (include_path='.:/usr/local/lsws/lsphp74/share/pear:/usr/local/lsws/lsphp74/share/php:/usr/share/pear:/usr/share/php') in /www/wwwroot/listademae.com.br/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 52
    include(): Failed opening '' for inclusion (include_path='.:/usr/local/lsws/lsphp74/share/pear:/usr/local/lsws/lsphp74/share/php:/usr/share/pear:/usr/share/php')

    PS: This only happens with the WooCommerce plugin active, when you deactivate it everything works again, that is, I can edit any page with Elementor again.

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter aquilamendes

    (@aquilamendes)

    @doublezed2 I will contact my hosting server to try some kind of help.

    @technovate Thanks for trying to help, but it didn’t solve my problem either.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @technovate,

    I’m glad you were able to find a solution and thanks for sharing it with the community too! ??

    Hey @aquilamendes, I’m sorry to hear that the solution didn’t quite hit the mark. However, your hosting provider could possibly lend a hand. Meanwhile, could you try out these other solutions and see if any of them work?

    Looking forward to hearing from you!

    Thread Starter aquilamendes

    (@aquilamendes)

    @shameemreza Yes, I did what my friend recommended and without success.

    Thread Starter aquilamendes

    (@aquilamendes)

    To anyone interested, I found a solution!
    I was embarrassed that the error presented during debugging was something specific to WooCommerce, path >/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 52

    Therefore, looking at the entire block of the specified error line in debugging, I simply changed the true parameter to false and bingo!

    // Trigger 404 if trying to access an endpoint on wrong page.
    if ( is_wc_endpoint_url() && ! is_account_page() && ! is_checkout() && apply_filters( 'woocommerce_account_endpoint_page_not_found', false ) ) {
        $wp_query->set_404();
        status_header( 404 );
        include get_query_template( '404' );
        exit;
    }

    Once the problem has been resolved, Elementor is now fully functional again. I suggest that you notify those responsible so that they can check this file in its entirety in order to offer a definitive solution for the next updates.

    PS.: From today onwards I will no longer update the woocommerce version to avoid future problems ??

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @aquilamendes,

    I’m glad you were able to find a solution to your inquiry here, and thanks for sharing it with the community too! ??

    Additionally, we always recommend testing the update on a staging site before applying it to the live site, especially when you have many add-ons and customization activities.

    Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Woocommerce error with Elementor’ is closed to new replies.