Forums / Developer / cronjobs - parse error
Thiago Campos Viana
Wednesday 24 October 2007 7:52:20 am
hello
I can´t run the cronjobs script because of this error:
Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /var/www/ideais/pdpnet/kernel/classes/ezcontentclass.php on line 175
I have changed the languages of the objects in Database, so I changed the content language table, but I have problems with classes, but I add a new line in the table of the content language with the information of the old language and the I didnt´t have anymore problems.
I have: Exponential version is 3.9.2. PHP Version 4.4.2-1build1 Apache/2.0.54 (Ubuntu) DAV/2 SVN/1.2.0 mod_jk/1.2.14 mod_python/3.1.4 Python/2.4.2 PHP/4.4.2-1build1 proxy_html/2.4 mod_ssl/2.0.54 OpenSSL/0.9.7g eAccelerator: 0.9.5.1MySQL: 5.0.22
Could anyone help me?
eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924 Twitter: http://twitter.com/tcv_br
André R.
Wednesday 24 October 2007 11:14:14 am
There wasn't any parser errors in 3.9.2 last time I used it, and ezcontentclass.php is used a lot of places so I think I should have noticed.
Try to update to 3.9.4, it's a pretty straightforward update.If the problem persist post the code that is causing the error.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Wednesday 07 November 2007 7:54:47 am
I´ve updated to version 3.9.4 and I got the error:
Running cronjobs/unpublish.php
Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /var/www/ideais/pdpnet/kernel/classes/ezcontentobject.php on line 1339
Fatal error: Exponential did not finish its requestThe execution of Exponential was abruptly ended, the debug output is present below.
Could somebody help?
Wednesday 07 November 2007 8:17:51 am
Seems like you are running cronjobs with php 5.
Check version with :
php -v
If there is a cli version of php4 installed its probably 'php4' command you want to use (check with your hosting provider / server admin).
Thursday 08 November 2007 6:05:30 am
You're right....
now I got this error:
php4 runcronjobs.phpError initializing script: database error: .
debug:
#################################### DEBUG #################################### Warning: (eZMySQLDB)MySQL extension was not found, the DB handler will not be initialized.
Total script time: 0.0283 sec
....I think this is a problem with php4, I will search for some more information...
thx
=(