News: December 2nd, 2015, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.2! GET IT NOW!!!

Login  |  Register
* * *

Welcome !!!

Welcome, Guest. Please login or register.
Did you miss your activation email?
Please welcome Afer, our newest member.

 
 

TinyPortal on Twitter
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 24, 2017, 01:55:36 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3652
  • Latest: Afer
Stats
  • Total Posts: 180660
  • Total Topics: 20282
  • Online Today: 92
  • Online Ever: 383
  • (January 02, 2015, 05:58:49 AM)
Users Online
Users: 2
Guests: 46
Total: 48

Please read the Posting Guidelines


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