Hi,
in DaDaBIK 12, with the upgrade of the TCPDF library, images are not printed anymore in PDF. To fix this, edit the file
replace line 6970, that contains:
with:
replace line 6975, that contains:
with
in DaDaBIK 12, with the upgrade of the TCPDF library, images are not printed anymore in PDF. To fix this, edit the file
/include/tcpdf/tcpdf.php
replace line 6970, that contains:
PHP:
return false;
with:
PHP:
// start DaDaBIK MOD
//return false;
// end DaDaBIK MOD
replace line 6975, that contains:
PHP:
$imgdata = $this->getCachedFileContents($file);
with
PHP:
// start DaDaBIK MOD
//$imgdata = $this->getCachedFileContents($file);
$opts = array( 'http'=>array( 'method'=>"GET",'header'=>"Accept-language: en\r\nCookie: ".session_name()."=".session_id()."\r\n" ) );
$context = stream_context_create($opts);
session_write_close(); // this is the key
global $site_url;
if ($site_url === ''){
$site_url = "http".(isset($_SERVER['HTTPS']) ? 's' : ''). '://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/';
}
$file = $site_url.$file;
$imgdata = file_get_contents($file, false, $context);
if ($imgdata === false || is_null($imgdata)){
return false;
}
// end DaDaBIK MOD