Reading ini settings returns "????"

Author Message

Gabriel Finkelstein

Thursday 13 September 2007 8:55:21 am

I'm trying to read de HostMatchMapItems array from site.ini, with the following code:

$siteINI =& eZINI::instance( 'site.ini', $base_path. "settings/" );
$siteINI->BlockValues['SiteAccessSettings']['HostMatchMapItems'];

(Where $base_path is the path to ez)

And it returns:

Array
(
    [0] => nvh.amos.dvh2.ez.no;admin
    [1] => user.bf.ez.no;user
    [2] => demo.bf.ez.no;demo
    [3] => admin.bf.ez.no;admin
    [4] => ezno.bf.ez.no;ezno
    [5] => eznoadmin.bf.ez.no;eznoadmin
    [6] => ??????????????????????????????????????
    [7] => ?????????????????????????????????????????????
    [8] => ?????????????????????????????????????????????????
    [9] => ????????????????????????????????????????????????????????
    [10] => ?????????????????????????????????????????????????
    [11] => ??????????????????????????????????????????
    [12] => ??????????????????????????????????????????????
    [13] => ?????????????????????????????????????????????????
    [14] => ????????????????????????????????????????????????????????
    [15] => ???????????????????????????????????????????????????
    [16] => ??????????????????????????????????????????????????????????
    [17] => ????????????????????????????????????????????????????????????????????
    [18] => ??????????????????????????????????????????????????????????
    [19] => ???????????????????????????????????????????????????????????????????????????
    [20] => ?????????????????????????????????????????????????????????????
    [21] => ?????????????????????????????????????????????????????
    [22] => ?????????????????????????????????????????????????????????
    [23] => ????????????????????????????????????????????????????????????
    [24] => ???????????????????????????????????????????????????
    [25] => ??????????????????????????????????????????????????????????
    [26] => ??????????????????????????????????
    [27] => ?????????????????????????????????????????
    [28] => ??????????????????????????????????????????????
    [29] => ?????????????????????????????????????????????????????
)

So, all items that are located in the site.ini override come back as "?????".

Already tried changing charsets in the site.ini.append header (#?ini charset=).

The same happens with every setting in any override ini.

This happens in an ez 3.9 installation. Tried in a 3.8 and it worked fine.

Could anyone help me?

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

Main resources:

Total runtime0.7496 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.0469152.6250
Module start 'layout' 0.00480.0027 741.671939.4453
Module start 'content' 0.00750.7384 781.1172444.4453
Module end 'content' 0.74590.0036 1,225.56258.3125
Script end 0.7495  1,233.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4610160.0002
Check MTime0.00140.1929160.0001
Mysql Total
Database connection0.00070.097110.0007
Mysqli_queries0.693092.4422460.0151
Looping result0.00050.0660440.0000
Template Total0.712395.020.3562
Template load0.00230.300620.0011
Template processing0.710194.718920.3550
Template load and register function0.00040.052010.0004
states
state_id_array0.00190.255710.0019
state_identifier_array0.00480.636320.0024
Override
Cache load0.00140.1932140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.089410.0007
Fetch class attribute name0.00080.105020.0004
XML
Image XML parsing0.00811.080510.0081
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00881.1682160.0005
String conversion0.00000.004040.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs