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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 319
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 295
  • Total: 295

A Bunch of TP Related Errors

Started by antigoth, April 12, 2011, 05:44:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

antigoth

Link to my site: http://www.teamcanadaonline.net
SMF version: SMF 1.1.13
TP version: TP ver. 1.102
Default Forum Language: English (Only Language installed)
Theme name and version: SMF Default Theme - Core (1.1.5) with CSS Modifications
Browser Name and Version: Unknown - Error Log does not report which browser was being used. 
Mods installed: 1.    DisableTemplateEval    1.2    
2.    TinyPortal    1.102
3.    Twitter and Facebook Publisher mod    2.4
4.    Anti-Spam Verification Questions    1.02    
5.    SMF 1.0.21 / 1.1.13 Update    1.0
Related Error messages:
Several that keep popping up:
Error 1 - Has generated 13 pages of errors over the last day, mostly seems to trigger from robots, however does trigger from regular forum users too. This error is primary concern as it is causing my error log to grow quickly:
http://www.teamcanadaonline.net/index.php
8: Undefined index: yesterday
File:<*file path snipped *> Themes/default/TPsubs.template.php
Line: 2178

Error 2 1 Page of errors, exclusively from bots:
8: Undefined index: type
File: <*file path snipped *>Sources/TPortal.php
Line: 836 & Line: 834 (Same error, same file, same url triggers)
Source of error varies: (but all seems to have to do with the print option)
http://www.teamcanadaonline.net/index.php?amp;page=236;print
http://www.teamcanadaonline.net/index.php?page=198;print
http://www.teamcanadaonline.net/index.php?page=235;print
http://www.teamcanadaonline.net/index.php?page=243;print
and a few that spawn from:
http://www.teamcanadaonline.net/index.php

Error 3 Spawn exclusively by Bots.
Error message: Copyright removed!!
Multiple URL's associated with it, but all contain the same response when you follow it. (Here's one for a sample) I'm questioning if this is an error that can really be removed?
http://www.teamcanadaonline.net/index.php?action=printpage;topic=5908.0

Error 4 Listing two errors, that I'm figuring are linked.
8: Undefined variable: avatar_height
File: <*file path snipped *>Sources/TPortal.php
Line: 643


8: Undefined variable: avatar_width
File: <*file path snipped *>Sources/TPortal.php
Line: 643

http://www.teamcanadaonline.net/index.php/page,112.html

Gone in and checked - if I switch the "offending" users Avatar to within constraints by hosting it locally, as opposed to letting the user link from external sources.

Just wondering if there's something I can do coding wise to deal with this and remove the errors.

Error 5 Similar to Error 4, but does not share triggering URLs from error 4. And the line is different

8: Undefined variable: avatar_height
8: Undefined variable: avatar_width
File: <*file path snipped *>/Sources/TPortal.php
Line: 705
http://www.teamcanadaonline.net/index.php/page,148.html



Error 6 Doesn't show up much, but since it's shown up repeatedly (half dozen times) I figured I should see if there's something I can do about it. 

8: Undefined variable: file_ext
File: <*file path snipped *>Sources/TPSubs.php
Line: 2395

http://www.teamcanadaonline.net/index.php?action=tpmod;sa=tpattach;attach=1205;type=avatar
http://www.teamcanadaonline.net/index.php?action=tpmod;sa=tpattach;attach=1066;type=avatar
http://www.teamcanadaonline.net/index.php?action=tpmod;sa=tpattach;attach=1092;type=avatar


There's some other random errors, but either I know what's causing them. (Password Errors) or they're bots finding "undefined index" randomly. (3-4 results)

There was a previous error with an undefined Index that I resolved, as documented here:
http://www.simplemachines.org/community/index.php?topic=428688.new;topicseen#new

Thanks in Advance!

P.S. - Since I'm prattling on - the "Spiders" Classification of "Who's Online" - It that part of the SMF 2.x, or is that a mod?

IchBin

That's a big ugly post. lol

Error 1: Undefined index: yesterday <--- Is likely from a block that you have custom code in. It may not be working properly.
Error 2: Likely caused by this code in Sources/TPortal.php.
Code (find) Select
if($row['type']=='php')
$context['TPortal']['printbody'] = eval($pwhat);
elseif($row['type']=='bbc')
$context['TPortal']['printbody'] = parse_bbc($what);
else
$context['TPortal']['printbody'] = $what;


Code (replace_with_this) Select
if($article['type']=='php')
$context['TPortal']['printbody'] = eval($pwhat);
elseif($article['type']=='bbc')
$context['TPortal']['printbody'] = parse_bbc($what);
else
$context['TPortal']['printbody'] = $what;


Error 3: Doesn't look like a TP error.
Error 4 & 5: I think this is fixed in the next release. Don't have the changes available for you.
Error 6: Will have to investigate.

This website is proudly hosted on Crocweb Cloud Website Hosting.