Problem running cronjobs

Author Message

Richard Lundberg

Wednesday 04 June 2008 3:47:35 pm

Hi,

When running runcronjobs.php I get the following error

Warning: require(autoload/ezp_kernel.php): failed to open stream: No such file or directory in /var/www/vhosts/mydomain.com/httpdocs/autoload.php on line 34

Fatal error: require(): Failed opening required 'autoload/ezp_kernel.php' (include_path='.:') in /var/www/vhosts/mydomain.com/httpdocs/autoload.php on line 34

safe mode is definitely off, runcronjobs.php is being run from thehome directory of the eZPublish installation, and the direct and file permissions are correct and autoload/ezp_kernal.php does exist.

Can anyone point me in the right direction??

www.peakm3.com

Ɓukasz Serwatka

Friday 06 June 2008 12:52:17 am

Hi,

Can you provide more information about the environment like CLI PHP version, modules, permissions to file, etc. Make sure that the path is correct to the eZ Publish root folder.

Try manually execute

$ php runcronjobs.php

You can also ask for help your systems administrator (hosting company).

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Richard Lundberg

Friday 06 June 2008 5:52:40 am

Hi Lukasz,

thanks for your response,

I am using PHP 5.1.2 with the corresponding PHP CLI.

Using an SSH clinet I have navigated to the home directory of the eZpublish installation and run runcronjobs.php and still receive the same message.

The permissions of all the relevant files are set to rwxrwxr-x

I am completely puzzled by this.......

www.peakm3.com

Richard Lundberg

Thursday 12 June 2008 10:11:23 am

I have now sorted this.

PHP cli has a different php.ini to the php apache module. the php cli safe_mode was set to on!!

Cronjobs use the PHP cli module, not the apache module it seems

www.peakm3.com

B. Nkengsong

Tuesday 09 September 2008 2:46:16 am

Hi Richard,

i don't know my problem is the same as yours

X-Powered-By: PHP/5.2.5
Content-type: text/html

<br />
<b>Warning</b>:  require_once(lib/ezutils/classes/ezdebug.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>/home/mxnttv/www/ezhome/kernel/classes/ezpersistentobject.php</b> on line <b>57</b><br />
<br />
<b>Fatal error</b>:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'lib/ezutils/classes/ezdebug.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/mxnttv/www/ezhome/kernel/classes/ezpersistentobject.php</b> on line <b>57</b><br />

What is the problem of course ?

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

James Hyatt

Tuesday 07 October 2008 2:39:24 am

I had the same problem and it was the same fix as Richard.

I ran:

php -i |grep php.ini

from ssh to get the path to the php.ini file that was being used.

edited it with

vi /etc/php.ini

Turned off safe mode, saved with :wq

Now it works!

Noicokuna Niemoge

Wednesday 21 January 2009 1:13:00 am

I've got the same problem...

Warning: require_once(lib/ezutils/classes/ezdebug.php): failed to open
stream: No such file or directory in
/home/site/ftp/ezpublish/kernel/classes/ezpersistentobject.php on line 57

Fatal error: require_once(): Failed opening required
'lib/ezutils/classes/ezdebug.php' (include_path='.:/usr/local/lib/php') in
/home/site/ftp/ezpublish/kernel/classes/ezpersistentobject.php on line 57

EDIT: SOLVED. runcronjobs must be executed in eZ root folder.

Shiki soku ze ku...

Gary Teh

Monday 26 January 2009 2:53:34 am

I met the same problem myself by wrongly assuming the php.ini file used by the apache web server is exactly the same as when running php.ini.

Under the windows environment (I am running a windows xp testing server) I changed the entries in the environmental variables. That solved the problem for me.

http://name1price.com : Get a Cool website for yourself and also learn how to manage it. It is easy. Use it to get more customers for your business.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:03:57
Script start
Timing: Jan 18 2025 16:03:57
Module start 'layout'
Timing: Jan 18 2025 16:03:57
Module start 'content'
Timing: Jan 18 2025 16:03:58
Module end 'content'
Timing: Jan 18 2025 16:03:58
Script end

Main resources:

Total runtime0.7804 sec
Peak memory usage4,096.0000 KB
Database Queries80

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.0469152.6250
Module start 'layout' 0.00470.0025 741.671939.4453
Module start 'content' 0.00730.7716 781.1172746.3672
Module end 'content' 0.77890.0015 1,527.484420.1641
Script end 0.7803  1,547.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4162160.0002
Check MTime0.00130.1680160.0001
Mysql Total
Database connection0.00050.069410.0005
Mysqli_queries0.706390.5025800.0088
Looping result0.00080.1035780.0000
Template Total0.755296.820.3776
Template load0.00190.240420.0009
Template processing0.753396.529520.3766
Template load and register function0.00010.012710.0001
states
state_id_array0.00080.102910.0008
state_identifier_array0.00120.148120.0006
Override
Cache load0.00170.2157560.0000
Sytem overhead
Fetch class attribute can translate value0.00050.066660.0001
Fetch class attribute name0.00100.1242110.0001
XML
Image XML parsing0.00340.437060.0006
class_abstraction
Instantiating content class attribute0.00000.0023130.0000
General
dbfile0.00190.2493290.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs