Hi,I just upgrade to the new version 1.8.1.1 and everthing is alright except printing.When I print a Ticket the PDF page is blank. After enable debug, the following error message appears:Fatal error: Out of memory (allocated 19398656) (tried to allocate 311296 bytes) in /../ticket/include/mpdf/classes/ttfontsuni.php on line 1174It seems to me that the mPDF use more memory than the other PDF class used before.Also the PHP "memory_limit" variable was set to 64M and I change to 128M. The phpinfo() function confirm this new value.The allocate memory 19398656 bytes is 18.5Mbytes. I don't have this limit in any of my configurations.Please advise.Best regards,Daniel Pereira

Did you restart your web server after making the configuration change?

5 days later

Yes, I restart the httpd server . When I restart the server the phpinfo() function reports the new memory limit size.Please advise,Thanks and best regards,Daniel Pereira

1.8.1.2 is out.  I'd say you probably should upgrade to it, and see if you get the same error.

Thanks for the information. I upgrade but I can not generate the PDF.I found in a search that a user have disabled php extensions to solve the above memory problem.In the php.ini I removed some php extensions and I found the "apc.so" extension was causing this problem.I try to tweak the apc parameters (apc.shm_size, apc.max_file_size, etc ...) but with no success.So, if you have this problem try to remove the php "apc.so" extension.Problem solvedThanks very much for your comments and best regards,Daniel Pereira

After reading a little more about "apc.so" extension I understand that my "shared memory segment" of the server is lower than the APC default 32M.So, I tweak the values and I found the maximum "shared memory segment" of the server is 28M.Also, if you need to increase shared memory you must add more segments and not increase this value.apc.shm_size = 28Mapc.shm_segments = 1extension = "apc.so"Thanks,Daniel PereiraSome references:#1 - http://stackoverflow.com/questions/8653402/apc-cache-use-only-32m-memory#2 - http://www.php.net/manual/en/apc.configuration.php

Daniel,I have to start with saying that was a fantastic summary of what you found and how to fix it.  Thank you very much for posting your findings here.  Hopefully if someone else is having a similar issue they will see this and it will help them.  Closig thread since you are resolved, but please post again if you have another question.

Write a Reply...