TinyPortal

Development => Support => Topic started by: ynohtna on October 26, 2005, 03:42:42 PM

Title: Error logs in tpadmin tp 0.7.5
Post by: ynohtna on October 26, 2005, 03:42:42 PM
Thought I'd start a seperate thread

I found a lot of logs generate when I goto tpadmin and then edit blocks.  Just those two actions generated these logs

First I get this

http://www.elmira-anthony.ca/smforum/index.php?action=tpadmin
8: Undefined index: tp-pathtothumbs2
File: /home/smforum/Themes/TP_neptune11rc1/TPortalBlocks.template.php (eval?)
Line: 341

then I get these, 4 at the same time

http://www.elmira-anthony.ca/smforum/index.php?action=tpadmin;sub=blocks
8: Undefined variable: rblock
File: /home/smforum/Themes/TP_neptune11rc1/TPortalBlocks.template.php (eval?)
Line: 1132
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: winrules on October 29, 2005, 08:46:21 PM
i get the first one to, but not the second one.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: scotte44 on October 30, 2005, 12:16:22 AM
Im getting these same types of errors:

8: Undefined index: tp-pathtothumbs2
File: /home/xxxxxx/public_html/Themes/default/TPortalBlocks.template.php (eval?)
Line: 341

512: parseBoardMod(): The filename 'index.php' is not a full path!
File: /home/xxxxxx/public_html/Sources/Subs-Package.php
Line: 1660

My users are getting errors when trying to log in too. Any ideas?
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Moocat on October 30, 2005, 04:30:39 AM
sorry, but i'm gonna have to be a hypocrite here , but you guys need to follow the posting guidelines 

http://www.tinyportal.net/smf/index.php?topic=581.0

;D

they need to know all your versions and the like

ichbin corrected me on that just the other day!

did you get errors on the package install?
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on October 30, 2005, 11:54:48 AM
The "tp-pathtothumbs2" error is a language error, and can be corrected by adding $txt['tp-pathtothumbs2'] = ''; to your TPortal.english.php in the languages folder.

"rblock" error stems from something with the right bar..have you zero blocks there? and turned the rightbar off?

"parseBoardMod" seems to be something about the package manager..and probably a incomplete path for the install file of TP. What version of SMF are you on?
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: scotte44 on October 30, 2005, 02:18:51 PM
Thanks for the reply Bloc.

1. Site: http://www.federationofkings.com
2. Error msg posted above
3. Default theme with TP 0.75 & SMF 1.1 RC1
4. Mods installed: TP, enhanced quick reply, membergroup color legend, real name mod, online users today

I will put the pathtothumbs in my language file today.
       
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: ynohtna on October 30, 2005, 07:12:24 PM
Quote from: Bloc on October 30, 2005, 11:54:48 AM
"rblock" error stems from something with the right bar..have you zero blocks there? and turned the rightbar off?

cool, I'll try to add the variable and see what happens. 

The right blocks has no blocks in it, I deleted them all AND I also turned off the right blocks in the tpadmin layout or something.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on October 30, 2005, 07:45:36 PM
scotte44 , can you find out if the "parseBoardmod" error came when installing one of those mods - including TP? If it was just TP installed, it would have come from that, but since you have several...

Check the date the error arrived for example.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on October 30, 2005, 07:46:20 PM
Quote from: ynohtna on October 30, 2005, 07:12:24 PM
Quote from: Bloc on October 30, 2005, 11:54:48 AM
"rblock" error stems from something with the right bar..have you zero blocks there? and turned the rightbar off?

cool, I'll try to add the variable and see what happens. 

The right blocks has no blocks in it, I deleted them all AND I also turned off the right blocks in the tpadmin layout or something.

ok. it might be a bug there, I will check it further out.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: scotte44 on October 30, 2005, 09:00:11 PM
Here are some of the errors I have from the last two days, TP has been installed since I started the forum last week:

8: Undefined index: 5
File: /home/xxxxxx/public_html/Sources/TPortal.php
Line: 285

8: Undefined index: TPortal
File: /home/xxxxxx/public_html/Themes/default/Login.template.php (eval?)
Line: 484

8: Undefined index: tp-pathtothumbs2
File: /home/xxxxxx/public_html/Themes/default/TPortalBlocks.template.php (eval?)
Line: 341

512: parseBoardMod(): The filename 'Themes/default/languages/Modifications.english.php' is not a full path!
File: /home/xxxxxx/public_html/Sources/Subs-Package.php
Line: 1660

512: parseBoardMod(): The filename 'Themes/default/Xml.template.php' is not a full path!
File: /home/xxxxxx/public_html/Sources/Subs-Package.php
Line: 1660

512: parseBoardMod(): The filename 'Themes/default/Stats.template.php' is not a full path!
File: /home/xxxxxx/public_html/Sources/Subs-Package.php
Line: 1660

512: parseBoardMod(): The filename 'Themes/classic/BoardIndex.template.php' is not a full path!
File: /home/xxxxxx/public_html/Sources/Subs-Package.php
Line: 1660

Those parseBoardMod errors happen over and over.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: scotte44 on October 30, 2005, 09:01:55 PM
I installed Online Users Today and Real Name on Friday. Should I remove them and see if it makes a difference?
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on October 31, 2005, 12:20:48 PM
Yes..because some of errors are not related to TP I think.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: scotte44 on October 31, 2005, 10:35:29 PM
I messed with the installed mods today. Once I installed OnLine Users Today the errors started happening. I removed it and all is well so far. I really like being able to see which members visited today. Oh well.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on November 01, 2005, 10:59:41 AM
Is the Online Today the latest version? I think its at v1.3?
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: scotte44 on November 01, 2005, 02:09:17 PM
I have version OnLineUserToday_11b3.mod which I got directly from the authors site, wish I could read Italian, it would help.

I have had no errors since yesterday. I just reinstalled the mod and I get all these errors:

512: parseBoardMod(): The filename 'Themes/default/languages/Modifications.english.php' is not a full path!
File: /home/xxxxxx/public_html/Sources/Subs-Package.php
Line: 1660

512: parseBoardMod(): The filename 'Themes/default/Xml.template.php' is not a full path!
File: /home/xxxxxx/public_html/Sources/Subs-Package.php
Line: 1660

512: parseBoardMod(): The filename 'Themes/default/Stats.template.php' is not a full path!
File: /home/xxxxxx/public_html/Sources/Subs-Package.php
Line: 1660

512: parseBoardMod(): The filename 'Themes/classic/BoardIndex.template.php' is not a full path!
File: /home/xxxxxx/public_html/Sources/Subs-Package.php
Line: 1660

Doesnt look like it has anything to do with TP.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on November 01, 2005, 05:48:02 PM
No..rather sounds like a error in that mod.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Sakuragi on November 03, 2005, 08:51:15 PM
I get these errors too:

8: Undefined index: TPortal
Fichier: /home/Sak/domains/public_html/smf/Themes/default/Login.template.php (eval?)
Ligne: 187

8: Undefined index: TPortal
Fichier: /home/Sak/domains/public_html/smf/Themes/default/Login.template.php (eval?)
Ligne: 214

8: Undefined index: TPortal
Fichier: /home/Sak/domains/public_html/smf/Themes/default/Login.template.php (eval?)
Ligne: 479

8: Undefined index: TPortal
Fichier: /home/Sak/domains/public_html/smf/Themes/default/Login.template.php (eval?)
Ligne: 381

8: Undefined index: TPortal
Fichier: /home/Sak/domains/public_html/smf/Themes/default/Login.template.php (eval?)
Ligne: 371

8: Undefined index: TPortal
Fichier: /home/Sak/domains/public_html/smf/Themes/default/Login.template.php (eval?)
Ligne: 361

8: Undefined index: TPortal
Fichier: /home/Sak/domains/public_html/smf/Themes/default/Login.template.php (eval?)
Ligne: 574

but in Login.template.php  i find only 290 lines  :uglystupid2:
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on November 03, 2005, 11:33:52 PM
This is most likely missing call in Errors.php. Are you using latest TP?
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Sakuragi on November 03, 2005, 11:57:44 PM
yes tp 0.7.5
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Sakuragi on November 04, 2005, 12:08:44 AM
I added a chat's link in index.template.php and
now i get another error log:
Use of undefined constant Chat - assumed 'Chat'
Fichier: /home/Sak/domains/public_html/smf/Themes/default/TPortalBlocks.template.php (eval?)
Ligne: 497

here is the code of the link :
echo '
                                <a href="', $scripturl, '?page=26">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . Chat . '" style="margin: 2px 0;" border="0" />' : Chat), '</a>', $context['menu_separator'];
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on November 04, 2005, 01:52:20 AM
just change the part:

chat.gif" alt="' . Chat . '" style=

to:

chat.gif" alt="Chat" style=

Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Sakuragi on November 04, 2005, 03:07:18 AM
thanks but still give the same error
Use of undefined constant Chat - assumed 'Chat'
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Ray on November 04, 2005, 05:08:34 AM
I used

href="http://www.rranderson.com/dvd/chat" target="_blank"><img name="Chat" id="chat" onmouseover="javascript:document.Chat.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat_over.gif\'" onmouseout="javascript:document.chat.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif\'" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[98] . '" style="margin: 0px 0;" border="0" /></a>';

Hope this can help some
this is with the techHead theme
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Sakuragi on November 04, 2005, 09:08:05 PM
thanks but i fixed with this:

<a href="', $scripturl, '?page=15">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['smf_chat'] . '" style="margin: 2px 0;" border="0" />' : $txt['smf_chat']), '</a>', $context['menu_separator'];

but i still have this error log:

http://www.domain.com/smf/index.php
Undefined index: TPortal
Fichier: /home/Sak/domains/public_html/smf/Themes/default/Login.template.php (eval?)

Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Nokonium on November 06, 2005, 08:56:08 AM
My SGR test site (1.1RC1 & TP0.75) was visited by MSNbots last night and left me with this lot in the error log.

207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 189
?action=post;topic=1.0;num_replies=0    Today at 03:42 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 208
?action=post;topic=1.0;num_replies=0    Today at 03:42 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 353
?action=post;topic=1.0;num_replies=0    Today at 03:42 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 355
?action=post;topic=1.0;num_replies=0    Today at 03:42 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 357
?action=post;topic=1.0;num_replies=0    Today at 03:42 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 373
?action=post;topic=1.0;num_replies=0    Today at 03:42 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 383
?action=post;topic=1.0;num_replies=0    Today at 03:42 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 393
?action=post;topic=1.0;num_replies=0    Today at 03:42 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 488
?action=post;topic=1.0;num_replies=0    Today at 03:42 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 189
?topic=2.0    Today at 04:41 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 208
?topic=2.0    Today at 04:41 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 353
?topic=2.0    Today at 04:41 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 355
?topic=2.0    Today at 04:41 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 357
?topic=2.0    Today at 04:41 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 373
?topic=2.0    Today at 04:41 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 383
?topic=2.0    Today at 04:41 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 393
?topic=2.0    Today at 04:41 AM   
207.46.98.72    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 488
?topic=2.0    Today at 04:41 AM
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: IchBin on November 10, 2005, 04:49:06 PM
Any ideas what is causing this Bloc? It seems to be poping up a lot.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on November 10, 2005, 06:03:11 PM
Its the login routine..or rather the error screen derived from it. I am looking into it now.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: WizardHawk on November 29, 2005, 05:06:43 AM
Any news on this yet? I'm getting sometimes 40 or more pages of this Login.template.php error a DAY. I've been getting them since I updated to 0.7.5 which was the day it came out. This error only happens to guests (or regular users not logged in) but I have a high volume of game driven guests.

Hard to browse through to look for valid errors when you get so many of these bogus ones.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on November 29, 2005, 10:32:53 AM
Yes. I haven't quite nailed it yet, partly of lack of time, and partly difficulty to reproduce the errors..but I will strive to come up with a fix for it in a intermediate version prior to 0.8. I also have some tests going that might solve - or rather work around - the 0 size error with package manager copying over TP files in SMF 1.1RC1. Those 2 things will warrant a 0.76 version.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Nokonium on December 02, 2005, 07:19:58 AM
I may be out of my tree here (wouldn't be the first time) but on our public board we have a recurrent error, again caused by a 'guest'

QuoteDatabase Error: Lost connection to MySQL server during query
File: /[********]/our-local/Sources/Load.php
Line: 1204

Is it possible that the 'guest' is trying to do something 'illegal' such as run a script?
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on December 03, 2005, 03:36:21 PM
I don't think you can run anything through Load.php..it sounds more like a demanding database call that stops for some reason. Line 1204 reads:

   // A bug in some versions of IIS under CGI (older ones) makes cookie setting not work with Location: headers.
   $context['server']['needs_login_fix'] = $context['server']['is_cgi'];


So it would seem a problem with IIS maybe?
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Nokonium on December 03, 2005, 04:59:03 PM
Would making too many database calls at the same time do that then?
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: bloc on December 03, 2005, 10:11:44 PM
No, i would assume it was something with redirection instead...but i know too little of these things really.
Title: Re: Error logs in tpadmin tp 0.7.5
Post by: Nokonium on December 06, 2005, 09:51:59 PM
I was editing articles when one of the 'Guests' friends came calling. I got this lot
QuoteIP address   Display name   Message   Date   
207.46.98.75    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 189
?topic=10.msg10;topicseen    Today at 08:07 PM   
207.46.98.75    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 209
?topic=10.msg10;topicseen    Today at 08:07 PM   
207.46.98.75    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 354
?topic=10.msg10;topicseen    Today at 08:07 PM   
207.46.98.75    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 356
?topic=10.msg10;topicseen    Today at 08:07 PM   
207.46.98.75    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 358
?topic=10.msg10;topicseen    Today at 08:07 PM   
207.46.98.75    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 374
?topic=10.msg10;topicseen    Today at 08:07 PM   
207.46.98.75    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 384
?topic=10.msg10;topicseen    Today at 08:07 PM   
207.46.98.75    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 394
?topic=10.msg10;topicseen    Today at 08:07 PM   
207.46.98.75    Guest    8: Undefined index: TPortal
File: /homepages/6/d119724375/htdocs/sgr/Themes/default/Login.template.php (eval?)
Line: 489
?topic=10.msg10;topicseen    Today at 08:07 PM

207.46.98.75 is an MSN bot. I hope this helps you.