TinyPortal

Development => Support => Topic started by: Kimmen on July 26, 2011, 06:40:34 PM

Title: Another error shows up
Post by: Kimmen on July 26, 2011, 06:40:34 PM
Still running SMF 2.0 Final and TP 104

Apply Filter: Only show the error messages of this URL
http://www.efclan.eu/index.php?page=Battlefield%203:%20Full%20Length%20Fault%20Line%20Gameplay%20Trailer%20;wap2
Apply Filter: Only show the errors with the same message
8: Uninitialized string offset: 0
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Themes/default/languages/TPShout.english.php (wap2_tp sub template - eval?)
Line: 223
Title: Re: Another error shows up
Post by: IchBin on July 26, 2011, 08:41:04 PM
Did you pull this error before you made the 'disable evaluation of template' setting change? I don't think it should be erroring on a language file. The error should have changed after you changed the setting. Hitting your page with wap2 does seem to show a blank page for me. Take a look at your error log and post the error I created from hitting that page if you would.
Title: Re: Another error shows up
Post by: Kimmen on July 26, 2011, 09:52:53 PM
Apply Filter: Only show the error messages of this URL
http://www.efclan.eu/index.php?page=Battlefield%203:%20Full%20Length%20Fault%20Line%20Gameplay%20Trailer%20;wap2
Apply Filter: Only show the errors with the same message
8: Uninitialized string offset: 0
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Themes/default/TPwireless.template.php
Line: 223

This is what shows now.
Title: Re: Another error shows up
Post by: IchBin on July 26, 2011, 10:38:56 PM
Ok, looks like it's choking on this code:
echo '<p class="titlebg">' . $context['linktree'][0]['name']  . '</p>';

I don't know why it's happening yet. This one will take some time for me to figure out. I'm headed on vacation for the next couple of weeks either tomorrow or Thursday morning, so if you don't see any answer for this, hit me up again in a couple of weeks as I possibly won't be around until then.

One question I need to know though, is do you have the linktree turned off in the article options?
Title: Re: Another error shows up
Post by: Kimmen on July 26, 2011, 10:44:36 PM
Indeed, they are turned off.
Title: Re: Another error shows up
Post by: IchBin on July 26, 2011, 10:48:16 PM
Ok, might be easier than I thought then. lol

Open Themes/default/TPwireless.template.php and find this on about line #223:
echo '<p class="titlebg">' . $context['linktree'][0]['name']  . '</p>';

Replace with this:
if(in_array('linktree', $context['TPortal']['article']['visual_options']))
echo '<p class="titlebg">' . $context['linktree'][0]['name']  . '</p>';


Let me know if the errors goes away if you hit that article with wap2.
http://www.efclan.eu/index.php?page=Battlefield 3: Full Length Fault Line Gameplay Trailer;wap2
Title: Re: Another error shows up
Post by: Kimmen on July 26, 2011, 10:54:31 PM
heheheheehehe, fix one thing, lead to another lol  ;D

Apply Filter: Only show the error messages of this URL
http://www.efclan.eu/index.php?page=Battlefield%203:%20Full%20Length%20Fault%20Line%20Gameplay%20Trailer%20;wap2
Apply Filter: Only show the errors with the same message
8: Uninitialized string offset: 0
Apply Filter: Only show the errors from this file
File: /customers/efclan.eu/efclan.eu/httpd.www/Themes/default/Wireless.template.php
Line: 1516
Title: Re: Another error shows up
Post by: IchBin on July 26, 2011, 11:12:47 PM
That would be a problem then. Since we are removing the linktree, SMF still thinks the linktree should exist. I'll have to find a way to make it work for both. Don't know how to do that at the moment.
Title: Re: Another error shows up
Post by: Kimmen on July 26, 2011, 11:30:06 PM
Oh well, then we will just wait and see what future brings. I am sure you will nail it one way or the other  :knuppel2:  ;D
Title: Re: Another error shows up
Post by: IchBin on August 03, 2011, 01:27:25 AM
If you'd like to try something I'm thinking we need to let the linktree do it's thing if wireless is set. First remove the code I posted earlier and revert to the previous code.

Then try changing this code in TPortal.php:
// linktree?
if(!in_array('linktree', $context['TPortal']['article']['visual_options']))
$context['linktree'] = '';


Replace it with this:
// linktree?
if(!in_array('linktree', $context['TPortal']['article']['visual_options']) && !WIRELESS)
$context['linktree'] = '';


Let me know if you get any errors still or if there's any undesired problems with this change.