View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - html2pdf, tcpdf error on line 10420 (allowed memory size...) - ProjeQtOr
 

html2pdf, tcpdf error on line 10420 (allowed memory size...)

More
14 Mar 2012 12:47 #1 by NH2501
Hi,

We use, or rather try and test, Project'Or for some time, but we cannot solve error related to PDF generator (first in 1.8.3, now in 2.0.1).

All tries end with below error message:
Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 491520 bytes) in /usr/home/[...]/projector/external/html2pdf/_tcpdf_5.0.002/tcpdf.php on line 10420

I Googled it and tried to increase memory size for PHP from Apache (httpd) level. When no results, I asked my WWW provider to increased. They tried it few times, ending with 512MB allocation, but nothing changed.

Is anyone encountered the same error in the past?

Thanks for any ideas,
Hubert Bartkowiak
Kosmonauta.net

Please Log in or Create an account to join the conversation.

More
14 Mar 2012 13:52 #2 by climb4fun
Hello Hubert,
we have same issue due to enviromental constraints. We solve it by printing on PDF creator tool.
Klaus

Please Log in or Create an account to join the conversation.

More
14 Mar 2012 14:21 #3 by NH2501

climb4fun wrote: Hello Hubert,
we have same issue due to enviromental constraints. We solve it by printing on PDF creator tool.
Klaus


Thx for your replay.
I see. But what constraints trigger that?
How to forward report to PDF printer in Project'or?

Please Log in or Create an account to join the conversation.

More
14 Mar 2012 14:59 #4 by babynus
You should try and udate php.ini :
memory_limit = 10M  ; Maximum amount of memory a script may consume (10MB)
with
memory_limit = 512M  ; Maximum amount of memory a script may consume (512MB)
Your log show limit is 10M per script. This is clearly not enough for PDF transformation.
Take care with pdf transformation as is is much merory consuming.
It easily can lead to server fall (that is why server limits are generally low).


Klaus workaround is a very good hint :
- install PDF Creator (free)
- print your report (instead of exporting to PDF) and select the PDF Creator printer as target printer.
That's all.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
14 Mar 2012 20:04 #5 by NH2501

babynus wrote: You should try and udate php.ini :


But isn't the thing my server support has (tried?) to do? AFAIK I don't have access to php.ini file.

Thanks for printing tips - now it's quite obvious :-)

Please Log in or Create an account to join the conversation.

More
14 Mar 2012 21:14 #6 by babynus
You can also update $paramMemoryLimitForPDF parameter.
But by default it is set to 512, so it seems you don't have sufficient privilege to overwriting server defaut.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.058 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.