HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome to TinyPortal. Please login or sign up.

July 25, 2024, 09:01:01 PM

Login with username, password and session length
  • Total Posts: 195,347
  • Total Topics: 21,237
  • Online today: 107
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 70
  • Total: 71
  • @rjen

TPsubs.template.php language file errors

Started by supportingactors, May 16, 2010, 08:59:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


TPsubs.template.php has three places in which it calls on $txt['..'] variables that don't exist:

at line 92 and 113, $txt['by'] should be $txt[525]
at 1674: $txt['on'] should be $txt[30]

This should fix the relevant problems some were seeing with "Undefined index..." errors in the Forum Error Log


Assuming you''re using SMF1.x.xx ? What version of TP ?

$txt['by'] comes from this line:  (line 35)
Themes/default/languages/TPShout.english.php:$txt['by'] = 'by';

$txt['on'] I think needs to be fixed.


Yes, using SMF 1.1.11, upgraded TP from .983 to 1.0b5-1 (partially manually)

I do see it in the TPShout.english.php, but I do not have the shout box loaded -- nor does it seem like that's where the language variable should be defined. It's more likely supposed to be in TPortal.English.php after line 23 "// Articles... //" -- where there's a 'tp-by' in line 27 which could be used for the ['by'] in the TPsubs template-- although "by" already seems to be a standard SMF language item.


Another one: in line 1752 $txt['in'] should probably be $txt['tp-incategory']

Is no one else getting these?


Im getting them as well ...

using SMF 1.1.11, upgraded TP from .983 to 1.0b5-1

QuoteUnable to load the 'main_above' template.


brilliant - many thx - has so far fixed(fingers crossed) the myriad of undefined index errors i was getting

been looking for this fix for ages

cheers :)


ok i am still getting errors - fewer but still 3 error pages a day


Perhaps you could start your own topic with the separate errors you are getting. Following our posting guide lines so we know what versions of everything you're using etc.

Posting Guidelines


tp 1 beta 5.1 on 1.1.11 (upgraded from 0.98 via beta4 etc - described elsewhere)
attached a screenshot of typical errors


Usually the leftbar and rightbar errors are from using a theme that is not compatible or that you have outdate files in your install for TP. This could be caused if the install didn't replace the files with the new files for some unknown reason.

What theme are you using? If you're using a custom theme, make sure if there are any TP files in it, that they are up to date. If you're not using a custom theme, upload a fresh set of TP files to the default theme.



sry to resurrect this thread but i am about to update TP (i am currently on a heavilly modded and much updated smf 1.16 and tp 1.105 similiarly many times updated)

i do use a custom theme and am still getting some undefined index errors pointing to the TPsubs.template.php in the custom theme folder.(TPsubs.template.php is the only tp file in my custom theme folder btw)

what i would like to clarify is when i update TP should i have to copy any files to my custom theme ?
am i best updating whilst in the default smf theme?

i shall now go and check uninstall present tp version and see if it it is error free, similiarly installing new version and check if it can be done 'auto'

will report back

thx for your efforts




uninstall failed at index template and subs but those files weren't changed in latest version so went ahead, and discovered i didn't have to uninstall previous version, i had merely to click upgrade, which i did with my custom theme still as my default.

thx - lookin' good so far..

will report back to see if there are any undefined index errors

(oh i updated the TPsubs.template.php --- the only tp file in my custom theme folder btw)

thx again for your work everyone!

update 2

just a page of 'copyright removed' errors all action= print page
i noted this smf thread btw