I have the following error in cron job:
PHP Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(’ in /home/storage/c/34/e2/m2bank1/public_html/leads/app/console on line 20
Can anyone help?
I have the following error in cron job:
PHP Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(’ in /home/storage/c/34/e2/m2bank1/public_html/leads/app/console on line 20
Can anyone help?
I’m using PHP 7.0. What do I need to do?
Verify that you’re actually using php 7 in cli. Do php -v
. This error suggests php 5.2
I’m using Mautic in version 2.1.0, and PHP 7.0.6
Any idea?
Results:
-bash-3.2$ pwd
/home/storage/c/34/e2/m2bank1
-bash-3.2$ php -v
PHP 5.2.17 with Suhosin-Patch 0.9.7 (cli) (built: Mar 22 2011 17:39:28)
Copyright © 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.9, Copyright © 2002-2011, by ionCube Ltd., and
with Zend Optimizer v3.3.9, Copyright © 1998-2009, by Zend Technologies
Apparently the Mautic is not recognizing the configured version manually via .htaccess, only configured by default on the server and this unfortunately can not change.
The Mautic only validate the PHP version configured by default on the server or can accept manual configuration in .htaccess?
Is there any way to solve this error?