Bug #72436
closedScheduler fails to run (cron)
0%
Description
A similar error has been reported here [[https://forge.typo3.org/issues/64931]].
The cron job return the following error, which can be reproduced by manually starting the Scheduler task
root@vps:~# /var/www/vhosts/dom.tld/httpdocs/typo3/cli_dispatch.phpsh scheduler
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) in /var/www/vhosts/dom.tld/httpdocs/typo3_src-7.6.1/typo3/sysext/backend/Classes/Console/Application.php on line 40
root@vps:~#
As from the attached screen shots can be ssen, the settings of scheduler should be ok, as shall be the PHP version.
The only thing I recognised is the 'weird' setting of the cli_constants. There seems to be a recursion /self reference. Interestingly in this regards is that 1-entry moves also with each opening of the 0-entry to the right too.
Files
Updated by Wouter Wolters almost 9 years ago
- Status changed from New to Closed
Your cli php version is too low to run TYPO3 CMS version 7.
Updated by Kurt Ludikovsky almost 9 years ago
What is the required PHP Version.
According [[https://typo3.org/news/article/php-minimum-requirements-for-typo3-cms-7/]] it is 5.5.
I have 5.6.15 as can be seen from the screenshots.
So what shall I do?
Updated by Kurt Ludikovsky almost 9 years ago
Solved it.
Solution for those who have a similar issue.
Issue:
I am running two version of PHP on my VPS system under PLESK to cover several versions of Typo3.
So the base version is 5.4.x while for some vhosts the version can be set to be 5.6.x.
But the cron is running from the base version (5.4.x). This can be verified by php -v
on the command line.
Solution:
I have modified the cron task to pass it to the proper PHP-interpreter.
/opt/plesk/php/5.6/bin/php /var/www/vhosts/dom.tld/httpdocs/typo3/cli_dispatch.phpsh scheduler