SimplePortal

Support => English Support => Topic started by: Burke Knight on October 27, 2008, 02:14:59 PM

Title: Undefined errors...
Post by: Burke Knight on October 27, 2008, 02:14:59 PM
Just to let you know, I seem to be getting a lot of errors in my SMF 2.0 Beta 4 site.

Quote
8: Undefined index: smf82
Apply Filter: Only show the errors from this file
File: /Sources/SPortal2.php
Line: 1010
Quote
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 58
Quote
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 8
Quote
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 5
Title: Re: Undefined errors...
Post by: Manu on October 27, 2008, 05:57:20 PM
Quote
8: Undefined index: smf82
Apply Filter: Only show the errors from this file
File: /Sources/SPortal2.php
Line: 1010
I took a look at the index.english.php in both versions. SMF1.1.6 and SMF 2.0 Beta 4.

Only in 1.1.6 the text string smf82 I could find.
Code: [Select]
$txt['smf82'] = 'Board';
In SMF 2.0 Beta 4 the text string for "Board" is
Code: [Select]
$txt['board'] = 'Board';
I think that's something for our portal developers, cause I found in SPortal2.php the text string
['smf82'] instead of ['board']

This error
Code: [Select]
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 58
I got this error too when we used this Calendar http://simpleportal.net/index.php?topic=546.0 in our forum.
I don't know what's to do to delete the error, that's why I deleted the calendar in our forum.
Title: Re: Undefined errors...
Post by: ???1031 on October 28, 2008, 01:46:43 AM
The first bug is known and can be fixed like Manu said. Or you insert somewhere near end of the index.english.php $txt['smf82'] = $txt['board'].
For the other php block insert global $scripturl; is missing, add it at the top of the block than it will work again :).

Bye
DIN1031

Title: Re: Undefined errors...
Post by: Burke Knight on October 28, 2008, 09:08:40 AM
The first bug is known and can be fixed like Manu said. Or you insert somewhere near end of the index.english.php $txt['smf82'] = $txt['board'].

Ok, here goes, when did it your way, got a template parse error, from
Code: [Select]
lang_index+Modifications_english_default.php
in the cache folder. Even after deleting the cache. So, I replaced with:
Code: [Select]
$txt['smf82'] = 'Board';
Works great, and no errors. :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal