WordPress / WordPress/wordpress-playground
[PHP.wasm] Missing mysqli_report function
Open
Nobody has claimed this yet.
[Feature] PHP.wasm
[Type] Bug
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 462
- Avg merge
- 18h 44m
- Merged PRs (30d)
- 33
Description
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "importFile" step is deprecated. Use "importWxr" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "importFile" step is deprecated. Use "importWxr" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "importFile" step is deprecated. Use "importWxr" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "importFile" step is deprecated. Use "importWxr" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:01 UTC] JavaScript Warn: The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:25 UTC] JavaScript Warn: The "pluginZipFile" option is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:25 UTC] JavaScript Warn: The "pluginZipFile" option is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:26 UTC] JavaScript Warn: The "pluginZipFile" option is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:26 UTC] JavaScript Warn: The "pluginZipFile" option is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:26 UTC] JavaScript Warn: The "pluginZipFile" option is deprecated. Use "pluginData" instead.
[08-Nov-2024 11:59:27 UTC] JavaScript Warn: The "pluginZipFile" option is deprecated. Use "pluginData" instead.
[08-Nov-2024 12:00:40 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-e0b5e3b7.js:53:1888)
at async #u (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:6175)
at async #l (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:5842)
at async PlaygroundWorkerEndpoint.request (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:4:9278)
[08-Nov-2024 12:00:40 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_wp_db()
#3 /wordpress/wp-config.php(102): require_once('/wordpress/wp-s...')
#4 /wordpress/wp-load.php(2): require_once('/wordpress/wp-c...')
#5 /wordpress/wp-admin/admin.php(2): require_once('/wordpress/wp-l...')
#6 /wordpress/wp-admin/plugins.php(2): require_once('/wordpress/wp-a...')
#7 {main}
thrown in /wordpress/wp-includes/class-wpdb.php on line 3
[08-Nov-2024 12:00:42 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-e0b5e3b7.js:53:1888)
at async #u (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:6175)
at async #l (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:5842)
at async PlaygroundWorkerEndpoint.request (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:4:9278)
[08-Nov-2024 12:00:42 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_wp_db()
#3 /wordpress/wp-config.php(102): require_once('/wordpress/wp-s...')
#4 /wordpress/wp-load.php(2): require_once('/wordpress/wp-c...')
#5 /wordpress/wp-admin/admin.php(2): require_once('/wordpress/wp-l...')
#6 /wordpress/wp-admin/plugins.php(2): require_once('/wordpress/wp-a...')
#7 {main}
thrown in /wordpress/wp-includes/class-wpdb.php on line 3
[08-Nov-2024 12:00:43 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-e0b5e3b7.js:53:1888)
at async #u (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:6175)
at async #l (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:5842)
at async PlaygroundWorkerEndpoint.request (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:4:9278)
[08-Nov-2024 12:00:43 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_wp_db()
#3 /wordpress/wp-config.php(102): require_once('/wordpress/wp-s...')
#4 /wordpress/wp-load.php(2): require_once('/wordpress/wp-c...')
#5 /wordpress/wp-admin/admin.php(2): require_once('/wordpress/wp-l...')
#6 /wordpress/wp-admin/tools.php(2): require_once('/wordpress/wp-a...')
#7 {main}
thrown in /wordpress/wp-includes/class-wpdb.php on line 3
[08-Nov-2024 12:00:44 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-e0b5e3b7.js:53:1888)
at async #u (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:6175)
at async #l (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:5842)
at async PlaygroundWorkerEndpoint.request (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:4:9278)
[08-Nov-2024 12:00:44 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_wp_db()
#3 /wordpress/wp-config.php(102): require_once('/wordpress/wp-s...')
#4 /wordpress/wp-load.php(2): require_once('/wordpress/wp-c...')
#5 /wordpress/wp-blog-header.php(2): require_once('/wordpress/wp-l...')
#6 /wordpress/index.php(2): require('/wordpress/wp-b...')
#7 {main}
thrown in /wordpress/wp-includes/class-wpdb.php on line 3
[08-Nov-2024 12:00:54 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-e0b5e3b7.js:53:1888)
at async #u (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:6175)
at async #l (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:5842)
at async PlaygroundWorkerEndpoint.request (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:4:9278)
[08-Nov-2024 12:00:54 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_wp_db()
#3 /wordpress/wp-config.php(102): require_once('/wordpress/wp-s...')
#4 /wordpress/wp-load.php(2): require_once('/wordpress/wp-c...')
#5 /wordpress/wp-admin/admin.php(2): require_once('/wordpress/wp-l...')
#6 /wordpress/wp-admin/index.php(2): require_once('/wordpress/wp-a...')
#7 {main}
thrown in /wordpress/wp-includes/class-wpdb.php on line 3
[08-Nov-2024 12:06:31 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-e0b5e3b7.js:53:1888)
at async #u (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:6175)
at async #l (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:61:5842)
at async PlaygroundWorkerEndpoint.request (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:4:9278)
[08-Nov-2024 12:06:31 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_wp_db()
#3 /wordpress/wp-config.php(102): require_once('/wordpress/wp-s...')
#4 /wordpress/wp-load.php(2): require_once('/wordpress/wp-c...')
#5 /wordpress/wp-admin/admin.php(2): require_once('/wordpress/wp-l...')
#6 /wordpress/wp-admin/index.php(2): require_once('/wordpress/wp-a...')
#7 {main}
thrown in /wordpress/wp-includes/class-wpdb.php on line 3
[08-Nov-2024 12:10:27 UTC] JavaScript Error: PHP.run() failed with exit code 255 and the following output: 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_wp_db()
#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(7): require('/wordpress/wp-l...')
#6 {main}
thrown in /wordpress/wp-includes/class-wpdb.php on line 3
Error: PHP.run() failed with exit code 255 and the following output: 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_wp_db()
#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(7): require('/wordpress/wp-l...')
#6 {main}
thrown in /wordpress/wp-includes/class-wpdb.php on line 3
at PHP.run (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:53:1888)
at async isWordPressInstalled (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:108:1960)
at async bootWordPress (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:108:1763)
at async PlaygroundWorkerEndpoint.boot (https://playground.wordpress.net/worker-thread-e0b5e3b7.js:801:2766)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The failure is reported at /wordpress/wp-includes/class-wpdb.php, where WordPress calls mysqli_report; start by reproducing the PHP.wasm runtime error and tracing that call. Done means WordPress can proceed past database initialization in Playground without the missing-function fatal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wasm
- Domain
- backend, databases, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100