TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 103
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 418
  • Total: 418

Forum Error's

Started by gffb, June 15, 2007, 05:27:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gffb

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

IchBin

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.

gffb

#2
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

IchBin

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>

gffb

#4
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?

IchBin

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.

gffb

Ok thanks for the great support :)

This website is proudly hosted on Crocweb Cloud Website Hosting.