-
Notifications
You must be signed in to change notification settings - Fork 269
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
Playground won't load when using browser storage on iOS #1687
Comments
I tested this on MacOS (Firefox and Chrome) today. Playground loads there, but the site switcher doesn't work. |
It looks like this PR #1669 broke site reloading.
We should move |
@brandonpayton would you have time to take a look at this? |
👋 Hi @bgrgicak, I noticed the broken switcher as well and plan to look at it today, hopefully soon. |
By the way, are you able to load Playground with browser storage in iOS now? I think #1669 may have fixed that as a side-effect. |
I'm able to load Playground with browser storage in iOS Safari now. But the site switching bug is pretty bad. Looking at that next. |
Created a fix for site switching here. |
## Motivation for the change, related issues The site switcher was broken by #1669. This PR is a fix for that. Related to #1687 ## Implementation details The site that is booted depends on the redux store, so the current loaded site now depends on redux state. ## Testing Instructions (or ideally a Blueprint) - CI - Use `npm run dev` and manually test switching between sites
The site switching fix is landed, and it appears to be working well. Leaving this open until @bgrgicak confirms the fix for browser storage in iOS Safari. |
Thanks @brandonpayton the switcher works now! I'm still getting the same Please leave this one open and I can take a look at it in the future. |
🙌
IIRC, this is the same error I would get when Playground used to fail in Safari with browser storage selected. It seemed due to a partial install of WP and the plugins used by Playground. You might need to clear your data and try again. As a user, this broken-data situation can be really annoying, but hopefully, having a broken site will be less painful once site management allows people to delete sites through the UI.
❤️ Thanks |
I checked again and it works now. Thanks for working on it. |
When loading Playground with browser storage I get an error.
I was able to recreate it on iOS Firefox and Safari using this link.
Unfortunately I wasn't able to debug it further.
Error logs
[15-Aug-2024 19:34:20 UTC] JavaScript Error: Invalid platform file handle
[15-Aug-2024 19:34:09 UTC] JavaScript Error: PHP.run() failed with exit code 255 and the following output: PHP Fatal error: Uncaught Error: Call to undefined function apply_filters() in /wordpress/wp-includes/error-protection.php:2 Stack trace: #0 /wordpress/wp-includes/error-protection.php(2): wp_is_fatal_error_handler_enabled() #1 /wordpress/wp-settings.php(2): wp_register_fatal_error_handler() #2 /wordpress/wp-config.php(96): require_once('/wordpress/wp-s...') #3 /wordpress/wp-load.php(2): require_once('/wordpress/wp-c...') #4 /internal/eval.php(2): require('/wordpress/wp-l...') #5 {main} thrown in /wordpress/wp-includes/error-protection.php on line 2 PHPExecutionFailureError@https://playground.wordpress.net/worker-thread-d97bf3cc.js:38:437 @https://playground.wordpress.net/worker-thread-d97bf3cc.js:53:1916
The text was updated successfully, but these errors were encountered: