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: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 132
  • Total: 132

Invalid argument supplied for foreach()

Started by m1ss1nnocent, July 29, 2008, 01:03:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m1ss1nnocent

Hi Guys,

Ive searched for my problem and although there are varying similar errors showing I did not find one the same as the one I am experiencing. I am a real novice at this kind of thing I am afraid so I am unable to figure it out for myself  ???

Any hoo, I am setting up a new forum to replace my current one that is giving me grief and basically every page I click gives me an error in my log which is as follows:

2: Invalid argument supplied for foreach()
File: /home//Themes/default/TPortalBlocks.template.php(35) : eval()'d code
Line: 288


Link to my site:
My New Forum
SMF version:
SMF 1.1.5
TP version:
TP 0.9.8
Theme name and version:
Default
Mods installed:
1.     Change_Poster_Of_Topic_And_Message      1.0      
2.    Custom Profile Field Mod    3.16    
3.    Sticky First Post (extends sticky topic)    1.3.2
4.    SMF Gallery Lite    1.8.3    
5.    Auto Embed Video/Audio Clips    3.1.2    
6.    [HTML] Permission Mod    1.01    
7.    Users Online Today Mod    1.4.0    
8.    SMF Links    1.6.7    
9.    PM On Registration    1.0.2
10.    SmfArcade Skins    1.0.0
11.    MCLegendII.2    2.0    
12.    SMF Arcade Trophies Mod    1.1.1    
13.    Downloads System    1.0.4    
14.    TinyPortal    0.983    
15.    Move Old Topics    1.0    
16.    NextPostLevel    1.0    
17.    Mood Bobels    2.0    
18.    View Only Boards    1.2    
19.    Bookmarks    2.1    
20.    SMF Arcade    2.0.14    
21.    Global Headers Footers    1.4

Related Error messages:
2: Invalid argument supplied for foreach()
File: /home//Themes/default/TPortalBlocks.template.php(35) : eval()'d code
Line: 288


Ive attached the template itself...can anyone point me in the right direction to correct this error please??

G6Cad

Must be something else of your mods or content that make that error, the file is OK, and doesent shoot any errors on my testsite.

When did the error start to show ?
Also, clean you error log, and start browse around, for every page or destination change, check the log again and see where it start to generate that error.

m1ss1nnocent

I was receiving the errors as on the attached screenshot and initially took my support question to the SMF forum. After a little digging around, someone suggested that I should disable template eval temporarily to get the real file and error line. When I went back in and clicked everywhere on my forum it was the TPortalBlocks.template at line 288 that showed up evertime.

I regularly checked my error logs inbetween each new mod up until the following:

1.) I removed the childboard links from the main index
2.) changed my download menu tab name to "PSP Tubes"
3.) I enabled recycling of messages in admin
4.) corrected 2 errors with the bookmark mod as per http://www.simplemachines.org/community/index.php?topic=182923.0



IchBin

It could be caused by something in one of your blocks or articles etc. Try disabling all blocks and articles. Then enable them one by one to see if one of them is causing the problem.

m1ss1nnocent

OMG! What a hero...all my worrying is over thank you IchBin  :-*

It appears to be my arcade champs block....which I shall now try to sort  ::)


IchBin


This website is proudly hosted on Crocweb Cloud Website Hosting.