Advertisement:

Author Topic: Error log says undefined variables in Display.template.php  (Read 192 times)

Offline RockTreeSky

  • Newbie
  • *
  • Posts: 5
Error log says undefined variables in Display.template.php
« on: October 06, 2019, 10:02:53 PM »
My forum uses SMF 2.0.15
MySQL/Percona 5.6.41-84.1
PHP 7.2.7
Theme: Badem
only one Mod: SMF Likes Plus 1.5

I'm reactivating this old thread, because I'm trying to address error log messages, which look like the ones muratbora reported, also on the Badem theme.

File: /forum/Themes/badem/Display.template.php (main sub template - eval?)
8: Undefined variable: memCommID55
Line: 192
8: Undefined variable: ava
Line: 187


File:/forum/Themes/default/Login.template.php (body_above sub template - eval?)
8: Undefined index: title
Line: 422
undefined index: href
Line 423,


I have disabled Evaluation of Templates, and cleared out old errors, two hours ago.

I don't see the Login.template.php errors (yet?)
I'm still getting the Display.template.php errors about memCommID55 and ava being undefined variables.

New error log message:
hxxp:my-site.com/forum/index.php?topic=5129.msg36487 [nonactive]
8: Undefined variable: memCommID55
File: /...l/forum/Themes/badem/Display.template.php
Line: 192

hxxp:my-site/forum/index.php?topic=5129.msg36487 [nonactive]
8: Undefined variable: ava
File: /.../forum/Themes/badem/Display.template.php
Line: 187


So, I'm looking for where these two variable might be set,
Since I'm new to this, what kind of pattern does setting a variable look like?
Also, these variable are unique to Badem, they're not found in the default theme, right?
I'm still trying to figure out what the purpose of these variables is in Badem.

Edit: improve formatting.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,579
  • Gender: Male
    • Kindred-999 on GitHub
Re: Error log says undefined variables in Display.template.php
« Reply #1 on: October 07, 2019, 02:00:20 PM »
1- split from the other thread because users should start their own threads...  reference an olkder one, but start your own.
2- SMF does not support PHP 7.2 at this time.
3- All of those errors are pretty much related to mods abd theme specific stuff, which reallt needs to be followed up in the thread dedicated to supporting the theme or mod
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline RockTreeSky

  • Newbie
  • *
  • Posts: 5
Re: Error log says undefined variables in Display.template.php
« Reply #2 on: October 20, 2019, 08:18:50 PM »
Thanks for doing the split for me.

I posted my query to the end of the thread for the Theme Badem 2.0

https://www.simplemachines.org/community/index.php?topic=562574.msg4033831#msg4033831