Jacksun Posted September 19, 2011 Share Posted September 19, 2011 (edited) Hi Matt, when I create and invoice and try to send it (send invoice created) I get a blank screen. This worked fine until I updated to the latest version. The error I get is: Fatal error: Out of memory (allocated 17563648 ) (tried to allocate 1966080 bytes) in /home/xxxxxxxx/public_html/billing/includes/tcpdf.php on line 20622 And when I try to just download the PDF I get Fatal error: Out of memory (allocated 17563648 ) (tried to allocate 71 bytes) in /home/xxxxxxx/public_html/billing/includes/tcpdf_unicode.php on line 14085 Any ideas what's going on and how to fix it? Wayne Edited September 19, 2011 by Jacksun 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted September 20, 2011 WHMCS Support Manager Share Posted September 20, 2011 Please refer to http://docs.whmcs.com/PDF_Invoice#Reducing_the_Filesize_of_PDFs Failing that you'll need to increase your PHP memory_limit setting. 0 Quote Link to comment Share on other sites More sharing options...
Jacksun Posted September 20, 2011 Author Share Posted September 20, 2011 (edited) Hi John, the line referred to in the tcpdf.php does not exist in this iteration of the file. My PHP already has 64mb of memory, I bumped it to 128mb without change. This worked perfectly until I upgraded to 4.5.2 from 4.4.2 2 or 3 days ago. I assume this is also affecting my automated billing as well? Any other ideas? Wayne Edited September 20, 2011 by Jacksun 0 Quote Link to comment Share on other sites More sharing options...
Jacksun Posted September 21, 2011 Author Share Posted September 21, 2011 Hi John, Sparky in thread http://forum.whmcs.com/showthread.php?t=24530 defined the resolution which worked perfectly. Sorry, I know this is an old thread but incase someone has the problem and needs the fix as I came across it a couple of days ago.When the error says "tried to allocate" it is refering to the apache memory limit. When it says "bytes exhausted" it means the memory_limit in php.ini The problem was that in WHM when Apache Configuration -> Memory Usage Restrictions was run it did not allocate enough memory. To fix the problem on just your site open your .htaccess file in your public_html directory and add this line RLimitMem max This will allow you the maximun memory available for your apache memory limit. Wayne 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.