Forums / Developer / 3.1 override problem

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