Upgrading from 3.10 to 4.0 - Warning in the debug

Author Message

Salvatore Guarino

Monday 14 April 2008 4:48:17 am

Hi, I just upgraded a site form eZ Publish 3.10 to 4.0. I used this instructions http://ez.no/doc/ez_publish/upgrading/upgrading_to_4_0/from_3_10_0_to_4_0_0 and the site now seem to work fine. I noticed only a permanent warning when enable the debug:

file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/eztemplateautoload.php) is not within the allowed path(s): (/var/www/vhosts/mysite/httpdocs:/tmp) in /var/www/vhosts/mysite/httpdocs/lib/eztemplate/classes/eztemplate.php on line 2216

Is there something to do to remove this warning? I don't understand it...

Thx and bye!

Kristof Coomans

Monday 14 April 2008 5:25:46 am

Hi Salvatore

It seems like your PHP is configured with the open_basedir setting. See http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir for more information.
I advice you to turn open_basedir off.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Salvatore Guarino

Thursday 17 April 2008 1:49:04 am

Thank you Kristof,

I'm in a virtual host environment, and there is the following generated value in the vhost.conf file:

php_admin_value open_basedir "/var/www/vhosts/mysite/httpdocs:/tmp"

It's better that I don't modify this value... Do you think I can ignore safetly the warning? Basedir is "locked" on root directory of my site, for eZ publish should be enough... It's correct?

Thx and bye!

Kristof Coomans

Thursday 17 April 2008 5:18:45 am

According to the PHP warning you got, it won't be good to leave open_basedir on. So better to turn it off.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 19 2025 07:16:47
Script start
Timing: Jan 19 2025 07:16:47
Module start 'layout'
Timing: Jan 19 2025 07:16:47
Module start 'content'
Timing: Jan 19 2025 07:16:47
Module end 'content'
Timing: Jan 19 2025 07:16:47
Script end

Main resources:

Total runtime0.7115 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 590.4219152.6406
Module start 'layout' 0.00560.0030 743.062539.4766
Module start 'content' 0.00850.7012 782.5391559.0313
Module end 'content' 0.70970.0018 1,341.570312.1250
Script end 0.7115  1,353.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4458160.0002
Check MTime0.00130.1771160.0001
Mysql Total
Database connection0.00080.118810.0008
Mysqli_queries0.658592.5488600.0110
Looping result0.00060.0819580.0000
Template Total0.679295.520.3396
Template load0.00200.276720.0010
Template processing0.677295.172720.3386
Template load and register function0.00010.017710.0001
states
state_id_array0.00120.175010.0012
state_identifier_array0.00080.114120.0004
Override
Cache load0.00170.2343230.0001
Sytem overhead
Fetch class attribute can translate value0.00070.103220.0004
Fetch class attribute name0.00180.255860.0003
XML
Image XML parsing0.00100.138020.0005
class_abstraction
Instantiating content class attribute0.00000.002280.0000
General
dbfile0.00160.2235230.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
1content/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: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs