Jump to content

Fatal error


Jacksun

Recommended Posts

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 by Jacksun
Link to comment
Share on other sites

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 by Jacksun
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated