• Resolved romancsn

    (@romancsn)


    I use Bricks builder, and my Woocommerce plugin has a problem.
    All the pages on my site are accessible except for the dashboard and woocommerce shopping cart.

    When I go to “bricks” -> “template” and choose a woocommerce template I get this error:
    “There has been a critical error on this website.
    Learn more about troubleshooting WordPress.

    When I deactivate the plugin, I can re-access the plugin template.
    So I guess the problem is with woocommerce.

    If anyone has the solution, Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @romancsn,

    Thanks for reaching out.

    It looks like there could be a conflict between WooCommerce and your Bricks builder template.

    To troubleshoot the issue further, please try the steps below:

    1. Ensure that both WooCommerce and Bricks builder are updated to their latest versions.
    2. Try switching to a default WordPress theme (like Twenty Twenty-Four or Storefront) to see if the issue persists. If it does, the problem might not be with WooCommerce.
    3. If the issue is resolved after switching themes, it’s likely a conflict with the Bricks builder. In this case, I recommend contacting the Bricks support team for further assistance.

    Please let us know if these steps help.

    thyran

    (@thyran)

    Me too on all my WooCommerce sites that are running the latest versions

    PHP Fatal error: Uncaught Error: Class "WC_Legacy_API" not found in /public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php:19

    Appears to be since they removed Legacy API support from WooCommerce Core

    Pointing to this plugin to be installed as an extension for legacy support but none of my sites have or need legacy api support.

    https://www.ads-software.com/plugins/woocommerce-legacy-rest-api/

    Plugin not available in WooCommerce Updater

    Downloading and manually installing the plugin to try and get the sites out of a critical state produces error

    Plugin could not be activated because it triggers a?fatal error.

    Fatal error: Uncaught Error: Class "WC_Legacy_API" not found in /public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php:19 Stack trace: #0 /public_html/wp-content/plugins/woocommerce/includes/class-wc-autoloader.php(54): include_once() #1 /public_html/wp-content/plugins/woocommerce/includes/class-wc-autoloader.php(98): WC_Autoloader->load_file() #2 [internal function]: WC_Autoloader->autoload() #3 /public_html/wp-content/plugins/woocommerce-legacy-rest-api/includes/class-wc-legacy-rest-api-plugin.php(146): class_exists() #4 /public_html/wp-content/plugins/woocommerce-legacy-rest-api/includes/class-wc-legacy-rest-api-plugin.php(62): WC_Legacy_REST_API_Plugin::legacy_api_still_in_woocommerce() #5 /public_html/wp-includes/class-wp-hook.php(324): WC_Legacy_REST_API_Plugin::on_plugin_activated() #6 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /public_html/wp-admin/plugins.php(196): do_action() #9 {main} thrown in?/public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php?on line?19

    Changing themes or disabling plugins don't resolve the issue

    Currently only way to make site available is to disable WooCommerce extensions and WooCommerce itself
    Plugin Support Rajesh K. (woo-hc)

    (@rajeshml)

    Hello @thyran,

    Sorry to hear that you are experiencing the same issue.

    However, to align with?forum best practices, please create a new topic so we can address your issue(s) separately. You can create a new thread here:?? https://www.ads-software.com/support/plugin/woocommerce/#new-topic-0

    Thanks for understanding!

    thyran

    (@thyran)

    Hi @rajeshml

    Appears there are multiple threads already created for the same problem. Not sure that aligns with best forum practices.

    Issue has been widely reported on topic https://www.ads-software.com/support/topic/fatal-error-4703/

    Although the replies are no longer visible containing the solution and fixes which will enivitably make users create new topics about the same issue.

    Here is another link to the issue on github

    https://github.com/woocommerce/woocommerce/issues/48587#issuecomment-2177204603

    Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @thyran,

    Thanks for chiming in with more details and workarounds for this issue. Corey and <span style=”box-sizing: border-box; margin: 0px; padding: 0px;”>Andre’s?replies on the thread you share are quite informative. The same is true for the GH lin</span>k. This will certainly shed more light on the issue and help other merchants facing the same problem.

    Thanks!
    -OP

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.