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
syntax error, unexpected 'if' (T_IF) in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1309) : eval()'d code on line 184 #5808
Labels
Comments
Thanks for the report, @Danrancan My hunch is that you have a syntax error in your |
Sorry this took so long @danielbachhuber. Here you go!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Describe the current, buggy behavior
When running any command from wp cli, I get the following error:
I am running wordpress cli on a Ubuntu based LEMP server. My wordpress folder is located at
/var/www/example.com
.All of my wordpress files and folders are owned by
www-data:www-data
except forwp-config.php
which is owned byroot:root
. All of my folders havedrwxr-xr-x
permissions, and all of my files have-rw-r--r--
permissions, except my wp-config.php file which has-rw-r--r--
permissions.My wp cli file is located in
/usr/local/bin/wp
and it is owned bywww-data:www-data
.When i run any command including the examples below:
I get the following error:
Describe how other contributors can replicate this bug
Describe what you expect as the correct outcome
I expect the command to work.
Let us know what environment you are running this on
Ubuntu 20.04 Server on a Raspberry Pi 4 LEMP server.
PHP v7.4
Nginx v1.25.1 Mainline
MariaDB/Mysql Ver 15.1
The text was updated successfully, but these errors were encountered: