This repository has been archived by the owner on May 9, 2024. It is now read-only.
WP Snapshots container needs PHP 7.3 upgraded / incompatibility with the latest WPVIP dev environment #305
Labels
bug
Something isn't working
Troubleshooting
Describe the bug
Using WP Snapshots with the latest VIP Go MU Plugins changes, Automattic/vip-go-mu-plugins@51ccaa3#diff-f689ded77c119b968db89a8c3b868aa245442df4c8711edbe95d59c0a471d834R18, is causing the following error (project name omitted using
*
):That line in particular is using a coding convention introduced in PHP 7.4 and above: https://www.php.net/manual/en/language.types.declarations.php.
Using the following with the Docker CLI confirms that the WP Snapshots container is running PHP 7.3.x, which will be the cause of the error:
$ docker exec -it [container-name] /bin/bash root@c67ea627f75b:/opt/wpsnapshots# php --version PHP 7.3.9 (cli) (built: Sep 12 2019 10:57:34) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.9, Copyright (c) 1998-2018 Zend Technologies with Xdebug v2.7.0beta1, Copyright (c) 2002-2018, by Derick Rethans
Steps to Reproduce
vip-go-mu-plugins
repository to thewp-content/mu-plugins
directory, using the guide here: https://docs.wpvip.com/how-tos/local-development/#h-step-2-add-vip-go-mu-plugins.10updocker wpsnapshots create
.Please note: there is a separate issue regarding Object Cache and WP Snapshots as per my previous ticket, #201, which as far as I know has not been resolved. If there is a Memcache related error, then the
object-cache.php
file needs to be renamed or removed.Screenshots, screen recording, code snippet
No response
Environment information
Code of Conduct
The text was updated successfully, but these errors were encountered: