News: June 24th, 2017, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.3! GET IT NOW!!!

Login  |  Register
* * *
TinyPortal on Twitter
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 26, 2017, 11:23:46 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 181136
  • Total Topics: 20323
  • Online Today: 85
  • Online Ever: 383
  • (January 02, 2015, 05:58:49 AM)
Users Online
Users: 1
Guests: 72
Total: 73

Please read the Posting Guidelines


Author Topic: Undefined variable: modSettings error  (Read 607 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: 1738
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 »