MM
Asked
Hi, since I installed version v3.4.37, when I create a pdf file, I get an error that says "Image not found or type unknown" instead of images
Attachments
- MSAnsweredHello,
1. What pdf library are you using?
2. Can you try mpdf?
3. Does images display in the browser?
Thanks - MMAnsweredhello
1. mpdf and dompdf, both doesn't work
2. in browser images display fine
3. I deleted my whole installation, files and database and the problem persist
4. this problem start after v3.4.37 installation
5. can you send me previous version v.3.4.36 files to install, because I cant download it , while the problem can solve - MSAnsweredHello,
Please check `allow_url_fopen` in your php config file. It should be enabled. If disabled `file_get_contents` won't work that is used in the libraries. If you not sure, you can check with your host that you need to enable `file_get_contents`
Thank you - MMAnsweredThanks for your answer
I checked allow_url_fopen and yes it is enabled, I use php 7.4, error continueAttachments - MSAnsweredHello,
I am have no other guess, you will need to debug. You can enable debug mode for mpdf by setting `$mpdf->debug` to `true` in `app/libraries/Tec_mpdf.php` or set the `ENVIRONMENT` to `development` in index.php
You should enable the app logs by changing the `log_threshold` to 1 in `app/config/config.php` and the visit the pages again. Lastly check the latest log file in the `app/logs/` folder.
Thank you - MMAnsweredhello,
I did what you said and I got this errors,
please helpAttachments - MSAnsweredThat was my suspect and already told you in previous reply to enable 'allow_url_fopen' Please check with your server admin/host. I guess you have changed for different version or something. Thank you
- MMAnsweredbut it is already enabled, I showed it to you, how can i do?
- MMAnsweredI was finally able to solve it, thanks
- MSAnsweredI am glad to know. What was the issue if not `allow_url_fopen`?
- Login to Reply