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

Login  |  Register
* * *
TinyPortal on Twitter
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 19, 2017, 05:13:34 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 181382
  • Total Topics: 20345
  • Online Today: 115
  • Online Ever: 383
  • (January 02, 2015, 05:58:49 AM)
Users Online
Users: 1
Guests: 62
Total: 63

Skinz





Author Topic: Undefined variable: modSettings error  (Read 709 times)

0 Members and 1 Guest are viewing this topic.

Offline stog

  • Jr. Member
  • **
  • Posts: 17
Undefined variable: modSettings error
« on: March 15, 2017, 04:42:26 AM »
hi -- i have a smf 2.0.13 with tp 1.2 and after disabling template eval.i am getting undefined errors
Code: [Select]
http://www.---.com/index.php?
8: Undefined variable: modSettings
File: /home/--------/htdocs/Themes/default/TPsubs.template.php(127) : eval()'d code
Line: 42

any ideas

thx in advance
« Last Edit: March 15, 2017, 07:16:53 AM by stog »

Online illori

  • Administrator
  • *
  • Posts: 1771
Re: Undefined variable: modSettings error
« Reply #1 on: March 15, 2017, 04:58:42 PM »
you got a reply on sm.org your issue does not seem related to this mod.

Offline stog

  • Jr. Member
  • **
  • Posts: 17
Re: Undefined variable: modSettings error
« Reply #2 on: March 16, 2017, 08:38:32 AM »
Well, the answer turned out to be in a TP code block in which I didn't globalise $modSettings.

thx -- wierd how when template error unchecked -- the error  pointed to membermap? (turns out that $modSettings isn't globalised in the membermap settings)
« Last Edit: March 16, 2017, 12:15:30 PM by stog »