TinyPortal

Development => Support => Topic started by: NenaGb on March 22, 2009, 04:26:01 PM

Title: TP Block SMG Error in Error log?
Post by: NenaGb on March 22, 2009, 04:26:01 PM
QuoteApply Filter: Only show the error messages of this URL  http://corsotalk.com/index.php?action=tpadmin;sa=blocks
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 2773

Im getting this error in my error log...any suggestions? Im attaching file in question.

I am posting this here because I was told it was a TP issue...

any and all help is apprecaited.


Link to my site: http://www.corsotalk.com
SMF version: 1.1.8
TP version: TinyPortal v1.0 beta 3 Ã,© Bloc
Theme name and version: Xmas
Mods installed: ......
Related Error messages: see above for message..
Title: Re: TP Block SMG Error in Error log?
Post by: Renegd98 on March 22, 2009, 04:44:30 PM
NenaGb,

Thanks for following the posting guidelines.

Do you have SMF Media Gallery installed?  It appears that this is a SMF Media Gallery error and not a TP error.
Title: Re: TP Block SMG Error in Error log?
Post by: Ken. on March 22, 2009, 04:50:23 PM
The link to your site needs an edit. ;)
Title: Re: TP Block SMG Error in Error log?
Post by: Renegd98 on March 22, 2009, 04:52:59 PM
I fixed the link for them.
Title: Re: TP Block SMG Error in Error log?
Post by: NenaGb on March 22, 2009, 08:29:08 PM
Yes I do have smf media gallery installed.

and they [being smf media] told me it was a TP problem...i first posted this on smf board  under the smf media gallery support topic and that is what they told me there.
Title: Re: TP Block SMG Error in Error log?
Post by: Renegd98 on March 22, 2009, 09:52:07 PM
Hmm.. the file being called out is for SMF Gallery, unless I am missing something here.

But then that file doesn't have 2773 lines in it so ti is the wrong file.

What changes did you make that caused this error to appear. Do you remember?
Title: Re: TP Block SMG Error in Error log?
Post by: JPDeni on March 22, 2009, 10:51:12 PM
The file shown in the error message is often (possibly even usually) not the file where the error is. Nor is the line number necessarily where the error is. The error is on some other file on or before the line number mentioned. That's what makes debugging so fun.  ::)

If it was my site. I would switch to the default theme and uninstall every mod. Then start adding them in again, one at a time. After each addition, do whatever brought up the error before and check the error log. When it shows up, you'll know what mod is the cause of it.

At that point, you'll have to slog through files to find out which one has the problem.

Did I mention that debugging is fun?
Title: Re: TP Block SMG Error in Error log?
Post by: NenaGb on March 23, 2009, 12:05:42 AM
Quote from: Renegd98 on March 22, 2009, 09:52:07 PM
Hmm.. the file being called out is for SMF Gallery, unless I am missing something here.

But then that file doesn't have 2773 lines in it so ti is the wrong file.

What changes did you make that caused this error to appear. Do you remember?

that is exactly what i thought which is why i went to go post for support on that support thread initially...

QuoteIf it was my site. I would switch to the default theme and uninstall every mod. Then start adding them in again, one at a time. After each addition, do whatever brought up the error before and check the error log. When it shows up, you'll know what mod is the cause of it.

At that point, you'll have to slog through files to find out which one has the problem.

Did I mention that debugging is fun?

ugh aint it just a joy...i do have lots of mods on that site....lots of them...so many in fact that i might just choose to ignore that error message for now i just figured i was working on my site i would try and dig through the error messages and see if there was any support for the ones that i had showing up...
Title: Re: TP Block SMG Error in Error log?
Post by: Dragooon on March 23, 2009, 02:00:53 AM
Do you have some sort of article box there?
It has to be related to this piece of code :
foreach($context['TPortal']['edit_articles'] as $article){
echo '
<option value="'.$article['id'].'" ' ,$lblock['body']==$article['id'] ? ' selected' : '' ,' >'.$article['subject'].'</option>';
}
Title: Re: TP Block SMG Error in Error log?
Post by: NenaGb on March 23, 2009, 04:18:05 AM
when i disabled the RSS box I stopped getting the errors.
Title: Re: TP Block SMG Error in Error log?
Post by: JPDeni on March 23, 2009, 12:52:21 PM
Ah ha!

Hmmmmm.

None of the files that refer to rss have that many lines in them.

Hmmmmmmmmmm. ::scratches head::

This may be one for Bloc to figure out. Oh, Blo-oc!
Title: Re: TP Block SMG Error in Error log?
Post by: Dragooon on March 24, 2009, 03:23:36 PM
It has to be a template/language file considering that it is a eval error. Only TPortalAdmin.template.php has that many lines.
Title: Re: TP Block SMG Error in Error log?
Post by: NenaGb on March 26, 2009, 11:33:05 AM
ugh...ok here are my errors...anyone have any advise...i am on the verge of just starting over...im lost.


Apply Filter: Only show the error messages of this member CorsoLuv    Today at 05:28:03 AM
Apply Filter: Only show the error messages of this IP address 173.74.8.127      
Apply Filter: Only show the error messages of this session 4b8a0e9494aa7bffb516fe282090a8aa
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: last_login
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member CorsoLuv    Today at 05:28:03 AM
Apply Filter: Only show the error messages of this IP address 173.74.8.127      
Apply Filter: Only show the error messages of this session 4b8a0e9494aa7bffb516fe282090a8aa
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: posts
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member CorsoLuv    Today at 05:28:03 AM
Apply Filter: Only show the error messages of this IP address 173.74.8.127      
Apply Filter: Only show the error messages of this session 4b8a0e9494aa7bffb516fe282090a8aa
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: registered
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1131
   
Apply Filter: Only show the error messages of this member Guest    Today at 05:23:59 AM
Apply Filter: Only show the error messages of this IP address 117.98.157.233      
Apply Filter: Only show the error messages of this session 178f13b266dcab7d27417150172777ab
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php?get-page=586
Apply Filter: Only show the errors with the same message
8: Undefined index: last_login
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member Guest    Today at 05:23:59 AM
Apply Filter: Only show the error messages of this IP address 117.98.157.233      
Apply Filter: Only show the error messages of this session 178f13b266dcab7d27417150172777ab
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php?get-page=586
Apply Filter: Only show the errors with the same message
8: Undefined index: posts
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member Guest    Today at 05:23:59 AM
Apply Filter: Only show the error messages of this IP address 117.98.157.233      Apply Filter: Only show the error messages of this session 178f13b266dcab7d27417150172777ab
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php?get-page=586
Apply Filter: Only show the errors with the same message
8: Undefined index: registered
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1131
   
Apply Filter: Only show the error messages of this member Guest    Today at 05:23:45 AM
Apply Filter: Only show the error messages of this IP address 117.98.157.233      
Apply Filter: Only show the error messages of this session a88d4942ccee006125b50b792fdf0cb5
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php?get-page=586
Apply Filter: Only show the errors with the same message
8: Undefined index: last_login
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member Guest    Today at 05:23:45 AM
Apply Filter: Only show the error messages of this IP address 117.98.157.233      
Apply Filter: Only show the error messages of this session a88d4942ccee006125b50b792fdf0cb5
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php?get-page=586
Apply Filter: Only show the errors with the same message
8: Undefined index: posts
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member Guest    Today at 05:23:45 AM
Apply Filter: Only show the error messages of this IP address 117.98.157.233      Apply Filter: Only show the error messages of this session a88d4942ccee006125b50b792fdf0cb5
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php?get-page=586
Apply Filter: Only show the errors with the same message
8: Undefined index: registered
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1131
   
Apply Filter: Only show the error messages of this member Guest    Today at 05:23:32 AM
Apply Filter: Only show the error messages of this IP address 117.98.157.233      
Apply Filter: Only show the error messages of this session f62a362445739bbabc43de62635ef3e1
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php?get-page=586
Apply Filter: Only show the errors with the same message
8: Undefined index: last_login
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member Guest    Today at 05:23:32 AM
Apply Filter: Only show the error messages of this IP address 117.98.157.233      
Apply Filter: Only show the error messages of this session f62a362445739bbabc43de62635ef3e1
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php?get-page=586
Apply Filter: Only show the errors with the same message
8: Undefined index: posts
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member Guest    Today at 05:23:32 AM
Apply Filter: Only show the error messages of this IP address 117.98.157.233      
Apply Filter: Only show the error messages of this session f62a362445739bbabc43de62635ef3e1
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php?get-page=586
Apply Filter: Only show the errors with the same message
8: Undefined index: registered
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1131
   
Apply Filter: Only show the error messages of this member CorsoLuv    Today at 05:18:14 AM
Apply Filter: Only show the error messages of this IP address 173.74.8.127      
Apply Filter: Only show the error messages of this session 4b8a0e9494aa7bffb516fe282090a8aa
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: last_login
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member CorsoLuv    Today at 05:18:14 AM
Apply Filter: Only show the error messages of this IP address 173.74.8.127      
Apply Filter: Only show the error messages of this session 4b8a0e9494aa7bffb516fe282090a8aa
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: posts
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1132
   
Apply Filter: Only show the error messages of this member CorsoLuv    Today at 05:18:14 AM
Apply Filter: Only show the error messages of this IP address 173.74.8.127      
Apply Filter: Only show the error messages of this session 4b8a0e9494aa7bffb516fe282090a8aa
Apply Filter: Only show the error messages of this URL http://corsotalk.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: registered
File: /home/anypupco/public_html/a-corsotalk/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 1131
Title: Re: TP Block SMG Error in Error log?
Post by: NenaGb on March 26, 2009, 11:43:52 AM
Quote from: Dragooon on March 23, 2009, 02:00:53 AM
Do you have some sort of article box there?
It has to be related to this piece of code :
foreach($context['TPortal']['edit_articles'] as $article){
echo '
<option value="'.$article['id'].'" ' ,$lblock['body']==$article['id'] ? ' selected' : '' ,' >'.$article['subject'].'</option>';
}


Im not sure where this is located? On what files and what location?
Title: Re: TP Block SMG Error in Error log?
Post by: Renegd98 on March 26, 2009, 12:47:15 PM
NenaGb,

  Go to this link over at SMF and it shows you how to turn off ?eval and help to locate the actual file causing the error.

Link --->  http://www.simplemachines.org/community/index.php?topic=290186.0

I have used it several times to help locate the actual error.
Title: Re: TP Block SMG Error in Error log?
Post by: Skhilled on March 26, 2009, 01:46:53 PM
Thanks Renegd98! I knew there had to be a way to tell what it is...
Title: Re: TP Block SMG Error in Error log?
Post by: NenaGb on March 30, 2009, 06:16:57 AM
I was no longer getting the mgallery file error i went in and fixed a few mods and removed others but the new errors are below both when eval is off and on.

when eval is turned off these are what i get:

8: Undefined variable: cexist
File: /home/anypupco/public_html/a-corsotalk/Sources/TPortal.php
Line: 1480

8: Undefined index: font_size
File: /home/anypupco/public_html/a-corsotalk/Themes/default/PersonalMessage.template.php
Line: 415

Title: Re: TP Block SMG Error in Error log?
Post by: G6Cad on March 30, 2009, 10:06:57 AM
cexist are added t the bugtracker and vill be fixed in Beta 4, the other error seem to me SMF related, so do a bit of a search on SMF forums and hopefully you will find a fix for it there.