TinyPortal

Development => Support => Topic started by: gffb on June 15, 2007, 05:27:30 PM

Title: Forum Error's
Post by: gffb on June 15, 2007, 05:27:30 PM
Hi there I am getting loads of these error's every day on my board www.harrowcwu.org
QuoteUse of undefined constant Guest - assumed 'Guest'
File: /home/abcunite/public_html/harrowcwu/mainsite/Themes/default/TPortal.template.php (eval?)
Line: 271
?page=32

Installed mods
QuoteMod Name     Version     
1.    TinyPortal    0.983    [ Uninstall ]
2.    SMF Gallery Lite    1.7.1    [ Uninstall ]
3.    Custom Profile Field Mod    3.16    [ Uninstall ]
4.    Ad Managment    2.3    [ Uninstall ]
5.    Gender On Registration    1.0    [ Uninstall ]
6.    URL Popup    1.0    [ Uninstall ]
7.    Contact Page    1.0    [ Uninstall ]
8.    Default Membergroup on Registration    1.0    [ Uninstall ]
9.    Favicon    1.0    [ Uninstall ]
10.    PM On Registration    1.0.2    [ Uninstall ]
11.    Streaming 3    4.2.2b    [ Uninstall ]

SMF 1.1.2 TP 0.98
Title: Re: Forum Error's
Post by: IchBin on June 15, 2007, 06:00:03 PM
To help narrow this down I'll need you to do some work here. If you have IE7 or FF open two tabs. One tab on the forum error log page, and the other on your home page. Clear the error log, then refresh the home page. After doing that refresh the error log and see if there are any errors. Clear the error log again. Now goto the forum page in the other tab. Refresh the error log. What we are trying to do here is narrow down "when" the error happens. Clear the error log each time you go into a different place. Go into a board, and then into a topic and test for the error. If you get errors in all of the places please post your index.template.php file. If you don't and you only get the error in certain places of your site. Post the appropriate file from the theme you're using.

If error on forum page, post boardindex.template.php file.
If error on list of topics page, post MessageIndex.template.php file
If error on Topic view page, post Display.template.php file.
Title: Re: Forum Error's
Post by: gffb on June 15, 2007, 06:12:38 PM
Ok I went through the links on the top line but the strange thing is the the IP for the errors is not my IP address theye were three different ones.

1st ip 66.249.73.38   
2nd ip 128.30.52.34
3rd ip 133.27.228.132

I am going to try testing the links while I am logged out and see if I can make my IP address show up as an error

Ok while logged out it seems that every page I visit gives me an error message for my IP so here is my index.template.php as requested.
POST EXCEDDED MAX LENGTH SO ADDED IT AS ATTACHMENT
Title: Re: Forum Error's
Post by: IchBin on June 15, 2007, 06:22:22 PM
Search for this line:
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', Guest , '</b></span>
Change it to this:
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b> Guest</b></span>
Title: Re: Forum Error's
Post by: gffb on June 15, 2007, 06:32:15 PM
Ok fingers crossed that seems to of fixed it will give it a few hours for bot's to crawl and see what happens..... :laugh:
Thank you so much IchBin

One question in this area where you asked me to change the code there is the same instance of ' <b>' about 5 lines above does that also need to be changed or should hat stay as it is, this is the area I am talking about.

// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>';

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
</td>';
else
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b> Guest</b></span>
</td>';

As you can see the code is in line 8 also?

Also how did that get there was it a mod that needs correcting?
Title: Re: Forum Error's
Post by: IchBin on June 15, 2007, 07:19:16 PM
I'm not sure what put that code there. The other code you were asking about is fine. The ,' and ', is what is used to tell php to escape from PHP to HTML and back.
Title: Re: Forum Error's
Post by: gffb on June 15, 2007, 07:20:36 PM
Ok thanks for the great support :)