• Resolved amyg97

    (@amyg97)


    When activating this plug in I am receiving a critical error message, all plugins on my site are up to date but still having issues

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Please make sure you are using the latest version of the WooCommerce Square plugin (currently 5.1.0).

    If you’re still experiencing the same issue, please try deactivating all plugins except WooCommerce and WooCommerce Square to check if there’s a conflict.

    If the issue persists after that, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status
    • Fatal error logs (if any) under WooCommerce > Status > Logs.

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

    Thread Starter amyg97

    (@amyg97)

    Hi, this is the error log I am receiving

    This plugin failed to load properly and is paused during recovery mode.

    An error of type E_ERROR was caused in line 451 of the file /home/wplive/web/wp-live/wp-content/plugins/woocommerce-square/woocommerce-square.php. Error message: Uncaught Error: Class "WooCommerce\Square\Admin\Product_Editor_Compatibility" not found in /home/wplive/web/wp-live/wp-content/plugins/woocommerce-square/woocommerce-square.php:451 Stack trace: #0 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(324): WooCommerce_Square_Loader->declare_features_compatibility('') #1 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/wplive/web/wp-live/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/wplive/web/wp-live/wp-content/plugins/woocommerce/includes/class-woocommerce.php(860): do_action('before_woocomme...') #4 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(324): WooCommerce->init('') #5 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home/wplive/web/wp-live/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/wplive/web/wp-live/wp-settings.php(727): do_action('init') #8 /home/wplive/web/wp-live/wp-config.php(111): require_once('/home/wplive/we...') #9 /home/wplive/web/wp-live/wp-load.php(50): require_once('/home/wplive/we...') #10 /home/wplive/web/wp-live/wp-login.php(12): require('/home/wplive/we...') #11 {main} thrown

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the error message.

    The error indicates that the WooCommerce Square plugin is trying to load a missing or undefined class (WooCommerce\Square\Admin\Product_Editor_Compatibility). This usually happens if the plugin files are incomplete, outdated, or conflicting with another plugin.

    Please try deactivating all other plugins except WooCommerce and WooCommerce Square, then reinstall the WooCommerce Square plugin to ensure all files are properly installed.

    After reinstalling, check if the error still appears. Let us know how that goes.

    Thread Starter amyg97

    (@amyg97)

    Hi, I deactivated everything and received this error message

    An error of type E_ERROR was caused in line 459 of the file /home/wplive/web/wp-live/wp-content/plugins/woocommerce-square/woocommerce-square.php. Error message: Uncaught Error: Class “WooCommerce\Square\Admin\Product_Editor_Compatibility” not found in /home/wplive/web/wp-live/wp-content/plugins/woocommerce-square/woocommerce-square.php:459 Stack trace: #0 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(324): WooCommerce_Square_Loader->declare_features_compatibility(”) #1 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/wplive/web/wp-live/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/wplive/web/wp-live/wp-content/plugins/woocommerce/includes/class-woocommerce.php(860): do_action(‘before_woocomme…’) #4 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(324): WooCommerce->init(”) #5 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home/wplive/web/wp-live/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/wplive/web/wp-live/wp-settings.php(727): do_action(‘init’) #8 /home/wplive/web/wp-live/wp-config.php(111): require_once(‘/home/wplive/we…’) #9 /home/wplive/web/wp-live/wp-load.php(50): require_once(‘/home/wplive/we…’) #10 /home/wplive/web/wp-live/wp-login.php(12): require(‘/home/wplive/we…’) #11 {main} thrown

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for the update.

    I’ve tried to replicate this issue on my end, but I wasn’t able to reproduce it. To help narrow down the cause, First, please check with your hosting provider that the PHP setting opcache.save_comments is enabled. This setting is required for certain WooCommerce Square classes to load correctly and could be related to the error you’re seeing.

    If the setting is already enabled and the issue continues, please try creating a new, fresh WordPress site (not a staging copy) and install only WooCommerce and WooCommerce Square to see if you can reproduce the same error there.

    This will help determine whether the problem is specific to your current site’s environment or a broader compatibility issue.

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Your feedback helps others – please consider leaving a review: https://ww.wp.xz.cn/support/plugin/woocommerce-square/reviews/

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

The topic ‘Critical Error on Install’ is closed to new replies.