3.1 override problem

Author Message

Paul Forsyth

Monday 02 June 2003 2:20:03 pm

At least i believe its an override problem...

Basically i have a override.ini.append in my siteaccess/user directory. Within the override is:

# General Overrides
[pagelayout_site]
Source=pagelayout.tpl
MatchFile=pagelayout_site.tpl
Subdir=templates
Match[section]=1

but instead of this layout the site defaults to pagelayout with errors like:

Warning: PHP Jun 02 2003 22:06:55

array_keys() [<a href='http://www.php.net/function.array-keys'>function.array-keys</a>]: The first argument should be an array in /var/www/html/sites/site-v2/2631/kernel/common/eztemplatedesignresource.php on line 338

Warning: PHP Jun 02 2003 22:06:55

Invalid argument supplied for foreach() in /var/www/html/sites/site-v2/2631/kernel/common/eztemplatedesignresource.php on line 338

Warning: PHP Jun 02 2003 22:06:55

Undefined index: base_dir in /var/www/html/sites/site-v2/2631/kernel/common/eztemplatedesignresource.php on line 329

Warning: PHP Jun 02 2003 22:06:55

Undefined index: section in /var/www/html/sites/site-v2/2631/var/cache/override/override_a35878bf44e799845146f6c688f29a50.php on line 688

From the little debugging ive done it seems the code has problems with the section number and the array_keys part seems to be a problem with the override caching. Im not sure if they are related but they are stopping me from viewing my site.

Im wondering if there is perhaps a syntax problem with my override file or if its a bug in 3.1? Difficult to say. Ez, have you seen errors like this before?

thanks

paul

Selmah Maxim

Tuesday 03 June 2003 12:21:49 am

Hi ..

you may try to add folder location for Source,
try this :
Source=content/pagelayout.tpl

Or

Source=templates/pagelayout.tpl

Paul Forsyth

Tuesday 03 June 2003 2:44:11 am

This doesn't work. I know from my debugging that my pagelayout_site is being found but for some reason the unknown index warning crops up followed by the default pagelayout being chosen instead.

Any ideas? I can post my override.ini.append if need be.

paul

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 30 2025 22:25:32
Script start
Timing: Jan 30 2025 22:25:32
Module start 'layout'
Timing: Jan 30 2025 22:25:32
Module start 'content'
Timing: Jan 30 2025 22:25:32
Module end 'content'
Timing: Jan 30 2025 22:25:32
Script end

Main resources:

Total runtime0.0215 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.0313151.1953
Module start 'layout' 0.00430.0039 739.2266220.6563
Module start 'content' 0.00820.0116 959.8828997.6641
Module end 'content' 0.01980.0016 1,957.546933.9922
Script end 0.0214  1,991.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.5444140.0002
Check MTime0.00104.7153140.0001
Mysql Total
Database connection0.00062.989510.0006
Mysqli_queries0.00209.473830.0007
Looping result0.00000.051110.0000
Template Total0.00115.310.0011
Template load0.00083.931210.0008
Template processing0.00031.364810.0003
Override
Cache load0.00062.808510.0006
General
dbfile0.00083.503780.0001
String conversion0.00000.045540.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