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

An old blueprint.json fails to load, no error #1543

Open
vyskoczilova opened this issue Jun 26, 2024 · 2 comments
Open

An old blueprint.json fails to load, no error #1543

vyskoczilova opened this issue Jun 26, 2024 · 2 comments
Labels
[Package][@wp-playground] Blueprints [Type] Bug An existing feature does not function as intended

Comments

@vyskoczilova
Copy link

If you go here and click on "Live Preview", you'll get a broken playground. I have no idea why; I haven't changed anything since I launched it - any thoughts? Are there breaking changes that we need to watch? Thanks thousand times!

https://wordpress.org/plugins/woocommerce-pay-for-payment/

If I go here with the blueprint.json, I get this:

Error: Error when executing the blueprint step #0 ({"step":"importWordPressFiles","wordPressFilesZip":{"resource":"url","url":"https://kybernaut.cz/blueprints/pay-for-payment-playground.zip"}}) : PHP.run() failed with exit code 255 and the following output:

@adamziel
Copy link
Collaborator

adamziel commented Jul 1, 2024

@vyskoczilova it looks like https://kybernaut.cz/blueprints/pay-for-payment-playground.zip contains a zipped Playground site that was exported before these PRs landed:

The zIp file contains the SQLite integration plugin, but the importer doesn't pick it up (which seems to be a bug) and the Playground doesn't install a new instance of the SQLite integration plugin in the same mu-plugins location. As a result, this error happens:

[01-Jul-2024 23:15:34 UTC] PHP Warning:  require_once(/wordpress/wp-content/mu-plugins/sqlite-database-integration/load.php): Failed to open stream: No such file or directory in /wordpress/wp-content/mu-plugins/0-sqlite.php on line 1
[01-Jul-2024 23:15:34 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/wordpress/wp-content/mu-plugins/sqlite-database-integration/load.php' (include_path='.:') in /wordpress/wp-content/mu-plugins/0-sqlite.php:1

I'm adding it to our queue. A fix would be to use the zipped sqlite-database-integration plugin. I can't promise any timeline – perhaps removing the zipped mu-plugins entirely would work as as a workaround?

@adamziel adamziel added [Type] Bug An existing feature does not function as intended [Package][@wp-playground] Blueprints labels Jul 1, 2024
@vyskoczilova
Copy link
Author

vyskoczilova commented Jul 2, 2024

Hi @adamziel, Thanks for stepping in. Somehow, the Playground stopped working as the previous version.

Now I try to install the zip with deleted mu-plugins (from https://kybernaut.cz/blueprints/pay-for-payment-playground-v2.zip) or with zipped version (https://kybernaut.cz/blueprints/pay-for-payment-playground-v3.zip) and the WooCommerce plugin is not there any longer and the DB doesn't seem to be picked up either :( I have prepared a complete site to test my plugin - set up WooCommerce, products, my plugin, and homepage with instructions. Now I get an empty playground without imported data and plugin :/

What do you think Icould do about it? And I wouldn't be the only one who tried to leverage the importWordPressFiles step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package][@wp-playground] Blueprints [Type] Bug An existing feature does not function as intended
Projects
Status: Needs Triage/Our Reply
Development

No branches or pull requests

2 participants