-
Notifications
You must be signed in to change notification settings - Fork 272
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
Fatal error with browser storage #825
Comments
Another error:
|
One way this could have happened, is if the browser loaded mismatched versions of the WordPress I don't understand yet what is the connection with the browser storage. That could be purely coincidental, e.g. perhaps @beafialho opened the settings modal and updated both the used WordPress version AND the storage engine, which loaded the outdated and cached I've opened #855 to track the larger cache busting issue. |
Makes the `addFetchNetworkTransport()` idempotent. The `addFetchNetworkTransport()` function is called on Playground boot and it works well when applied to a clean WordPress build. However, in the browser storage mode it is applied on an already-patched WordPress version and creates two class methods called `test2()`. This throws a PHP fatal error on almost all `/wp-admin` pages: ``` Fatal error: Cannot redeclare WpOrg\Requests\Transport\Curl::test2() in /wordpress/wp-includes/Requests/src/Transport/Curl.php on line 2 There has been a critical error on this website. Please check your site admin email inbox for instructions. [Learn more about troubleshooting WordPress.](https://href.li/?https://wordpress.org/documentation/article/faq-troubleshooting/) ``` ## How is the problem addressed? Adds a checks to only apply the patch if it wasn't already applied. ## Testing Instructions 1. Apply this PR 2. Choose the browser storage engine and enable network access 3. Let the Playground load 4. Reload the entire Playground page 5. Go to `/wp-admin` 6. Confirm the fatal error isn't there Closes #825
@beafialho reported that:
Done is:
The text was updated successfully, but these errors were encountered: