Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: Satada - heinäkuu 20, 2011, 10:58:04 AP

Otsikko: 8: Undefined offset: 1 & ThemeStrings.english.php (init sub template - eval?)
Kirjoitti: Satada - heinäkuu 20, 2011, 10:58:04 AP
I've done some searching, but no clear answer to this problem. My forum is using BlueSkies theme (which I can't find any more, really like this theme).

Nothing displays but this error when I go to the page:

     8: Undefined offset: 1
     File: <path>/forums/Themes/BlueSkies/languages/ThemeStrings.english.php (init sub template - eval?)
     Line: 74


I've disabled template eval to see the "real" error (according to most of the previous posts found regarding this issue) and I get the following:

     8: Undefined offset: 1
     File: <path>/forums/Themes/BlueSkies/index.template.php
     Line: 74


So here's what's on line 74 in index.template.php (bold and red):

     foreach($pag as $menu => $value)
     {
          $what=explode(',',$value);
          $context['sitemenu'][]=array($what[0],$what[1],$what[2]);
     }


No mods are installed, but the server was bounced. The only thing I can think of that has changed recently (months ago) I was scanning permissions and made a few adjustments to tighten up a little. I do not remember what changes were made or why it would not take effect until a reboot.

I no longer have the BlueSkies.zip or I'd just install it elsewhere to compare.

Can anyone help me with either finding a solution to the error or does anyone have a copy of the BlueSkies Theme?

Thanks
Otsikko: Re: 8: Undefined offset: 1 & ThemeStrings.english.php (init sub template - eval?)
Kirjoitti: Illori - heinäkuu 20, 2011, 11:02:01 AP
install this mod http://custom.simplemachines.org/mods/index.php?mod=2054 enable it and post any new error messages without eval in them.