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
- MSAnswered
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 theapp/config/config.php
and then try to download the pdf again to produce error. Lastly check the latest file in theapp/logs/
folder.Thank you
- SSAnswered
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
- MSAnswered
Hello,
Please increase you
memory_limit
to 256M or more as pdf generation need quite a lot of memory.Thank you
- SSAnswered
Where do I set the memory_limit? I looked in config.php and .htaccess.
- SSAnswered
Nevermind I found it in the Cpanel of my server and now the email works!
- MSAnswered
I am glad to know. Thank you for updating.
- Login to Reply