1. atrus
  2. RO CSVI
  3. Thursday, 19 January 2023
  4.  Subscribe via email
Hi all,

Getting the following error when running a cron task:

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in .../public_html/administrator/components/com_csvi/helper/cron.php on line 178

Running on php 8.0.27

Kind Regards,
Chris
Accepted Answer
Accepted Answer Pending Moderation
Hello,
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in .../public_html/administrator/components/com_csvi/helper/cron.php on line 178

Running on php 8.0.27

This is webserver PHP version. Check the CLI PHP version. It must be old PHP version and so you get this error. Check for the path for latest PHP version from your hosting provider and use it with cron command.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # Permalink
Sorry, the discussion is currently locked. You will not be able to post a reply or a comment at the moment.