Results 1 to 8 of 8

Thread: AWS Problems

  1. #1
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813

    AWS Problems

    Hi, on a new site i'm making I get this error on the catergory pages:

    Warning: Invalid argument supplied for foreach() in /home/wirephon/public_html/att-wireless-phones on line 66
    Page 1 of 0

    Anybody know what the problem is and how to fix it? I'm using the AWS script from WebsitePublisher.

    Cheers...
    ________
    medical marijuana
    Last edited by ozgression; 02-06-2011 at 06:28 AM.

  2. #2
    Gimme Fries with that!
    Join Date
    Aug 2004
    Posts
    1,469
    can you share your code? specially the entire foreach loop and the bit where you are grabbing the xml feed. You are probably trying to grab an array that doesnt exist.

  3. #3
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    Maybe you're not supplying an array....
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  4. #4
    Gimme Fries with that!
    Join Date
    Aug 2004
    Posts
    1,469
    exactly what i say Happy to help you.. just share your code.. I have made many a typo in my code and had the same problem.

  5. #5
    Registered Alien
    Join Date
    Aug 2004
    Location
    .au/.sg
    Posts
    58
    Do a if-else test for is_array() for that input parameter..

  6. #6
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813
    <edit>

    Got it working

    </edit>
    ________
    Ford York engine
    Last edited by ozgression; 02-06-2011 at 06:28 AM.

  7. #7
    Registered Alien
    Join Date
    Aug 2004
    Location
    .au/.sg
    Posts
    58
    Because there were no exact matches for the search.

    Add the following before the "foreach ($items as $i)":
    Code:
    if (!is_array($items)) { exit(); }
    Replace the exit() with a customized page for nicer output than simply exit everything..

  8. #8
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813
    Got it working... I was using the wrong browsenode.
    ________
    genetically modified food
    Last edited by ozgression; 02-06-2011 at 06:28 AM.

Similar Threads

  1. I have too many problems to list...
    By captphatsidy in forum HTML, CSS, Layout, and Design
    Replies: 2
    Last Post: 05-06-2004, 04:47 PM
  2. DNS problems I think?
    By r2d2 in forum Domain Names
    Replies: 9
    Last Post: 03-22-2004, 04:20 PM
  3. php script problems
    By wrigh_g in forum HTML, CSS, Layout, and Design
    Replies: 4
    Last Post: 01-24-2004, 06:54 AM
  4. DNS Change Problems...
    By incka in forum Domain Names
    Replies: 3
    Last Post: 09-24-2003, 01:45 PM
  5. My Friends having MSN Messenger problems...
    By incka in forum General Chat
    Replies: 6
    Last Post: 09-11-2003, 04:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •