Question: pdf files not show images from v3_4_37

pdf files not show images from v3_4_37

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

MM

Mauricio Mena

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
  • MS

    Mian Saleem

    Answered
    Hello,

    1. What pdf library are you using?
    2. Can you try mpdf?
    3. Does images display in the browser?

    Thanks
  • MM

    Mauricio Mena

    Answered
    hello
    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
  • MS

    Mian Saleem

    Answered
    Hello,

    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
  • MM

    Mauricio Mena

    Answered
    Thanks for your answer

    I checked allow_url_fopen and yes it is enabled, I use php 7.4, error continue
  • MS

    Mian Saleem

    Answered
    Hello,

    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
  • MM

    Mauricio Mena

    Answered
    hello,
    I did what you said and I got this errors,

    please help
  • MS

    Mian Saleem

    Answered
    That 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
  • MM

    Mauricio Mena

    Answered
    but it is already enabled, I showed it to you, how can i do?
  • MM

    Mauricio Mena

    Answered
    I was finally able to solve it, thanks
  • MS

    Mian Saleem

    Answered
    I am glad to know. What was the issue if not `allow_url_fopen`?
  • Login to Reply