Wallpaper Script Forum » Announcements

odd problem!!!!!!!!!!!

(4 posts)
  • Started 4 months ago by mohammad_a
  • Latest reply from williamhill77
  1. mohammad_a
    Member

    when i want to upload an image from my wallpaperscrip
    this code shown
    Warning: Invalid argument supplied for foreach() in /home/public_html/mysite.com/includes/ws.php on line 934

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

    what should i do?

    Posted 4 months ago #
  2. mohammad_a
    Member

    and even when i want to delete an image this code shown

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

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

    i used "//" before this code in php_functions.php on line 50
    and problem solved
    is this a true way?

    this code is on line 1360
    foreach ($mainResolutions as $k=>$v)
    {
    $width = $v["width"];
    $height = $v["height"];
    $thumbnailPath = WALLPAPERS_PATH.$file_prefix.URL_TOKEN_SEPARATOR.$width."x".$height.".jpg";
    @unlink($thumbnailPath);
    }

    Posted 4 months ago #
  3. mohammad_a
    Member

    and same code is in line 934
    foreach ($mainResolutions as $k=>$v)
    {
    $width = $v["width"];
    $height = $v["height"];
    if ($arr_fileData[0]<$width) continue;
    if (abs($ratio - number_format($width/$height,2))>0) continue;
    $thumbnailPath = WALLPAPERS_PATH.$file_prefix.URL_TOKEN_SEPARATOR.$width."x".$height.".jpg";
    @unlink($thumbnailPath);
    if (GENERATE_IMAGES_UPLOAD==1)
    {
    $forceResize = false;
    if (abs($ratio - number_format($width/$height,2))>0) $forceResize = true;

    $resizer = new Thumbnail($fullsizePath);
    if(isset($resizer->invalid))
    {
    $siteError->add($LANG->l('Error upload resize for %s', array('p1' => $sourceFile)),"error");
    return false;
    //redirect();
    }

    $resizerOut = $resizer->resize($width, $height, $width, $height, "#FFFFFF", $forceResize);
    if ($resizerOut!==false)
    $resizer->save($thumbnailPath);
    else
    {
    $siteError->add($LANG->l('Error resize process for %s', array('p1' => $sourceFile)),"error");
    return false;
    }
    unset($resizer);
    }

    $sql = "INSERT INTO

    .
    SET
    e
    ='".$photoId."',

    s
    ='".$v["id"]."'";
    $DB->query($sql);
    if ($v['category']=="Wide") $is_wide = 1;
    if ($v['category']=="HD") $is_hd = 1;

    }

    Posted 4 months ago #
  4. i want to add an image on this side but it just isnt working for me. someone told me to use this given link.. but i'm not able to use it in a proper manner without directions..can some one read the following link and help me with it.
    <brColon Cleanse Acai Colon Cleanse Teeth Whitening

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.