Forums / Developer / Override and SiteAccess ini problem

Override and SiteAccess ini problem

Author Message

Vincent Saulnier

Thursday 03 April 2003 6:07:55 am

I have those inifiles :

settings/site.ini
settings/override/site.in.append.php
settings/siteaccess/site.in.append.php

I think those files should be read in that order but eZ read them on this order :

settings/site.ini
settings/siteaccess/site.in.append.php
settings/override/site.in.append.php

So my SiteAccess has no meaning!

I changed prependOverrideDir for appendOverrideDir on line 411 of /access.php $ini->appendOverrideDir( "siteaccess/$name" );

Is that the correct way to go or there is something I am missing?

Peter Bailey

Tuesday 08 April 2003 7:09:46 am

I've always used (and been directed to use) site.ini.php, NOT site.ini for global setting changes.

Then, for each site-access match, whether by uri, host, or port

settings/siteaccess/[match]/site.ini.append

Jan Borsodi

Tuesday 08 April 2003 8:13:56 am

You should not change the order like that, this will invalidate any upgrades of future eZ publish versions.

The order of .ini file reading is not a problem if you setup the files correctly. First off settings/override is always the last file to be read and will override any values from original .ini files and siteaccess.

Things to put in override is global settings that should be set for ALL siteaccesses and siteaccess matching rules. Placing the matching rules in a siteaccess won't work.

If you want a value to be set for most siteaccess except one you need to copy the values to all siteaccesses and modify it on the one that will differ.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Vincent Saulnier

Tuesday 08 April 2003 12:16:45 pm

You have to understand what I think it was suppose to do :

settings/site.ini is the original file that come wiht eZPublish

settings/override/site.ini.append.php is the suggested file where we should put our configuration so that we can easily upgrade eZPublish

settings/siteaccess/user/site.ini.append is the original site access configuration file that comes with a brand new eZPublish installation. And in this file it says :

# NOTE: It is not recommended to edit this files directly, instead
# a new siteacces should be made to suit your needs.
# General settings should be placed in the settings/override
# directory using .append files.

I could'nt find a place to put the override file for a siteaccess so I had to change the order to make it work the proper way.

if settings/override/site.in.append.php is the last configuration file to be considered, setting/siteaccess/site.in.append is obsolete...

Am I right?

Karsten Jennissen

Tuesday 08 April 2003 11:52:03 pm

Hi Vincent,

the site.ini comes with default values, that's true. But this file is also the one which should contain all your configuration. If you want a back up file, just make a copy before installing.

The override is actually as Jan said only a helper thing. For example, if you develop a site with CVS each developer could put an override to reflect local settings.

More info on this here:
http://ezwiki.blanko.info/index.php/Configuration%20files%20and%20directories%20explained%20%283.x%29
and here:
http://ezwiki.blanko.info/index.php/site.ini%20or%20site.ini.php%3F%20%283.x%29

Regards,
Karsten

Vincent Saulnier

Wednesday 09 April 2003 6:35:21 am

When you install setup with setup enabled, it creates an override site.ini.append.php.

So, if we use the setup module, we cannot use SiteAccess!?

Not very usefull isn't it???

P.S. In every settings/siteaccess/site.in.append files it's written :

# eZ publish configuration file.
#
# NOTE: It is not recommended to edit this files directly, instead
# a new siteacces should be made to suit your needs.
# General settings should be placed in the settings/override
# directory using .append files.

If it does'nt work: what does it means?

Kai Duebbert

Thursday 10 April 2003 12:53:58 am

I rewrote the ezwiki page because some things changed when eZ publish 3.0 was released. Have a look at http://ezwiki.blanko.info/index.php/Configuration%20files%20and%20directories%20explained%20%283.x%29 again. This should explain now how it works.

Kai

Vincent Saulnier

Thursday 10 April 2003 8:37:54 am

I read the revised page at wiki and that's exacly what I thought it does.

Don't you think it would be a good idea to have the possibility to have something like that :

settings/override/siteaccess/[SiteAccess]/site.ini.append.php

So that siteaccess is the last ini file to override and that if we change some configurations in siteaccess an upgrade of eZPublish would be easier...

eZ debug

Timing: Jan 18 2025 02:47:53
Script start
Timing: Jan 18 2025 02:47:53
Module start 'content'
Timing: Jan 18 2025 02:47:53
Module end 'content'
Timing: Jan 18 2025 02:47:54
Script end

Main resources:

Total runtime0.8919 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.8516180.8281
Module start 'content' 0.00790.7022 769.6797701.8125
Module end 'content' 0.71010.1816 1,471.4922340.4297
Script end 0.8916  1,811.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.5497210.0002
Check MTime0.00180.2030210.0001
Mysql Total
Database connection0.00080.084810.0008
Mysqli_queries0.795489.18102150.0037
Looping result0.00220.24262130.0000
Template Total0.855295.920.4276
Template load0.00250.285220.0013
Template processing0.852795.602720.4263
Template load and register function0.00010.012510.0001
states
state_id_array0.00070.081610.0007
state_identifier_array0.00160.176020.0008
Override
Cache load0.00220.2491660.0000
Sytem overhead
Fetch class attribute can translate value0.00240.270160.0004
Fetch class attribute name0.00100.107090.0001
XML
Image XML parsing0.00120.131560.0002
class_abstraction
Instantiating content class attribute0.00000.001990.0000
General
dbfile0.00350.3951280.0001
String conversion0.00000.002630.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 6

Time used to render debug report: 0.0002 secs