images not showing in PDF

By: koen Vanraes | Asked: 05/28/2024
ForumsCategory: General questionsimages not showing in PDF
koen Vanraeskoen Vanraes asked 3 months ago
Hello, I'm creating a custom PDF to send with my email, but the images are not visible in the PDF or in my email. You can view the PDF here: https://fixthefiredoorwe.care/frm_display/pdf-controle-view/entry/120/. Here, you can see the uploaded images. The PDF is attached. Here is the code I am using: <img src="[63]" alt="Deur geblokkeerd" />
[69 show_image=1]

After an hour of searching and testing, I couldn't find a solution. Can someone help me? Thanks in advance! Kind regards,
Koen Vanraes
Attachments
4 Answers
Best Answer
koen Vanraeskoen Vanraes answered 3 months ago
In my email the images are showing.
The images are als showing in the detail view.
https://fixthefiredoorwe.care/frm_display/pdf-controle-view/entry/135/
But the PDF (that I create with the detail view) is not showing images.

So 1 problem is gone. 1 to go....

Attachments
Victor Font replied 3 months ago

Here's another tip from the Formidable Knowledgebase: https://formidableforms.com/knowledgebase/pdfs/#kb-missing-images

koen Vanraeskoen Vanraes replied 3 months ago

This works!! allow_url_fopen is now on.... and the images are visible!

Victor Font answered 3 months ago
It doesn't appear that you followed these directions: https://formidableforms.com/knowledgebase/create-a-view/#kb-create-a-detail-page-with-an-image
koen Vanraeskoen Vanraes replied 3 months ago

Also with this it is still not working.

Rob LeVineRob LeVine answered 3 months ago
I tried a very simple example. I created a form with a file upload field and in the notification action I replaced the default message with your two lines (changing the field id of course) and it worked as expected. One thing I suggest trying is to add just [69] to your notification. If that doesn't display a legitimate file path, then that will tell you what's wrong.
Victor Font answered 3 months ago

When I looked at the generated source code, it appears you may have a permissions problem on the server. This is what is being inserted as the image source: src="U heeft niet voldoende rechten om dit te doen". Translated from Dutch to English, this reads "You do not have sufficient rights to do this". This doesn't appear to be a problem with Formidable, but with your server directory permissions. I suggest you contact your host for assistance.

koen Vanraeskoen Vanraes replied 3 months ago

my direction of the upload has 755 as permissions. But the images them self are 200...

Victor Font replied 3 months ago

I believe the files should be 644. At least you found the problem. Before you contact your host, make sure you read this note about protecting files. If file protection is enabled, turn it off. https://formidableforms.com/knowledgebase/general-form-settings/#kb-protect-all-files-uploaded-in-this-form

koen Vanraeskoen Vanraes replied 3 months ago

<p>"Protect all files uploaded" in this form was selected, so now the images have 644 permissions. However, the images are still not shown in the email and PDF file. In the detail view, they are displayed correctly.</p>

Victor Font replied 3 months ago

According to the documentation, changing permissions is a going forward event. New images will be correct. Old images need to have their permissions changed manually.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right