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

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

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 Connexion 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 Connexion 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 Connexion 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 Connexion 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 Connexion 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 Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.068 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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