Hi everyone, did anyone run into this error on deploy?
PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in phar:///usr/bin/wp/php/WP_CLI/DocParser.php on line 75
It just appeared today for the first time and not sure what’s going on.
System info:
Ansible 2.7.2; Darwin
Trellis 1.0.0: December 27th, 2018
It actually errors? Because it’s just a deprecation so it shouldn’t matter for now
I’m going to assume you need a newer WP-CLI version though as it’s likely quite old if you haven’t updated separate from that Trellis version from a year ago.
Thanks @swalkinshaw unfortunately yeah, deploy fails completely. So I tried updating WP-CLI and update the project to the latest Trellis. However am now unable to re-provision as there’s an (unrelated?) issue with Composer:
TASK [composer : Update Composer to latest version (if configured).] **************************************************************************************************
System info:
Ansible 2.8.4; Darwin
Trellis 1.3.0: December 7th, 2019
---------------------------------------------------
non-zero return code
Downloading (100%)cting...)
[RuntimeException]
SHA384 is not supported by your openssl extension, could not verify the
phar file integrity
self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys]
[--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]
fatal: [www.artun.ee]: FAILED! => {"changed": true, "cmd": ["php", "/usr/local/bin/composer", "self-update"], "delta": "0:00:01.403400", "end": "2019-12-15 07:42:46.199447", "rc": 1, "start": "2019-12-15 07:42:44.796047", "stderr_lines": [" Downloading (connecting...)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bDownloading (100%) \b\b\b\b\b\b\b\b\b", "", " ", " [RuntimeException] ", " SHA384 is not supported by your openssl extension, could not verify the phar file integrity ", " ", "", "self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]"], "stdout": "Updating to version 1.9.1 (stable channel).", "stdout_lines": ["Updating to version 1.9.1 (stable channel)."]}
EDIT: Found some discussion here:
Logging into the remote server, followed by manual sudo rm -f /usr/local/bin/composer allowed me to finish the re-provision, then restarted the remote server. However, the original WP-CLI problem remains the same.
EDIT2: On further investigation, it seems while the re-provision finished successfully (green), it didn’t actually re-provision as the old version of PHP (php7.1-fpm.service) is still running (the latest Trellis has PHP 7.3…), according to logs:
EDIT 3:
Tried to re-provision again however now it fails:
Unable to start service php7.3-fpm: Job for php7.3-fpm.service failed because
the control process exited with error code. See “systemctl status
php7.3-fpm.service” and “journalctl -xe” for details.
Happy new year everyone! Still struggling with this problem and it’s become a blocker for me to use Trellis unfortunately. Any advice super appreciated. Thanks.
EDIT: I managed to get one step further by manually logging into the remote server and running sudo wp cli update which fixed the WP CLI errors. I’m now able to deploy even though the deploy fails with the following errors (but new code is running on the server).
non-zero return code php7.3-fpm.service is not active, cannot reload. fatal: [www.website.com]: FAILED! => {"changed": true, "cmd": "sudo service php7.3-fpm reload", "delta": "0:00:00.041936", "end": "2020-01-14 12:34:18.339396", "rc": 1, "start": "2020-01-14 12:34:18.297460", "stderr_lines": ["php7.3-fpm.service is not active, cannot reload."], "stdout": "", "stdout_lines": []}
Reprovison fails with a similar error, which makes me slightly hopeful:
> TASK [php : Start php7.3-fpm service] *****************************************************************************************************************************************************************************
>
> System info:
>
> Ansible 2.8.4; Darwin
>
> Trellis 1.3.0: December 7th, 2019
>
> ---------------------------------------------------
>
> Unable to start service php7.3-fpm: Job for php7.3-fpm.service failed because
>
> the control process exited with error code. See "systemctl status
>
> php7.3-fpm.service" and "journalctl -xe" for details.
>
> fatal: [www.website.com]: FAILED! => {"changed": false}
I scoured the forum and came up with this post however I’m hesitant running these commands on a live server Change PHP version