-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WooCommerce & Errors - TypeError: Failed to fetch, site crashes etc. #1131
Comments
Looks like #967 is related |
Thank you for reporting @EvanHerman! Which browser is this? The error on your first screenshot seems to be a failing The The "sad face" error should never be there so there may be a Playground crash involved somewhere in the process, but it seems like the largest issue is the browser being offline. |
Thanks @adamziel! This was in Chrome. Maybe the WordPress APi was temporarily down or something. Installing WooCommerce works fine now. I think you are right about the However, the other issue with the sad face and playground crashing, it looks like this is still happening on my end in the playground I have hosted. And it only appears to happen with WooCommerce installed. I'm getting the following crash consistently. I can only get through the 'Guided Setup' within Woo and then a 30ish or so seconds later playground crashes.
So it seems like the service worker or something inside of Any clues what might be causing this crash with Woo? I've been trying to track it down for a few days but can't pinpoint it. |
Just an update:
|
Oh nice, good find! It's almost certainly this issue: Here's a recent report related to iterators: Here's how to fix that crash:
If you found the PHP code snippet that triggers the crash, this could be auto-fixed by creating a new test case as described in |
Also CC @bgrgicak who's got experience with Woo and those Asyncify issues |
I wonder how much larger would the PHP build with -O3 -g2 would be. If that's around 100-200kb, it would be handy to ship it to production. Alternatively, a source map or a DWARF file could be handy to decode these stack traces. |
@EvanHerman do you mean that your site isn't using Playground.WordPress.net, but a self-hosted version of Playground? |
If we introduce a debug mode that's being discussed here #1146 it would be nice to load a version of PHP built with -g2 and source maps. |
I checked and |
@EvanHerman is this issue resolved on your end now with the latest version of Playground? Or is it still happening? If it's still happening, please share the new error output as it will contain additional useful debugging information. |
Since we've patched a bunch of these crashes and the reporter did not provide information to confirm whether it still crashes, I'm going to optimistically close this issue. I'm happy to reopen if anyone reproduces that WooCommerce crash. |
It looks like some plugins are throwing an error when installing. I was trying to install WooCommerce but it looks like it errors before installing.
Example URL:
https://playground.wordpress.net/?plugin=woocommerce
Also, I noticed that if you manually install WooCommerce from the dashboard (Plugins > Add New) after a short while the site crashes or just freezes and looks like it goes offline. I'm not able to get passed the WooCommerce Guided Tour. I'm not sure if the two issues are related or not.
The text was updated successfully, but these errors were encountered: