TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: supportingactors on May 16, 2010, 08:59:05 AM

Title: TPsubs.template.php language file errors
Post by: supportingactors on May 16, 2010, 08:59:05 AM
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
Title: Re: TPsubs.template.php language file errors
Post by: IchBin on May 16, 2010, 03:55:17 PM
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.
Title: Re: TPsubs.template.php language file errors
Post by: supportingactors on May 16, 2010, 05:07:32 PM
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.
Title: Re: TPsubs.template.php language file errors
Post by: supportingactors on May 16, 2010, 05:56:50 PM
Another one: in line 1752 $txt['in'] should probably be $txt['tp-incategory']

Is no one else getting these?
Title: Re: TPsubs.template.php language file errors
Post by: Enemy1 on May 24, 2010, 10:30:24 PM
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.
Title: Re: TPsubs.template.php language file errors
Post by: stog on July 12, 2010, 06:36:42 PM
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 :)
Title: Re: TPsubs.template.php language file errors
Post by: stog on July 13, 2010, 01:03:23 PM
ok i am still getting errors - fewer but still 3 error pages a day
Title: Re: TPsubs.template.php language file errors
Post by: IchBin on July 13, 2010, 04:05:02 PM
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 (http://www.tinyportal.net/index.php?topic=581.0)
Title: Re: TPsubs.template.php language file errors
Post by: stog on July 13, 2010, 07:58:24 PM
thx - i did do that a month ago at http://www.tinyportal.net/index.php?topic=32732.msg262837#msg262837
Title: Re: TPsubs.template.php language file errors
Post by: stog on July 15, 2010, 08:57:48 AM
tp 1 beta 5.1 on 1.1.11 (upgraded from 0.98 via beta4 etc - described elsewhere)
attached a screenshot of typical errors
Title: Re: TPsubs.template.php language file errors
Post by: IchBin on July 15, 2010, 02:51:13 PM
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.
Title: Re: TPsubs.template.php language file errors
Post by: stog on April 12, 2012, 11:07:05 AM
hi

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

regards
Title: Re: TPsubs.template.php language file errors
Post by: stog on April 12, 2012, 02:40:42 PM
update:

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 http://www.simplemachines.org/community/index.php?topic=381449.0