Wallpaper Script Forum » How-To and Troubleshooting

Invalid argument supplied for foreach()

(4 posts)
  1. Claudiu
    Member

    Below you can see the errors I get when trying to add wallpaper.
    _____________________________________________________________
    Warning: Invalid argument supplied for foreach() in /home/user/public_html/www.website.com/includes/ws.php on line 934

    Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/www.website.com/includes/ws.php:934) in /home/user/public_html/www.website.com/includes/php_functions.php on line 50
    _____________________________________________________________

    Attachments

    1. Untitled-1.jpg (86.3 KB, 2 downloads) 2 years old
    Posted 2 years ago #
  2. Claudiu
    Member

    i took a look at that line and here's what it shows
    ----------------
    foreach ($mainResolutions as $k=>$v)
    {
    $width = $v["width"];
    $height = $v["height"];
    ----------------
    i replaced with below and still i get the same error for same line
    ----------------
    foreach ($mainResolutions as $k=>$v)
    {
    $width = $k["width"];
    $height = $v["height"];
    ----------------

    Posted 2 years ago #
  3. blackicx
    Member

    I think this means

    Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/www.website.com/includes/ws.php:934) in /home/user/public_html/www.website.com/includes/php_functions.php on line 50

    You upload same named wallpaper. When I get same named wallpaper this shows up for me.

    Posted 2 years ago #
  4. Claudiu
    Member

    hmm .. well .. I uploaded new wallpaper with new title just now, and the same error I get.
    Interesting is also that the pictures get to be uploaded. Anothe note would be that the image uploaded it doesn't show the resolution, instead it shows a text that says 'original version' which clicked gets the image larger.

    I get the feeling that instead of that error there should be a window to confirm the upload.

    Attachments

    1. sterg.jpg (63.4 KB, 0 downloads) 2 years old
    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.