Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author fkrauthan

    (@fkrauthan)

    Did you check your php error logs? This sounds very much like an issue with file permissions (check the setup instructions) where the PDF generation process is not able to ether download or store the images embedded in the page.

    Thread Starter maksymp

    (@maksymp)

    Hi, Florian,

    yes, we checked the permissions on the directories from the instructions.

    All plugin cache directories in the /wp-content/plugins/wp-mpdf/cache directory have permission 777, which gives full access to the directory.

    We checked the PHP errors – there are no significant errors. There are some caveats:

    09:22:56 PHP Warning: A non-numeric value encountered in /home/oldmicr/micromed.ua/www/wp-content/plugins/wp-mpdf/mpdf/mpdf.php on line 17077
    09:22:56 PHP Warning: A non-numeric value encountered in /home/oldmicr/micromed.ua/www/wp-content/plugins/wp-mpdf/mpdf/mpdf.php on line 17075
    These warnings are incorrect types for arithmetic operations. They do not have a significant impact on the overall functionality.

    Thread Starter maksymp

    (@maksymp)

    Florian, do you have any other ideas about the matter of this or any other ideas to fix this?

    Plugin Author fkrauthan

    (@fkrauthan)

    Hmm no that is usually when we see issues with this. One more thing is you could try enabling Debugging inside the plugin settings. that will generate a HTML file you can open. Take that HTML file and take a look at the URLs for images. Then try to open them from the browser and see if that fails.

    Thread Starter maksymp

    (@maksymp)

    In debug mode, the HTML file is generated and opened. At the same time, the pictures are displayed on the page.

    Here is an example of such a debug file: offer_otoskop-e-scope-fibrooptika-2-5-v.pdf.html

    Also we attach the original here.

    Plugin Author fkrauthan

    (@fkrauthan)

    Hmm the HTML looks fine. But the attached original file also shows images? Or what is that second file suppose to be?

    Thread Starter maksymp

    (@maksymp)

    Yes. Attached is a debug mode file. And it has actual image links. Images are available at this link.

    But at the same time, there is an error icon [X] in the pdf file.

    Plugin Author fkrauthan

    (@fkrauthan)

    Yeah everything looks alright. So the only three causes I can imagine is:

    • The cache directory it tries to download the image into is not writeable
    • The server does not allow an outgoing https request to download the images (for PDF purpose).
    • The images are in a format that mpdf can’t process (maybe try enabling the GD extension incase that one is not enabled)

    Unfortunately that is all I can think of. Given that other people have no issues with images it is most likely the PHP/Server setup.

    Thread Starter maksymp

    (@maksymp)

    thank you for the ideas, we checked the causes,

    • there are no https restrictions.
    • the cache directory is open for writing, otherwise the photo by URL from the debug file would not be visible.
    • GD library works. Library version 2.3.2.

    that is why for us this is a rather unusual problem with which we reached a dead end and turned to you with a request for help in solving the possible reasons for this behavior of the images in pdf file

    Plugin Author fkrauthan

    (@fkrauthan)

    Yeah like I said unfortunately it seem to be server/environment specific. You could also try posting in the support board for mpdf (the underlying PDF library) if they have any ideas what could be looked at to troubleshoot this.

    Thread Starter maksymp

    (@maksymp)

    ok, got you.
    Thank you for your help!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Images broken + webdiste crashed after update plugin’ is closed to new replies.