Forums / Setup & design / INI files not loaded correctly in ez 3.7.3 (a bug?)

INI files not loaded correctly in ez 3.7.3 (a bug?)

Author Message

Marko Žmak

Wednesday 25 January 2006 10:33:31 am

The INI files are not loaded correctly in eZ 3.7.3. The settings from siteacces are ignroed and those from override are aklways used.
Here's an example...

I have this in site.ini in overrides:

[MailSettings]
EmailSender=test_ovr

[TemplateSettings]
TemplateCompile=disabled

and this in site.ini in siteacces:

[MailSettings]
EmailSender=test_acces

[TemplateSettings]
TemplateCompile=enabled

When I look at the settings from admin interface i get:

TemplateCompile disabled
EmailSender test_ovr

Also, templates don't get compiled, so this isn't just a problem in viewing the settings in the admin interface.
The problem is the same when I turn on TemplateCompile in override and turn it off in sitteacces, the setting from override is always used. I didn't try it but I presume this affects all the settings, not just TemplateCompile and EmailSender.

If I don't set anything in override, siteacces settings are still ignored and the settings from original site.ini are used.

And yes, I did clear the cache. I tried many times, by running clearcache.sh, from the admin interface and by deleting manually the cache folders.

I'm using:

PHP 4.4.1
Apache web server on Linux
eZ 3.7.3

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Hans Melis

Wednesday 25 January 2006 11:38:35 am

Well, one part of the problem is actually not a problem. Settings in global overrides override siteaccess settings. So that part is actually correct. But if you don't specify a setting in global override and you do specify it in siteaccess settings, they should be used if you are in that siteaccess of course.

I'll try this here and see what happens.

Hans
http://blog.hansmelis.be

Hans Melis

Wednesday 25 January 2006 12:13:11 pm

I just tested this on my local install and everything works fine. Are you sure all permissions (filesystem level) are set correctly?

Hans
http://blog.hansmelis.be

Marko Žmak

Friday 27 January 2006 7:01:14 am

WHat configuration do you have? Which version of eZ, APache, PHP?

All my premissions for all files in all subdirs of settings are set to 777 so that is not the problem. And I double checked, the settings that I set ONLY in siteacces files are ingored. And also I have this.

TemplateCompile=enabled

in the original site.ini file but in the admin interface I still get:

TemplateCompile siteacces disabled

I also tried removing the file site.ini.append.php for this siteacces but i still get:

TemplateCompile siteacces disabled

How can that be?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

Friday 27 January 2006 7:17:24 am

I found the source of the problem!

The problem was in xmlarea extension that had:

TemplateCompile=disalbed

in it's site.ini.append.

Now the settings work OK.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

eZ debug

Timing: Jan 18 2025 19:34:12
Script start
Timing: Jan 18 2025 19:34:12
Module start 'content'
Timing: Jan 18 2025 19:34:12
Module end 'content'
Timing: Jan 18 2025 19:34:12
Script end

Main resources:

Total runtime0.2022 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0149 588.9844180.8125
Module start 'content' 0.01490.0071 769.796997.9297
Module end 'content' 0.02200.1800 867.7266528.3750
Script end 0.2020  1,396.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00391.9328200.0002
Check MTime0.00150.7203200.0001
Mysql Total
Database connection0.00160.809510.0016
Mysqli_queries0.140969.67901410.0010
Looping result0.00140.70081390.0000
Template Total0.179688.810.1796
Template load0.00140.684410.0014
Template processing0.178288.125510.1782
Override
Cache load0.00070.346110.0007
Sytem overhead
Fetch class attribute can translate value0.00070.322810.0007
XML
Image XML parsing0.00040.185910.0004
General
dbfile0.00180.8725200.0001
String conversion0.00000.003530.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0003 secs