Forums / Setup & design / Problem running cronjobs

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.

eZ debug

Timing: Jan 18 2025 11:02:10
Script start
Timing: Jan 18 2025 11:02:10
Module start 'content'
Timing: Jan 18 2025 11:02:11
Module end 'content'
Timing: Jan 18 2025 11:02:11
Script end

Main resources:

Total runtime0.8142 sec
Peak memory usage4,096.0000 KB
Database Queries217

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.7109180.8359
Module start 'content' 0.00660.6882 768.5469751.4453
Module end 'content' 0.69470.1194 1,519.9922340.4375
Script end 0.8141  1,860.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5023210.0002
Check MTime0.00150.1835210.0001
Mysql Total
Database connection0.00100.119110.0010
Mysqli_queries0.727189.29862170.0034
Looping result0.00210.26132150.0000
Template Total0.786796.620.3934
Template load0.00200.249620.0010
Template processing0.784796.376320.3924
Template load and register function0.00010.011810.0001
states
state_id_array0.00110.130810.0011
state_identifier_array0.00070.084720.0003
Override
Cache load0.00180.2227560.0000
Sytem overhead
Fetch class attribute can translate value0.00100.121270.0001
Fetch class attribute name0.00130.1630110.0001
XML
Image XML parsing0.00190.233870.0003
class_abstraction
Instantiating content class attribute0.00000.0028130.0000
General
dbfile0.00430.5320400.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs