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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,178
  • Total Topics: 21,347
  • Online today: 664
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 375
  • Total: 375

TP Block SMG Error in Error log?

Started by NenaGb, March 22, 2009, 04:26:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NenaGb

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..

Renegd98

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.

Ken.

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Renegd98


NenaGb

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.

Renegd98

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?

JPDeni

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?

NenaGb

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...

Dragooon

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>';
}

NenaGb

when i disabled the RSS box I stopped getting the errors.

This website is proudly hosted on Crocweb Cloud Website Hosting.