SimplePortal
Support => English Support => Topic started 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.
8: Undefined index: smf82
Apply Filter: Only show the errors from this file
File: /Sources/SPortal2.php
Line: 1010
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
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
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
-
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.
$txt['smf82'] = 'Board';
In SMF 2.0 Beta 4 the text string for "Board" is
$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
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.
-
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
-
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
lang_index+Modifications_english_default.php
in the cache folder. Even after deleting the cache. So, I replaced with:
$txt['smf82'] = 'Board';
Works great, and no errors. :)