Wallpaper Script Forum » Bug Support

error in HD wallpapers

(3 posts)

Tags:

  1. please tell me about my error :

    http://www.wowallpaper.com/blue-viper-srt-10-front-wallpapers.html

    affter click HD resolutions , the page return :

    Warning: getimagesize(/home/desktop/public_html/wowallpaper.com/walls/blue-viper-srt-10-front-HD.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/desktop/public_html/wowallpaper.com/view.inc.php on line 89

    Warning: Cannot modify header information - headers already sent by (output started at /home/desktop/public_html/wowallpaper.com/view.inc.php:89) in /home/desktop/public_html/wowallpaper.com/includes/php_functions.php on line 126

    can anybody help me ?

    thanks

    Posted 1 year ago #
  2. I copy this from member Piggy, that helps me:

    This error occurs if the aspect ratio of an image is not in the list of known ratios. The image file name then gets the suffix "other". In view.inc.php the image name is build on the base of known rations ($ratio_typeNew = WS::getRatioType($ratioNew);) This is a bug. "getimagesize" get the wrong filename.

    The filename should be build based on the real file. To fix it add the following lines before "$arr_fileData = getimagesize($fullsizePath);"

    if (!file_exists($fullsizePath)) {
    $myRatio = $WS->getRatioTypeByShortName($wallpaper['short_name']);
    $fullsizePath = WALLPAPERS_PATH.$file_prefix.URL_TOKEN_SEPARATOR.$myRatio.".jpg";
    }

    Now $fullsizePath points to the correct filename.

    Posted 1 year ago #
  3. thanks for this infomations .

    You are great !

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.