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