karlte
Forum Replies Created
-
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Images not working after move to httpsHi Emili!
The problem still in your code, after update to version 1.9.3 you have the
same error again, that images will not be included in a pdf.If you make the changes, i supposed 3 month ago, (see post above) all will be fine.
Greets
KarlTe
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Images not working after move to httpsHi Emili!
I found your new version in the repository, but it fails again with https.
The solution form Leon Harris didn’t work for me, because this solution needs a running service under http, which to not secure enough for me.Once again, i put the lines
$p = parse_url($url); if ($p['scheme']=='https') { curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); }in your plugin file dk-pdf/includes/mpdf60/mpdf.php in function file_get_contents_by_curl after line 11382 with
$ch = curl_init($url);
and everything works fine.
This seems to bee a more general solution which runs both,
http and https without any changes in configuration.Greetings
KarlTeForum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Images not working after move to httpsSame problem here. After changing web-site to https no images in pdf-files.
Installation:
SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux
WordPress 4.7.5
DK PDF Version 1.9I found following hint:
php and curl normally work with http, if you want to work with https,
you have to include the two optional lines in
wp-content/plugins/dk-pdf/includes/mpdf60/mpdf.php in function file_get_contents_by_curl11383: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
11384: curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);After this everthing works fine with https!
Greetings
KarlTe