Just updated WP to 5.6.2 with composer and locally, I have web/wp/wp- includes/class-wp-application-passwords.php, but when I deploy, it’s not there:
-rw-r--r-- 1 web www-data 2299 Feb 25 05:11 class-walker-page-dropdown.php
-rw-r--r-- 1 web www-data 7043 Feb 25 05:11 class-walker-page.php
-rw-r--r-- 1 web www-data 16993 Feb 25 05:11 class-wp-admin-bar.php
-rw-r--r-- 1 web www-data 5240 Feb 25 05:11 class-wp-ajax-response.php
-rw-r--r-- 1 web www-data 4473 Feb 25 05:11 class-wp-block-list.php
-rw-r--r-- 1 web www-data 15215 Feb 25 05:11 class-wp-block-parser.php
So the Wordpress Installed? task fails:
"Fatal error: require(): Failed opening required \
'/srv/www/example.com/releases/20210225053455/web/wp/wp-includes/class-wp-application-passwords.php' \
(include_path='.:/usr/share/php') in /srv/www/example.com/releases/20210225053455/web/wp/wp-settings.php on line \
239", "Error: There has been a critical error on this website.Learn more about debugging in WordPress. There has been a critical error on this website."], \
"stdout": "", "stdout_lines": []}
All prior tasks succeeded, so I’m quite confounded.
I can downgrade to lower than wp v5.6.0, where that file doesn’t exist, and the deploy succeeds.
No, but I’ve had a few cases where the transition from Composer 1 to Composer 2 was just so janky that it was easier to rebuild and redeploy than to try to troubleshoot.
So, I’m getting the same error (above) about the missing /site/web/wp/wp-includes/cache -compat.php file on a freshly provisioned server. It’s here locally.
Running Composer v2.0.11 both locally and remotely.
My system trellis, composer, php are happy with a fresh trellis new installation, however in this repo, on a fresh vagrant up, with just native (current) Bedrock composer settings, I’m getting Error: Error establishing a database connection.
Ssh in, I can access the DB with DB_USER, DB_PASSWORD defined in site/.env and group_vars/development/vault.yml, but wp-cli gives the same error.
Wondering if this could be an error with one of the following two deps:
I have (cleared out vendor, delete composer.lock, etc repeatedly) reinstalled all recently and am using php v7.4 fairly up-to-date Trellis codebase.
What is the next step in debugging this? Do I write a php script utilizing getenv to figure out if it’s finding the env configs? Could my site/config have broken? I recently made some small modifications to it (just with WP constants).
Yes, you should first rule out that the site uses wrong/default credentials.
Then you should find out what the exact reason for the connection error is: IP not allowed? Connection timeout? Unexisting database? Incorrect username/password?
Additionally, in the output of TASK [deploy : Install Composer dependencies] TASK [deploy : Install Composer dependencies] changed: [104.131.179.125] => {"changed": true..., verbose, vlucas nor dotenv are present.
When I ran composer update on the server, it prompted me to generate a github token, then properly installed all the the dependencies (all of the Dotenv files present).