-
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
Installing WooCommerce as a plugin leads to empty body #96
Comments
My hypothesis is that Woo relies on an API request while WordPress Playground doesn't support networking yet. There could be other reasons, too – the |
But isn't it kind of strange that the whole HTML output is logged to the console? Seems like there is some content available to be delivered but that seems to fail. I've already checked the |
It is kind of strange! Perhaps there's another explanation then.
This would mean something is off with wordpress-playground/src/php-wasm/wasm/build-assets/php_wasm.c Lines 88 to 105 in 24c400e
|
Hi there, I did some further debugging. The issue seems to be related to using custom output buffering. Woo uses The same is happening for the checkout here. I've patched the files (removed the
|
Great find @dennisnissle! This PHP function must be somehow flushing the buffer to stdout despite the redirect set up in php_wasm.c: As for the |
Perhaps the buffer gets flushed in |
That was it – I pushed a fix in 9d3ad83: I'll deploy the fix to wasm.wordpress.net in a week-two, for now a commit must do. Thanks for the report! |
Fix deployed: http://127.0.0.1:8777/wordpress.html?plugin=woocommerce&url=/wp-admin/ If it loads a blank page, click the address bar and press enter to reload. Static assets sometimes error out with 403 – that's a separate issue somehow related to service workers. It mostly happens when devtools are open. |
Here's another related issue that will have to be solved to make the WooCommerce installation wizard work: #103 |
That issue was solved by #107. I got to Woo dashboard in wp-admin! Network access aside, there's also some problem with creating one of the woocommerce database tables, presumably due to syntax differences between mysql and sqlite. |
Hi there,
did anyone try to install WooCommerce as a plugin? Seems to break something in WP-Admin (maybe the HTML structure) which leads to returning an empty body for the php response. The HTML gets outputted just fine to the console though.
To reproduce:
Any help/debugging advice is appreciated.
Best,
Dennis
The text was updated successfully, but these errors were encountered: