Question: I Can Not Generate Or Downlaod Invoice In Pdf

I Can Not Generate Or Downlaod Invoice In Pdf

Hi, I have problem to generate invoice in .pdf I was add allow_url_fopen = 1 in php.ini but nothing. Any idea ??? here is a screenshots http://prntscr.com/wbl34p http://prntscr.com/wbl45

S

Stevica

Asked
Hi,

I have problem to generate invoice in .pdf

I was add allow_url_fopen = 1 in php.ini but nothing.
Any idea ???

here is a screenshots
http://prntscr.com/wbl34p
http://prntscr.com/wbl452

Thank you
Stevica
  • MS

    Mian Saleem

    Answered
    Hello,

    500 are internal errors and could be due to various reason including server config, software versions and bad code. Please check your server error logs and let me know the error details so that I can suggest.

    If you not sure about server error logs, you can enable app logs by changing the `log_threshold` to 1 in `app/config/config.php` and the try to download the pdf again to reproduce errors. Lastly check the latest error log in `app/logs/` folder.

    Thank you
  • S

    Stevica

    Answered
    H
    here is what I get after I enabled error log
    http://prntscr.com/wcddgk
  • MS

    Mian Saleem

    Answered
    I have no idea why are you getting the invalid character error. May I know your php version and the link to the installation with admin account to have look. I hope you have not modified any config/code/file.
  • S

    Stevica

    Answered
    I have php73 version.
    I did not change anything in config/code/file.

    Here is what I find in error log

    Version warning: Imagick was compiled against Image Magick version 1654 but version 1650 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
  • S

    Stevica

    Answered
    this is from log file
    /vendor/dompdf/dompdf/lib/html5lib/TreeBuilder.php 3203
  • S

    Stevica

    Answered
    I found it !!! In the name of Companies can not stay ( " )
  • MS

    Mian Saleem

    Answered
    The ' and " might break the code that could result in errors. I am glad you have figured it out and thank you for sharing :)
  • Login to Reply