WordPress / wordpress-playground

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

Example "Load an older WordPress version" at "Blueprints > Examples" is not working #1743

Open juanmaguitar opened 2 weeks ago

juanmaguitar commented 2 weeks ago

The example "Load an older WordPress version" showcased at https://wordpress.github.io/wordpress-playground/blueprints/examples#load-an-older-wordpress-version returns the following error

Error: Error when executing the blueprint step #1 ({"step":"importWordPressFiles","wordPressFilesZip":{"resource":"vfs","path":"/tmp/wordpress.zip"},"pathInZip":"/wordpress","progress":{"weight":20,"caption":"Importing the WordPress release"}}) : PHP.run() failed with exit code 1 and the following output:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

{
    "landingPage": "/wp-admin",
    "steps": [
        {
            "step": "writeFile",
            "path": "/tmp/wordpress.zip",
            "data": {
                "resource": "url",
                "url": "https://playground.wordpress.net/plugin-proxy.php?url=https://wordpress.org/wordpress-5.9.9.zip",
                "caption": "Downloading the WordPress Release"
            }
        },
        {
            "step": "importWordPressFiles",
            "wordPressFilesZip": {
                "resource": "vfs",
                "path": "/tmp/wordpress.zip"
            },
            "pathInZip": "/wordpress",
            "progress": {
                "weight": 20,
                "caption": "Importing the WordPress release"
            }
        },
        {
            "step": "runPHP",
            "code": "<?php $_GET['step'] = 'upgrade_db'; require '/wordpress/wp-admin/upgrade.php'; "
        },
        {
            "step": "login",
            "username": "admin",
            "password": "password"
        }
    ]
}

See live demo

bgrgicak commented 2 days ago

Unrelated: For some reason, this request https://playground.wordpress.net/plugin-proxy.php?url=https://wordpress.org/wordpress-5.9.9.zip fails in Firefox with Secure Connection Failed. @brandonpayton do you have any idea why this would fail in Firefox and not in Chrome?