SimplePortal

Support => English Support => Topic started by: mrtrc266 on January 01, 2009, 10:59:33 AM

Title: 8: Undefined index: 01
Post by: mrtrc266 on January 01, 2009, 10:59:33 AM
Hello and Happy New Years to all.

I have had over 100 of this exact error in the last 24hrs.

I'm not sure what happened but out of the blue this error popped up. Anyone have any ideas?

8: Undefined index: 01
File: /home/xxxxxx/public_html/Themes/default/SPortal1-1.template.php (portal_below sub template - eval?)
Line: 229

Any help is greatly appreciated, thanks in advance.

SMF 1.1.7 / SP 2.1.1 / www.monsters-mansion.com
Title: Re: 8: Undefined index: 01
Post by: mrtrc266 on January 03, 2009, 10:27:40 AM
Bump, can anyone see this? Any Ideas?
Title: Re: 8: Undefined index: 01
Post by: Saga on January 05, 2009, 04:50:55 AM
i' had the same
your calendar do not display the month anymore but just the year ?
thi bug will disapear in february !!

find this
Code: [Select]
list($month, $year, $weekday) = explode(',',gmstrftime('%m,%Y,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
$title = $txt['months_titles'][$month].' '.$year;

replace by
Code: [Select]
list($month, $year, $weekday) = explode(',',gmstrftime('%m,%Y,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
$month = date("n",$now);
$title = $txt['months_titles'][$month].' '.$year;

i'm not very good in php but it's working :)
Title: Re: 8: Undefined index: 01
Post by: b-machinery on January 05, 2009, 08:26:35 AM
Had the same errors but just on 1.1.09 . So I do not really take care about ;)

I had the same problem with the calendar, solved it as described in this thread (http://simpleportal.net/index.php?topic=89.msg8667#msg8667).
Title: Re: 8: Undefined index: 01
Post by: mrtrc266 on January 06, 2009, 10:50:11 AM
SOLVED:

Found the fix in this thread http://simpleportal.net/index.php?topic=89.40

The problem was in my "Mini Calendar" in my portal

had to change
Code: [Select]
$title = $txt['months_titles'][$month].' '.$year;  //This is the SMF Text string, so it should be corrected for ut8 or iso

To
Code: [Select]
$title = $txt['months_titles'][(int)$month].' '.$year;  //This is the SMF Text string, so it should be corrected for ut8 or iso

Thanks for the help.
Title: Re: 8: Undefined index: 01
Post by: ???1031 on January 08, 2009, 02:51:11 AM
Please insert the second fix, too.

Bye
DIN1031
SimplePortal 2.3.8 © 2008-2024, SimplePortal