Hello,
There is a possibility that the button images set to display
at the plugin control panel goes to http:// environment.
pdf.png and print.png is not under https:// environment
wp-content/plugins/pdf-print/images/pdf.png
wp-content/plugins/pdf-print/images/print.png
Are there anyway to make these image source URL for button comes up with https://
<div class="pdfprnt-buttons"><a href="https://domainname.com/candyukey4/?print=pdf" target="_blank" rel="noopener noreferrer"><img src="http://domainname/wp-content/plugins/pdf-print/images/pdf.png" alt="image_pdf" /></a></div>
Since every web sites are going to move under the SSL environment, right?
SO it is important for the plugin to set https:// for the images too when
the site itself is under https:// environment.
Thanks,
H Fougino
-
This reply was modified 7 years, 6 months ago by
apjpcom.
-
This reply was modified 7 years, 6 months ago by
apjpcom.
-
This reply was modified 7 years, 6 months ago by
Steven Stern (sterndata).
Hi,
Thank you for contacting us! We apologize for taking so long in responding to this topic.
In order to detect the problem, please go via FTP to {wp_root_folder}/wp-content/plugins/pdf-print;
1. Find “pdf-print.php” file and open it in the edit mode;
2. Find the following line: $mpdf->allow_charset_conversion = true; and insert $mpdf->showImageErrors = true; after it;
3. Save changes and check the plugin’s work again.
If you see any errors or warning messages please provide us with them.
Hi,
Thank you for responding.
I did enter the line ( it is line 1052 with my environment, with my editor )
then we get Internal Server Error code:500
So that we can’t see the error but the page goes white-out.
At this moment, we back to the default, codes are as follows, commenting out
the said line and it is working without that line you’ve suggested.
How can we solve this error?
$mpdf->allow_charset_conversion = true;
//$mpdf->showImageErrors = true;
$mpdf->charset_in = get_bloginfo( 'charset' );
FYI, without using “https” the plugin is working like a charm, very good.
Thanking for your kind cooperation and advice in advance,
H Fougino
Hi,
We noticed that you are using image in .gif format. Please try to use another format (for example .png).
Let us know about the result.
Hello,
Thanks for your response,
The link attached to my first post, the same URL I did attached to this post too,
now having the image with png format. It looks it’s not the GIF causing error.
Still, when click to get PDF file the image is missing.
Could you kindly give us any solution regarding the 500 error we’ve caught?
…along your lase suggestion to rewrite a part of PHP file itself.
//$mpdf->showImageErrors = true;
Thank you for your kind support,
H Fougino
test page on going
Hi,
Unfortunately, we cannot reproduce this problem on our local environment. Please provide the access credentials to your WordPress admin dashboard (with Administrator’s permissions) and the FTP credentials (host, username, and password), in order to detect the reason and find the solution.
During making tests we’ll probably deactivate some of your plugins or switch the theme. That’s why before giving the access, we recommend you to make a full backup of your site.
Since this data is confidential, maybe, it would be better if you create a private ticket on our support forum (https://support.bestwebsoft.com/hc/en-us/requests/new). Please include a link to this post, so that we could recall the case immediately.
Hello,
Thank you for your response and proposal.
We did submit a ticket refering THIS url of forum.
id : 16185
subject : print_pdf via ww.wp.xz.cn Discussion image-missing when https
Thanking to your kind support in advance and awaiting to hear from you soon,
H Fougino