![]() |
|
| |||||||
| 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. |
![]() |
| Thread Tools | Display Modes |
| | #1 (permalink) |
| Senior Member 11,000rpm (Spoon B16B!!) | 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.
__________________ CRAZY MONTHLY SPECIALS! Moonlight Racing / A'PEXi, HKS, Greddy, Cusco and many more! |
| | |
| | #3 (permalink) |
| Senior Member 8,000rpm (B Series Redline!) Join Date: May 2005
Posts: 5,990
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 |
| | |
| | #4 (permalink) |
| Team NZH: Admin 11,000rpm (Spoon B16B!!) Join Date: Jan 2002
Posts: 9,355
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. |
| | |
| | #5 (permalink) |
| Senior Member 11,000rpm (Spoon B16B!!) | Re: PHP Message Yessur!
__________________ CRAZY MONTHLY SPECIALS! Moonlight Racing / A'PEXi, HKS, Greddy, Cusco and many more! |
| | |
| | #6 (permalink) |
| Senior Member 11,000rpm (Spoon B16B!!) | 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..
__________________ CRAZY MONTHLY SPECIALS! Moonlight Racing / A'PEXi, HKS, Greddy, Cusco and many more! |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |