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

Some of the WP-CLI commands don't work #1618

Open
fluiddot opened this issue Jul 17, 2024 · 6 comments
Open

Some of the WP-CLI commands don't work #1618

fluiddot opened this issue Jul 17, 2024 · 6 comments
Labels
[Type] Enhancement New feature or request

Comments

@fluiddot
Copy link
Contributor

Similar to #1097, I noticed some WP-CLI commands don't work when using https://playground.wordpress.net/demos/wp-cli.html. All results in the execution being frozen and no result is returned after invoking the command. Here's a preliminary list of commands that fail:

  • wp cron test
  • wp db create
  • wp db check
  • wp db cli
  • wp db query
  • wp package install
  • wp server
  • wp shell
@danielbachhuber
Copy link
Member

This could be related: wp-cli/.github#94

@fluiddot
Copy link
Contributor Author

This could be related: wp-cli/.github#94

Yep, most likely, at least for the database commands. Thanks Daniel for linking the issue 🙇 .

@bgrgicak bgrgicak moved this from Inbox to Blocked in Playground Board Jul 22, 2024
@bgrgicak
Copy link
Collaborator

I'm marking this one as blocked for now because there doesn't seem to be much we can do until WP-CLI starts fully supporting SQLite.

@adamziel adamziel added the [Type] Enhancement New feature or request label Jul 31, 2024
@adamziel
Copy link
Collaborator

Fyi @JanJakes, this might be a good testing ground for the new SQL parser

@fredrikekelund
Copy link

I'm coming back to this issue now and finding that the commands Carlos listed to begin with still don't work. wp server (for running an interactive PHP server) and wp shell (for running an interactive PHP shell with a WP environment) seem more difficult to support in Playground.

It's less clear to me why wp package install doesn't work. When running that command, I get the following error:

The "https://wp-cli.org/package-index/packages.json" file could not be downloaded: allow_url_fopen must be enabled in php.ini (https:// wrapper is disabled in the server configuration by allow_url_fopen=0

@adamziel
Copy link
Collaborator

@fredrikekelund

wp server and wp shell could be supported in the CLI but yes – it's unclear what would they do in the browser. Perhaps wp shell could open an Xterm.js instance?

It's less clear to me why wp package install doesn't work. When running that command, I get the following error:

It seems like the kind of error you would see when the networking is disabled. Is networking enabled in your Blueprint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement New feature or request
Projects
Status: Blocked
Development

No branches or pull requests

5 participants