News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

October 14, 2019, 10:23:57 AM

Login with username, password and session length

Recent

Members
  • Total Members: 3756
  • Latest: Ocean
Stats
  • Total Posts: 189081
  • Total Topics: 20763
  • Online Today: 70
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 1
Guests: 43
Total: 44

Author Topic: TPsubs.template.php language file errors  (Read 11338 times)

0 Members and 1 Guest are viewing this topic.

supportingactors

  • Guest
TPsubs.template.php language file errors
« on: May 16, 2010, 01: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

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: TPsubs.template.php language file errors
« Reply #1 on: May 16, 2010, 08:55:17 AM »
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.

supportingactors

  • Guest
Re: TPsubs.template.php language file errors
« Reply #2 on: May 16, 2010, 10:07:32 AM »
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.
« Last Edit: May 16, 2010, 10:18:22 AM by supportingactors »

supportingactors

  • Guest
Re: TPsubs.template.php language file errors
« Reply #3 on: May 16, 2010, 10:56:50 AM »
Another one: in line 1752 $txt['in'] should probably be $txt['tp-incategory']

Is no one else getting these?

Enemy1

  • Guest
Re: TPsubs.template.php language file errors
« Reply #4 on: May 24, 2010, 03:30:24 PM »
Im getting them as well ...

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

Quote
Unable to load the 'main_above' template.
« Last Edit: May 24, 2010, 11:55:37 PM by Enemy1 »

Offline stog

  • Jr. Member
  • **
  • Posts: 18
Re: TPsubs.template.php language file errors
« Reply #5 on: July 12, 2010, 11:36:42 AM »
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 :)

Offline stog

  • Jr. Member
  • **
  • Posts: 18
Re: TPsubs.template.php language file errors
« Reply #6 on: July 13, 2010, 06:03:23 AM »
ok i am still getting errors - fewer but still 3 error pages a day

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: TPsubs.template.php language file errors
« Reply #7 on: July 13, 2010, 09:05:02 AM »
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

Offline stog

  • Jr. Member
  • **
  • Posts: 18
Re: TPsubs.template.php language file errors
« Reply #8 on: July 13, 2010, 12:58:24 PM »

Offline stog

  • Jr. Member
  • **
  • Posts: 18
Re: TPsubs.template.php language file errors
« Reply #9 on: July 15, 2010, 01: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

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: TPsubs.template.php language file errors
« Reply #10 on: July 15, 2010, 07:51:13 AM »
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.

Offline stog

  • Jr. Member
  • **
  • Posts: 18
Re: TPsubs.template.php language file errors
« Reply #11 on: April 12, 2012, 04: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

Offline stog

  • Jr. Member
  • **
  • Posts: 18
Re: TPsubs.template.php language file errors
« Reply #12 on: April 12, 2012, 07:40:42 AM »
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