Question: Email And Pdf Error

Email And Pdf Error

When I try to email a sale or download it as a PDF I get the following error: This page isn’t working. wbplogistics.com is currently unable to handle this request. HTTP ERROR 500

SS

Scott Swearingen

Asked

When I try to email a sale or download it as a PDF I get the following error: This page isn’t working. wbplogistics.com is currently unable to handle this request. HTTP ERROR 500

  • MS

    Mian Saleem

    Answered

    Hello,

    Please check your server’s php error logs and let me know the error detail so that I can suggest a solution.

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

    Thank you

  • SS

    Scott Swearingen

    Answered

    Here is the last line of the error log: ERROR - 2022-03-25 14:13:20 --> Severity: Error --> Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes) /wbplogistics/vendor/phenx/php-font-lib/src/FontLib/Table/Type/kern.php 54

  • MS

    Mian Saleem

    Answered

    Hello,

    Please increase you memory_limit to 256M or more as pdf generation need quite a lot of memory.

    Thank you

  • SS

    Scott Swearingen

    Answered

    Where do I set the memory_limit? I looked in config.php and .htaccess.

  • SS

    Scott Swearingen

    Answered

    Nevermind I found it in the Cpanel of my server and now the email works!

  • MS

    Mian Saleem

    Answered

    I am glad to know. Thank you for updating.

  • Login to Reply