Forum


Replies: 3   Views: 2635
Allowed memory size
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by edol.fuchs  · 11-10-2017 - 12:11

Hello

When I generate the docx file the following error appears:

Allowed memory size of 134217728 bytes exhausted (tried to allocate 75497472 bytes)

File: phpdocx/phpdocx/lib/phpseclib/Math/BigInteger.php

Line: 1022

I'm running php 7.0 and phpdocx 7.0

Can someone help me?

 

 

Posted by edol.fuchs  · 11-10-2017 - 12:37

I changed to memory_limit to -1 and the error continues. The error occurs when I execute the sign () function. The same code is working in development, only in production does not work.

Posted by admin  · 11-10-2017 - 13:34

Hello,

Please run the included sample using PHP CLI mode and update the topic if it works.

Maybe you need to restart the web server to apply the mem changes?, if you still see the same exhaused memory size then the new setting is not being applied properly.

Regards.