When Using WP Cli, the error gets also reported:
php -v
PHP 7.4.8 (cli) (built: Jul 10 2020 16:20:04) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.8, Copyright (c), by Zend Technologies
wp –info
OS: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64
Shell: /bin/bash
PHP binary: /opt/plesk/php/7.4/bin/php
PHP version: 7.4.8
php.ini used: /opt/plesk/php/7.4/etc/php.ini
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /var/www/vhosts/swiss-qube.ch/httpdocs/swiss-qube.ch/www
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.4.0
sudo -u swiss-qube wp plugin update –all
PHP Parse error: syntax error, unexpected ':', expecting '{' in /var/www/vhosts/swiss-qube.ch/httpdocs/swiss-qube.ch/www/wp-content/plugins/woocommerce/woocommerce.php on line 56
Parse error: syntax error, unexpected ':', expecting '{' in /var/www/vhosts/swiss-qube.ch/httpdocs/swiss-qube.ch/www/wp-content/plugins/woocommerce/woocommerce.php on line 56
Error: Es gab einen kritischen Fehler auf Ihrer Website.Erfahren Sie mehr über die Fehlerbehebung in WordPress. Es gab einen kritischen Fehler auf Ihrer Website.
Website runs fine, but breaks wp-cli, which also using 7.4.8 as you can see. What the hell for a messy new programming way. I know its “new” but hell is it not update friendly.