Buying php fix

Discussion in 'Programming' started by mubin, Apr 16, 2011.

  1. #1
    can anyone help with this?:

    Warning: Invalid argument supplied for foreach() in /home/freeipad/public_html/includes/ws.php on line 1360

    Warning: Cannot modify header information - headers already sent by (output started at /home/freeipad/public_html/includes/ws.php:1360) in /home/freeipad/public_html/includes/php_functions.php on line 50
     
    mubin, Apr 16, 2011 IP
  2. JoelLarson

    JoelLarson Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    The first error means that there isn't any data in the array/object passed to the foreach loop. The second error is caused by the first error happening, which can be avoided by using output buffering in PHP.

    If you'd like me to take a look at it, send me a PM and we can discuss it further.
     
    JoelLarson, Apr 16, 2011 IP