Siteaccess in extension. Settings loaded twice.

Author Message

Xavier Serna

Friday 04 May 2007 2:06:17 am

Hi all,

I'm having an strange situation in an eZ 3.8.6.
I have all the settings and siteaccess definitions inside an extension, and thus, in the main site.ini override only that extension is activated.
Apparently it works fine, but if I inspect the source code, I can see that the css file for the siteaccess choosen is included twice. ¿?

I also inspected the contents of

$GLOBALS["eZINIOverrideDirList"]

and get that it contains:

Array
(
    [0] => Array
        (
            [0] => extension/my_extension/settings/siteaccess/my_siteaccess
            [1] => 1
            [2] => 
        )

    [1] => Array
        (
            [0] => extension/additional_extension1/settings
            [1] => 1
            [2] => 
        )

    [2] => Array
        (
            [0] => extension/additional_extension2/settings
            [1] => 1
            [2] => 
        )

    [3] => Array
        (
            [0] => extension/my_extension/settings/siteaccess/my_siteaccess
            [1] => 1
            [2] => 
        )

    [4] => Array
        (
            [0] => extension/my_extension/settings
            [1] => 1
            [2] => 
        )

    [5] => Array
        (
            [0] => override
            [1] => 
            [2] => 
        )

)

Notice that "extension/my_extension/settings/siteaccess/my_siteaccess" appears twice in the list!!!

Anybody have some idea that what's happening? I'm doing something wrong?

thanks for your help!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

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 18 2025 18:18:56
Script start
Timing: Jan 18 2025 18:18:56
Module start 'layout'
Timing: Jan 18 2025 18:18:56
Module start 'content'
Timing: Jan 18 2025 18:18:56
Module end 'content'
Timing: Jan 18 2025 18:18:56
Script end

Main resources:

Total runtime0.0148 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.0469152.6406
Module start 'layout' 0.00470.0030 740.687539.4766
Module start 'content' 0.00780.0052 780.164189.4922
Module end 'content' 0.01290.0018 869.656330.3047
Script end 0.0147  899.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.2893140.0002
Check MTime0.00128.2071140.0001
Mysql Total
Database connection0.00074.434510.0007
Mysqli_queries0.002114.259230.0007
Looping result0.00000.080710.0000
Template Total0.001510.210.0015
Template load0.00075.036610.0007
Template processing0.00074.996310.0007
Override
Cache load0.00053.270610.0005
General
dbfile0.00117.380680.0001
String conversion0.00000.054940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs