Forum Replies Created
If you have any idea what I could do to solve this myself, please let me know. If it’s any help, the line the fatal error referred to, was this one:
$image = new imagick($source);
I am not using (and don’t intend to use) image thumbnails, which is what this section of code was for:
function wpdm_pdf_thumbnail($pdf, $id){
$pdfurl = ”;
if(strpos($pdf, “://”)) { $pdfurl = $pdf; $pdf = str_replace(home_url(‘/’), ABSPATH, $pdf); }
if($pdf == $pdfurl) return;
if(file_exists($pdf)) $source = $pdf;
else $source = UPLOAD_DIR.$pdf;
$dest = WPDM_CACHE_DIR. “/pdfthumbs/{$id}.png”;
$durl = WPDM_BASE_URL.”cache/pdfthumbs/{$id}.png”;
$ext = explode(“.”, $source);
$ext = end($ext);
if($ext!=’pdf’) return ”;
if(file_exists($dest)) return $durl;
$source = $source.'[0]’;
if(!class_exists(‘Imagick’)) return “Imagick is not installed properly”;
try{
$image = new imagick($source);
$image->setResolution( 800, 800 );
$image->setImageFormat( “png” );
$image->writeImage($dest);
} catch(Exception $e){
return ”;
}
return $durl;
}
I don’t know about coding but I can search and find and delete stuff, so if it’s possible that this could be solved by deleting something I’m not using anyway, please let me know.
Thanks.
Can you let me know if you’re going to look at this now, because I’m going to bed soon and don’t feel comfortable leaving my site open like that.
Cheers
I really would like some help on this. I did pay for this product after all.
After adding download links to several posts without problems, it has happened again on this post:
http://www.globalgrey.co.uk/africa-volume-i-north-africa/
So, a random problem, but one that definitely needs fixing.