Skip to content
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 when the page is loading #603

Closed
Tracked by #653
Atten007 opened this issue Jul 18, 2023 · 5 comments
Closed
Tracked by #653

Fatal error when the page is loading #603

Atten007 opened this issue Jul 18, 2023 · 5 comments
Labels
[Type] Bug An existing feature does not function as intended

Comments

@Atten007
Copy link

Atten007 commented Jul 18, 2023

Hello,

Today I read about WordPress playground and I wanted to test it. Unfortunately, it's crashing on my MacBook Air M1 in the persistent mode and that's not good. But it works in the temporary mode. The following bug occurs when trying to load:

Fatal error:
Uncaught Error:
  Call to undefined function wp_check_php_mysql_versions() in /wordpress/wp-settings.php:2

Stack trace:
   #0 /wordpress/wp-config.php(11): require_once()
   #1 /wordpress/wp-load.php(2): require_once('/wordpress/wp-c...')
   #2 /wordpress/wp-blog-header.php(2): require_once('/wordpress/wp-l...')
   #3 /wordpress/index.php(2): require('/wordpress/wp-b...')
   #4 {main} thrown in /wordpress/wp-settings.php on line 2

If this could be fixed very soon, I'll be very happy! This is the page where WordPress crashes.

I'm currently using the WordPress playground with the latest WordPress version (at this time of writing this is 6.2) and latest PHP (8.2).

Greetings,
Atten 😄

@dmsnell
Copy link
Member

dmsnell commented Jul 18, 2023

Looks like a good report; thanks @Atten007

Could be an issue with Safari as it breaks there for me but runs in Firefox and Chrome. Are you running it in Safari too?

@Atten007
Copy link
Author

Yes I’m running it in Safari too

@dmsnell dmsnell added the [Type] Bug An existing feature does not function as intended label Jul 22, 2023
@dmsnell
Copy link
Member

dmsnell commented Jul 28, 2023

I've run through a number of scenarios and wonder if it's a timing issue. I couldn't get it to boot up in a Private Tab, and I also tried adding plugins and themes to the steps to see if giving it more time to have the files available before calling that code would help.

None of my attempts cleared the error.

For now it's probably best to use another browser, Firefox or Chrome, or use the temporary mode. It's possible there's something missing where we're not waiting for all of the files to be available; it's also possible there's some other mistake. I'm not sure how to find this yet or have any estimate on when it might be fixed though.

@adamziel
Copy link
Collaborator

@Atten007 are you still experiencing this issue? If so, would clearing the browser cache help?

On the face value the error says mysql and seems to be related to SQLite, but that's actually a red herring. wp-settings.php loads wp-load.php where function wp_check_php_mysql_versions() is defined regardless of the database backend.

What could cause this issue, though, is browser cache or a faulty Playground deployment. Playground ships WordPress as a single file bundling all WordPress PHP files in a concatenated form. There's also a map of where each file starts and ends in that file. You would see this exact error if there was a mismatch between the bundle and the map.

@adamziel
Copy link
Collaborator

adamziel commented Oct 13, 2023

This problem may or may not be intermittent, there's no way to know without further information from the reporter. I'm closing this for now. Let's reopen and investigate if the problem re-emerges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants