WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.66k stars 263 forks source link

blueprint causing an error, syntax is correct #2057

Open asirota opened 8 hours ago

asirota commented 8 hours ago

This blueprint is causing an error on Safari (Mac)

[04-Dec-2024 19:35:41 UTC] JavaScript Error: PHP.run() failed with exit code 255 and the following output: 
PHPExecutionFailureError@https://playground.wordpress.net/worker-thread-bf1795ed.js:38:437
@https://playground.wordpress.net/worker-thread-bf1795ed.js:53:1916
[04-Dec-2024 19:35:41 UTC] JavaScript Error: Error when executing the blueprint step #5 ({"step":"installTheme","themeData":{"resource":"wordpress.org/themes","slug":"generatepress"}}) : PHP.run() failed with exit code 255 and the following output: 
@https://playground.wordpress.net/assets/config-2770b453.js:750:145943
[04-Dec-2024 19:35:41 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_report() in /wordpress/wp-includes/class-wpdb.php:3
Stack trace:
#0 /wordpress/wp-includes/class-wpdb.php(3): wpdb->db_connect()
#1 /wordpress/wp-includes/load.php(2): wpdb->__construct('username_here', 'password_here', 'database_name_h...', 'localhost')
#2 /wordpress/wp-settings.php(2): require_WordPre
#3 /wordpress/wp-config.php(102): require_once('/wordpress/wp-s...')
#4 /wordpress/wp-load.php(2): require_once('/wordpress/wp-c...')
#5 /internal/eval.php(3): require_once('/wordpress/wp-l...')
#6 {main}
  thrown in /wordpress/wp-includes/class-wpdb.php on line 3

The syntax is correct and has been working for weeks. Test here

asirota commented 8 hours ago

On Chrome (Mac) we get this instead:

[04-Dec-2024 19:39:19 UTC] PHP Fatal: PHP.run() failed with exit code 255 and the following output:  Error: PHP.run() failed with exit code 255 and the following output: 
    at PHP.run (https://playground.wordpress.net/worker-thread-bf1795ed.js:53:1888)
    at async PlaygroundWorkerEndpoint.run (https://playground.wordpress.net/worker-thread-bf1795ed.js:4:9449)
[04-Dec-2024 19:39:19 UTC] JavaScript Error: PHP.run() failed with exit code 255 and the following output: 
Error: PHP.run() failed with exit code 255 and the following output: 
    at PHP.run (https://playground.wordpress.net/worker-thread-bf1795ed.js:53:1888)
    at async PlaygroundWorkerEndpoint.run (https://playground.wordpress.net/worker-thread-bf1795ed.js:4:9449)
[04-Dec-2024 19:39:19 UTC] JavaScript Error: Error when executing the blueprint step #5 ({"step":"installTheme","themeData":{"resource":"wordpress.org/themes","slug":"generatepress"}}) : PHP.run() failed with exit code 255 and the following output: 
Error: Error when executing the blueprint step #5 ({"step":"installTheme","themeData":{"resource":"wordpress.org/themes","slug":"generatepress"}}) : PHP.run() failed with exit code 255 and the following output: 
    at Object.run (https://playground.wordpress.net/assets/config-2770b453.js:750:145934)
    at async gu (https://playground.wordpress.net/assets/config-2770b453.js:750:147453)
    at async Qu (https://playground.wordpress.net/assets/config-2770b453.js:754:16954)
    at async https://playground.wordpress.net/assets/main-60d2aed2.js:151:2458