eZ Community » Forums » General » [SOLVED] Cronjob error: Class...
expandshrink

[SOLVED] Cronjob error: Class 'ezcBaseOptions' not found...

[SOLVED] Cronjob error: Class 'ezcBaseOptions' not found...

Tuesday 27 December 2011 11:00:33 am - 2 replies

Hallo eZ Community,

Hope you all enjoyed your Christmas holidays.

Hopefully, someone here can provide me pointers how to solve a problem I am having with my cronjobs.

First, my system: CentOS 6, Apache 2.2.15, PHP 5.3.3, MySQL 5.1.52, eZ Publish Community Project 2011.11 with bundled ezc.

Even though I have eZ Components installed, I'm still getting the following error messages from the cron daemon:

PHP Warning:  in_array() expects parameter 2 to be array, boolean given in [ezp_install_dir]/kernel/classes/ezscript.php on line 1084
 PHP Warning:  in_array() expects parameter 2 to be array, boolean given in [ezp_install_dir]/kernel/classes/ezscript.php on line 1084
PHP Warning:  in_array() expects parameter 2 to be array, boolean given in [ezp_install_dir]/kernel/classes/ezscript.php on line 1084
PHP Warning:  in_array() expects parameter 2 to be array, boolean given in [ezp_install_dir]/kernel/classes/ezscript.php on line 1084
PHP Warning:  in_array() expects parameter 2 to be array, boolean given in [ezp_install_dir]/kernel/classes/ezscript.php on line 1084
PHP Fatal error:  Class 'ezcBaseOptions' not found in [ezp_install_dir]/kernel/private/options/ezpextensionoptions.php on line 58

Fatal error: eZ Publish did not finish its request The execution of eZ Publish was abruptly ended, the debug output is present below.

Does anyone have an idea how I can solve this problem?

Modified on Tuesday 27 December 2011 5:04:46 pm by Charles Okech

Tuesday 27 December 2011 1:40:34 pm

I'm not sure if it's the problem, but you need to do a cd path_to_ez_dir before calling php cli, like:

15 * * * * cd /home/www/ez && /usr/local/bin/php runcronjobs.php frequent -q -s site 2>&1

Modified on Tuesday 27 December 2011 1:42:54 pm by Thiago Campos Viana

Tuesday 27 December 2011 5:03:53 pm

Hey Thiago,

Thanks for your assistance, it works!

Apparently, doing a cd to path_to_ez_dir is very important, something I haven't experienced with other cronjobs for other systems on the server.

Do have a nice day.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from