SS
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
This page isn’t working. wbplogistics.com is currently unable to handle this request.
HTTP ERROR 500
- MSAnsweredHello,
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 - SSAnsweredHere 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
- MSAnsweredHello,
Please increase you `memory_limit` to 256M or more as pdf generation need quite a lot of memory.
Thank you - SSAnsweredWhere do I set the memory_limit? I looked in config.php and .htaccess.
- SSAnsweredNevermind I found it in the Cpanel of my server and now the email works!
- MSAnsweredI am glad to know. Thank you for updating.
- Login to Reply