Forum

BUG: PDF button Pri...
 
Notifications
Clear all

BUG: PDF button Print on planning

9 Posts
3 Users
0 Reactions
23.5 K Views
(@funfly31)
Posts: 12
Active Member
Topic starter
 
[#129]

Hi,

When I try to get the pdf of a GANTT planning with the pdf button, I get the following error:
Le site Web a rencontré une erreur lors de l'extraction de http://localhost/projectorriav16/view/print.php?reportFile=..%2Ftool%2FjsonPlanning.php%3Fprint%3Dtrue&reportId=7&idProject=12&startDate=2011-06-30&endDate=&format=day&page=..%2Ftool%2FjsonPlanning.php%3Fprint%3Dtrue&print=true&report=true&outMode=pdf&reportName=planning+gantt. Cela peut être dû à une opération de maintenance ou à une configuration incorrecte.
Voici quelques suggestions :
Actualisez cette page Web ultérieurement.
Erreur HTTP 500 (Internal Server Error) : Une situation inattendue s'est produite tandis que le serveur tentait de traiter la demande.

Error identified in the apache error.log file
[Thu Jun 30 15:54:31 2011] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in C:\Yann\Soft\UniServer\www\projectorriaV16\external\html2pdf\parsingHTML.class.php on line 281, referer: http://localhost/projectorriav16/view/main.php

I get this problem trying the pdf button from GANTT planning view or from GANTT report view or Resource planning report. I tried to use the pdf button from an other planning or reports view it works !!

Thaks for your help and support
Yann


 
Posted : 30 Jun 2011 18H05
(@funfly31)
Posts: 12
Active Member
Topic starter
 

update of the bug to add same pb on the resource planning report


 
Posted : 30 Jun 2011 18H11
(@funfly31)
Posts: 12
Active Member
Topic starter
 

oki
I Did not search enough found the memory solution here http://projectorria.toolware.fr/forum/viewtopic.php?id=135

But the pb remains on the resource planning. Waiing for version 1.6.1

Thanks

Yann


 
Posted : 30 Jun 2011 18H30
(@sportes)
Posts: 4
Active Member
 

Hi,

I have the same problem in 1.6.2 (on RHEL5.5).

The pdf button doesn't work and ends up with the following error : Erreur HTTP 500 (Internal Server Error)

I tried to tweak a few parameters such as the memory limit in php.ini with no luck...

Any idea?

Thank you for your help.

Stéphane


 
Posted : 10 Aug 2011 13H33
(@babynus)
Posts: 14952
Member Admin
 

Hi,

In fact PDF Export is much memory consuming, and your issue is realy about memory limit.

Try and change $paramMemoryLimitForPDF in /file/parameters.php (for instance try $paramMemoryLimitForPDF=1024)
Run again and if it fails chech the error message : has the "Allowed memory size" value changed ? Is it coherent wiht the parametered value ?

Also try and change memory limit in PHP.ini memory_limit and set it to 1024M.

Also check your server provides enough memory to allows these values.

Regards.
Babynus


 
Posted : 10 Aug 2011 15H48
(@sportes)
Posts: 4
Active Member
 

Hi,

I tried to set both parameters to 1024M but no change...

I get the following error in apache:
[Fri Aug 12 15:03:14 2011] [error] [client 140.94.5.14] PHP Fatal error: Call to undefined function imagecreatefrompng() in /var/www/projectorria/external/html2pdf/_tcpdf_5.0.002/tcpdf.php on line 5834, referer: http://steriatools/projectorria/view/main.php

Best regards,

Stéphane


 
Posted : 12 Aug 2011 17H36
(@babynus)
Posts: 14952
Member Admin
 

Hi,
It seems the function imagecreatefrompng() is not correctly defined in your PHP environment.
It should be included in the GD library.
Can you check you PHP pamareters and check that you have something like "PNG support enabled" ?
What is your PHP server ? What is the GD library version ?
You may try to reinstall the GD library.

Regards.
Babynus.


 
Posted : 12 Aug 2011 21H49
(@sportes)
Posts: 4
Active Member
 

Thank you!

I installed the "php-gd" rpm and now it works fine.

However, I have another question.

When I generate a PDF file from a GANTT, the diagram is truncated to the size of the page. Is there a way to resize it in order to make it fit the page?

Thank you.

Stéphane


 
Posted : 17 Aug 2011 17H28
(@babynus)
Posts: 14952
Member Admin
 

No,
It is really a mess.
I tried to have it fit the page, but no way.
Only solution : change the scale (week or month).

Regards


 
Posted : 17 Aug 2011 17H37
Share:

Scroll to Top