I'm using SMF 1.1.4, TinyPortal 0.9.8 with theme Delta TP 1.1
In my error logs I see al lot off the following errors:
8: Undefined index: Spijlbussen.nl
File: /storage/mijndomein/users/075078/public/sites/www.spijlbussen.nl/smf/Themes/delta_11final_tp/Display.template.php (main_above sub template - eval?)
Line: 110
It seems like I get this error for each template file in both default and delta theme directory. The index called (Spijlbussen.nl) is the name of my site.
What could cause this?
Not an error with the theme unless you've added something to it. I would try to narrow down where it happens. Clear your log, then browse one page at a time viewing the log each time. Try to figure out on which page or pages it is happening. That way you cant tell which file it is coming from.
OK, So I cleared the log.
The errors seem to appear with each page viewed. Below are some of the messages in the log.
Gast Vandaag om 21:35:13
82.134.241.75 e1d5c9d6968b142f5dff49f6ebb7c7e5
http://www.spijlbussen.nl/smf/index.php?action=forum
8: Undefined index: Spijlbussen.nl
Bestand: /storage/mijndomein/users/075078/public/sites/www.spijlbussen.nl/smf/Themes/delta_11final_tp/BoardIndex.template.php (main_above sub template - eval?)
Regel: 110
Gast Vandaag om 21:35:10
82.134.241.75 e1d5c9d6968b142f5dff49f6ebb7c7e5
http://www.spijlbussen.nl/smf/index.php?board=20.0
8: Undefined index: Spijlbussen.nl
Bestand: /storage/mijndomein/users/075078/public/sites/www.spijlbussen.nl/smf/Themes/delta_11final_tp/MessageIndex.template.php (main_above sub template - eval?)
Regel: 110
Gast Vandaag om 21:35:05
82.134.241.75 e1d5c9d6968b142f5dff49f6ebb7c7e5
http://www.spijlbussen.nl/smf/index.php?board=108.0
8: Undefined index: Spijlbussen.nl
Bestand: /storage/mijndomein/users/075078/public/sites/www.spijlbussen.nl/smf/Themes/delta_11final_tp/MessageIndex.template.php (main_above sub template - eval?)
Regel: 110
vwboesie Vandaag om 21:34:35
81.69.8.223 f07f0d53f4b3ae415c85c86027094f77
http://www.spijlbussen.nl/smf/index.php?action=profile;u=232;sa=showPosts;start=60
8: Undefined index: Spijlbussen.nl
Bestand: /storage/mijndomein/users/075078/public/sites/www.spijlbussen.nl/smf/Themes/default/Profile.template.php (main_above sub template - eval?)
Regel: 110
vwboesie Vandaag om 21:34:32
81.69.8.223 f07f0d53f4b3ae415c85c86027094f77
http://www.spijlbussen.nl/smf/index.php?action=profile;u=232;sa=showPosts
8: Undefined index: Spijlbussen.nl
Bestand: /storage/mijndomein/users/075078/public/sites/www.spijlbussen.nl/smf/Themes/default/Profile.template.php (main_above sub template - eval?)
Regel: 110
Nirvana Vandaag om 21:34:27
217.121.205.100 0a9d06050b80de803050c4259c10f4c1
http://www.spijlbussen.nl/smf/index.php?action=pm;f=inbox;sort=date;start=15
8: Undefined index: Spijlbussen.nl
Bestand: /storage/mijndomein/users/075078/public/sites/www.spijlbussen.nl/smf/Themes/default/PersonalMessage.template.php (main_above sub template - eval?)
Regel: 110
Sorry for the Dutch language, but is all seems to happen in de index.php om line 110, but this line is empty.
On my test site, I don't get these error, but that is a clean install. The live site has been operational for some time now. First without TP and since September with TP.
I hope the log helps. If I need to post something else, please let me know.
I have attached the index.php from the root of the site.
If it happens on every page view its more than likely in the index.template.php of your theme.
Still working on this.
I indeed narrowed it down to the index.template.php of the delta theme.
on line 110 is points to an array $context['Spijlbussen.nl']
In which file is this array defined and how? I looked in the settings.template.php in themes/default, but couldn't detect how it was defined.
files are attached.
Luc
This is something that you or someone else has changed. On line 110 is this code in the index.template.php file:
<meta name="Spijlbussen.nl" content="Spijlbussen.nl', $context['Spijlbussen.nl'], '" />', empty($context['robot_no_index']) ? '' : '
There is no such thing in SMF as $context['Spijlbussen.nl']
Its supposed to be $context['forum_name']
forum_name pulls the title of your board from your admin panel settings.
Thanks a lot. I changed is to
<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
I found this in a older backup. I don't know how it got changed, but it looking fine now.
Luc