NZHondas.com

Go Back   NZHondas.com > NZH - General > Forum Help/Feedback

Forum Help/Feedback Want something changed/added/removed from the forum? Can't figure out how to do something? Have some sort of other query about NZHondas? Make a post here.

Reply
 
Thread Tools Display Modes
Old 15th May 2008, 11:18 PM   #1 (permalink)
trend.whore
Senior Member
11,000rpm (Spoon B16B!!)
 
trend.whore's Avatar
 
Join Date: Oct 2003
Posts: 9,530
Location: North Shore City
Send a message via MSN to trend.whore
PHP Message

Warning: Invalid argument supplied for foreach() in [path]/index.php on line 145

Appears at the top of the main page every now and then. Seems intermitent.
__________________
CHECK OUT OUR BRAND NEW WEBSITE!
Moonlight Racing / A'PEXi, HKS, Greddy, Cusco and many more!
trend.whore is offline   Reply With Quote
Old 16th May 2008, 08:20 AM   #2 (permalink)
GecKo
Team NZH: Admin
11,000rpm (Spoon B16B!!)
 
GecKo's Avatar
 
Join Date: Jan 2002
Posts: 9,533
Location: Westport
Re: PHP Message

Next time that happens, can you screenshot it, and also do a viewsource and copy paste the whole lot for me?
GecKo is offline   Reply With Quote
Old 16th May 2008, 08:45 AM   #3 (permalink)
Hayce
Senior Member
9,000rpm (S2000 Redline!)
 
Hayce's Avatar
 
Join Date: May 2005
Posts: 6,510
Location: Hamilton
Re: PHP Message

Your trying to iterate over an array that isn't populated.

wrap the foreach call in an if:

Code:
if (@$theArray){
foreach ($theArray as $arraySpot){
do stuff with the spot
}
}


EDIT: oh sorry didn't realize where this was posted haha.
__________________
..................EK molester!..................Total Performance Motorsport..................gtrefinishers
Hayce is offline   Reply With Quote
Old 16th May 2008, 08:55 AM   #4 (permalink)
GecKo
Team NZH: Admin
11,000rpm (Spoon B16B!!)
 
GecKo's Avatar
 
Join Date: Jan 2002
Posts: 9,533
Location: Westport
Re: PHP Message

Silly Hayce

I just don't know what script is causing it, that line is a hook so I need to see the html to get an idea of which other script I should be looking at, hence why I need htmlz.
GecKo is offline   Reply With Quote
Old 16th May 2008, 05:43 PM   #5 (permalink)
trend.whore
Senior Member
11,000rpm (Spoon B16B!!)
 
trend.whore's Avatar
 
Join Date: Oct 2003
Posts: 9,530
Location: North Shore City
Send a message via MSN to trend.whore
Re: PHP Message

Yessur!
__________________
CHECK OUT OUR BRAND NEW WEBSITE!
Moonlight Racing / A'PEXi, HKS, Greddy, Cusco and many more!
trend.whore is offline   Reply With Quote
Old 19th May 2008, 11:05 PM   #6 (permalink)
trend.whore
Senior Member
11,000rpm (Spoon B16B!!)
 
trend.whore's Avatar
 
Join Date: Oct 2003
Posts: 9,530
Location: North Shore City
Send a message via MSN to trend.whore
Re: PHP Message

It's showing it now on the main index.php at the moment.

Interesting thing was, it isn't showing when I wasn't logged in but when I logged in, it appeared.

"<br /><strong>Warning</strong>: Invalid argument supplied for foreach() in <strong>[path]/index.php</strong> on line <strong>145</strong><br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <head> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="generator" content="vBulletin 3.7.0" /> <meta name="keywords" content="nzhondas,car club,new zealand honda club,vtec" /> <meta name="description" content="The New Zealand Honda Club" />"

As you can see, it appears as the very first thing, even before the head code..
__________________
CHECK OUT OUR BRAND NEW WEBSITE!
Moonlight Racing / A'PEXi, HKS, Greddy, Cusco and many more!
trend.whore is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Message (1982) David R Goo-Tube 0 29th September 2006 10:47 AM
HOW TO POST A PIC IN A MESSAGE?? NVDSIR Forum Help/Feedback 2 14th July 2006 08:12 PM
there is no message here Pharnos Parts Exchange 5 1st March 2005 01:24 PM
come leave me a message hopes The Pub 6 31st January 2004 06:34 PM
download a pic on a message johny The Pub 6 14th January 2003 10:13 PM


All times are GMT +12. The time now is 03:01 AM.
 


Design by: vBulletin Skins Zone
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.