Hi everybody my version is 6.0004 and when you go to our classifieds and clink on the picture we have tis errror:
Warning: getimagesize(): URL file-access is disabled in the server configuration in /var/www/vhost/pintacom.com/home/html/inc/classes/BxDolClassifieds.php on line 776
Warning: getimagesize(http://www.pintacom.com/media/images/classifieds/img_37_1213742331_1.jpg): failed to open stream: no suitable wrapper could be found in /var/www/vhost/pintacom.com/home/html/inc/classes/BxDolClassifieds.php on line 776
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhost/pintacom.com/home/html/inc/classes/BxDolClassifieds.php:776) in /var/www/vhost/pintacom.com/home/html/inc/design.inc.php on line 66
How can I repair this, thaks
possible it was fixed a little after, if you want - you can just get latests class of classifieds from latests package,
or .. make manual changes.. just give me several strings above and after 'BxDolClassifieds.php on line 776'
(6 before and 4 after) for example, and I`ll help you :)
$aChunks = preg_split ("/[,]+/", $sMediaIDs, -1, PREG_SPLIT_NO_EMPTY);
$iMedId = $aChunks[0];
$sSql = "SELECT * FROM `ClassifiedsAdvertisementsMedia` WHERE `MediaID` = {$iMedId}";
$aSqlRes = db_arr ($sSql);
if ($aSqlRes) {
$sFileName = $site['url']. $this -> sUploadDir .'thumb_'.$aSqlRes['MediaFile'];
if ((int)$iID == 0) {
$sFileName = $site['url']. $this -> sUploadDir .'big_thumb_'.$aSqlRes['MediaFile'];
$sFileNameFullSize see more
$sDirFileNameFullSize = $dir['url']. $this -> sUploadDir .'img_'.$aSqlRes['MediaFile'];
list( $width, $height, $type, $attr ) = getimagesize( $sDirFileNameFullSize );
understand? :)
this was fixed in 6.1.2 too