Critical Error!
-
Hi,
Latest version causes the sites updated to show “This site has expereinced a critical error” message and the sites are effectively non-functional until this version ius removed and I go back to the previous version of this plugin.
Where is the QA? It seems to be non-existent!
-
Hi there!
Thank you for bringing this to our attention. I have updated the WooCommerce shipping plugin on my site, and everything is working fine on my end. A “critical error” typically indicates a compatibility issue or conflict, which can occur after an update.
To assist you further, could you please share the fatal error log related to the critical error? You can find this by following these steps:
- Go to WooCommerce > Status > Logs in your WordPress Admin.
- On the Browse log files screen, click on the file named fatal-errors to open and view its contents.
The log will include details about the the error message, which will help us understand the source of the issue.
Once you have the error log, please share it with us, and we’ll be able to assist you more efficiently.
Here you go, seems that the file Product_Editor_Compatibility is missing from the package (and the root cause of the Critical Error)…
2025-01-26T22:13:56+00:00Critical Uncaught Error: Class “WooCommerce\Square\Admin\Product_Editor_Compatibility” not found in /var/www//public_html/wp-content/plugins/woocommerce-square/woocommerce-square.php:451 Additional context{ “error”: { “type”: 1, “file”: “/var/www/public_html/wp-content/plugins/woocommerce-square/woocommerce-square.php”, “line”: 451 }, “backtrace”: [ “”,
“#0 /var/www/public_html/wp-includes/class-wp-hook.php(324): WooCommerce_Square_Loader->declare_features_compatibility(”)”, “
#1 /var/www/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)”,
#2 /var/www/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”, “
#3 /var/www/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(832): do_action(‘before_woocomme…’)”, “
#4 /var/www/public_html/wp-includes/class-wp-hook.php(324): WooCommerce->init(”)”, “
#5 /var/www/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)”, “
#6 /var/www/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”, “
#7 /var/www/public_html/wp-settings.php(704): do_action(‘init’)”, “
#8 /var/www/public_html/wp-config.php(96): require_once(‘/var/www/704812…’)”, “#9 /var/www//public_html/wp-load.php(50): require_once(‘/var/www/704812…’)”, “
#10 /var/www/public_html/wp-blog-header.php(13): require_once(‘/var/www/704812…’)”, “
#11 /var/www/public_html/index.php(17): require(‘/var/www/704812…’)”, “
#12 {main}”, “thrown” ] }2025-01-26T22:13:56+00:00Critical Uncaught Error: Class “WooCommerce\Square\Admin\Product_Editor_Compatibility” not found in /var/www/public_html/wp-content/plugins/woocommerce-square/woocommerce-square.php:451
Hi @ttoaster,
It looks like the issue is caused by a missing file, Product_Editor_Compatibility, in the WooCommerce Square plugin. This could be due to an incomplete or corrupted installation, or a conflict during an update.
To resolve this, please remove the WooCommerce Square plugin completely from your site and reinstall the latest version. This will ensure that all necessary files are properly included.
If the issue persists after reinstalling, let us know so we can further investigate.
Thank you.
Already done that, multiple times (remove/delete the 4.84 version of the plugin and plugin folder) then install 4.85 from scratch; same issue!
Critical Issue, same error log data…
I then remove 4.85, and my site goes back to normal, I then re-install 4.84 and no issues.
It is clear that there is a serious issue with your plugin package. I am now starting to move away from using your Square plugin as it has always been very poor!-
This reply was modified 1 month ago by
ttoaster.
Hi @ttoaster,
Thanks for the clarification. Let’s dive a bit deeper into troubleshooting.
The issue could also stem from a plugin conflict or a theme compatibility problem. To investigate further, could you switch to the Storefront theme, deactivate all plugins except WooCommerce, and then reinstall the Square plugin to check if the issue persists?
If possible, you can perform this test on a staging environment that’s a copy of your live site.
Hi,
Nope. I am not playing that game. 4.84 works fine on the same sites, 4.85 throws an error about a missing file/folder which causes a Critical Error.
I have looked at the content of the 4.85 downloaded ZIP file (downloaded directly to my computer, not to my sites), there is NO such file in it; so my statement about the plugin package being incomplete stands. Fix the plugin ZIP file so that it contains the missing file/folder…
As another customer who reported the same error stated:
“If you search your forum for “Product_Editor_Compatibility” it seems that this class missing is a common cause to kill your customer’s sites. Is there any way that the call to this can be trapped so that if not found it doesn’t take wordpress down with it?“Suggest that unless you want to keep having the same issue reported (and crashing wordpress/woocommerce) that you fix the issue, or as suggested put a trap in for the call if it fails, so that it either fixes the missing file or doesn’t cause the plugin to crash the system…
Hello ttoaster,
Thank you for your reply.
I checked the latest WooCommerce Square on my test site and I did not encounter any fatal errors.
This suggests the error is specific to your site which may be caused by a plugin conflict.
Here is a screenshot of my test site:To investigate what is causing the fatal error, please share your site’s System Status Report with me.
You can paste it into https://pastebin.com and share the link here.Once I have more information, I will be in a better position to assist you further.
Best regards.
Hi,
I will state again:
Nope. I am not playing that game. 4.84 works fine on the same sites, 4.85 throws an error about a missing file/folder which causes a Critical Error.
I have looked at the content of the 4.85 downloaded ZIP file (downloaded directly to my computer, not to my sites), there is NO such file in it; so my statement about the plugin package being incomplete stands. Fix the plugin ZIP file so that it contains the missing file/folder…
As another customer who reported the same error stated:
“If you search your forum for “Product_Editor_Compatibility” it seems that this class missing is a common cause to kill your customer’s sites. Is there any way that the call to this can be trapped so that if not found it doesn’t take wordpress down with it?“Guess Square will lose my business now as I can’t trust your plugin as it is throwing errors and not handling this error gracefully, as it should be coded to do so, and NOT crash the site!
Maybe I should let Square know that you are costing them customers and revenue? Shame there is not a valid alternative to your plugin, oh well…Hi there,
I understand how frustrating this issue must be for you, and I truly appreciate the time you’ve taken to investigate it.
After thorough testing in different environments, we have been unable to reproduce this issue on our end. We’ve only received two reports of this behavior so far, which suggests that this is not a general issue with the plugin itself but rather something specific to certain site configurations.
While I completely understand your concerns, the missing file/folder error you’re encountering seems to be related to your site setup rather than the plugin package. There may be a conflict with another plugin, custom code, or a caching issue affecting how the plugin is installed or loaded. Have you tried performing a fresh installation by fully removing the current version before installing 4.85?
As for the handling of missing class calls, I see the suggestion, and I’ll be happy to pass that along to our developers for review. While we can’t promise immediate changes, feedback like this does help us improve the plugin.
Again, I completely understand your frustration and appreciate your patience. If you’d like, we can try troubleshooting further together to see if we can identify what’s causing this on your site. Let me know how you’d like to proceed.
You obviously didn’t read my previous replies, and I quote:
Already done that, multiple times (remove/delete the 4.84 version of the plugin and plugin folder) then install 4.85 from scratch; same issue!
Critical Issue, same error log data…
I then remove 4.85, and my site goes back to normal, I then re-install 4.84 and no issues.
So, as you can see I have already done that, and I am not wasting any further time/effort on this.
I have now removed (uninstalled) your very poorly coded plugin from all my sites.
Hello there,
I understand how frustrating this issue must be for you, and I truly appreciate the time you’ve taken to investigate it. I know you have said that you are not going to add time/effort on this, but in case you have any chance, please check that?PHP’s?opcache.save_comments
?setting is enabled with your hosting provider. You may want to share WooCommerce’s full requirements with them, which can be found here:?WooCommerce Square Troubleshooting Guide.
- You must be logged in to reply to this topic.