Wallpaper Script Forum » Bug Support

Error when viewing photos

(3 posts)
  • Started 1 year ago by maihannijat
  • Latest reply from maihannijat
  1. I have this error when clicking on photo to view it in large size.

    Warning: getimagesize(/home2/directory/public_html/photos/walls/seta_qasimi_singer-iphone.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home2/directory/public_html/photos/view.inc.php on line 89

    Warning: Cannot modify header information - headers already sent by (output started at /home2/directory/public_html/photos/view.inc.php:89) in /home2/directory/public_html/photos/includes/php_functions.php on line 64

    Posted 1 year ago #
  2. Code on line view.inc.php 89

    $arr_fileData = getimagesize($fullsizePath);

    $thumbnailPath = WALLPAPERS_RESOLUTIONS.$file_prefix.URL_TOKEN_SEPARATOR.$width."x".$height.".jpg";
    if (abs($ratio - number_format($width/$height,2))>0.1) redirect(WEB_PATH);
    @unlink($thumbnailPath);
    if ($arr_fileData[0]<$width) redirect(WEB_PATH);

    $forceResize = false;
    if ($diff>0) $forceResize = true;

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

    Posted 1 year ago #
  3. Code online php_functions.php on line 64

    global $siteError, $_SESSION, $GLOBALS;
    if ($url=="")
    {
    $url = $_SERVER["REQUEST_URI"];
    }
    $_SESSION["site_errors"] = $GLOBALS["glb_site_errors"];

    header("Location: $url");
    exit();
    }

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.