Forum

Can't generate pdf ...
 
Notifications
Retirer tout

Can't generate pdf report for planning

2 Posts
2 Utilisateurs
0 Reactions
1,610 Vu
 sa
(@_sa_)
Posts: 39
Trusted Member
Début du sujet
 
[#6911]

Hello

I a m trying to generate from reports menu, the gant planning of a little project, the duration is about 6 months.
after many minutes, i have this message in the attached file( print) in the screen.
I open the log file of projector and i get this lines:
2020-09-08 14:20:50.938 ** ERROR ** [V8.5.3] ERROR **
2020-09-08 14:20:50.938
** ERROR ** [V8.5.3] on file 'C:wamp64wwwprojectboxviewobjectDetail.php' at line (8906)
2020-09-08 14:20:50.938
** ERROR ***** [V8.5.3] cause = ob_get_clean(): failed to discard buffer of zlib output compression (1)
I verify in php.in and confirm the configuration of output conpression: zlib.output_compression = Off
I restart the server and after i never get the error ob_get_clean.

However i can't get the pdf generation from reports menu, i circle the action done in the action.png

in the php_error.log i get these lines:
08-Sep-2020 15:56:45 Europe/Paris] PHP Fatal error: Maximum execution time of 300 seconds exceeded in C:wamp64wwwprojectboxexternalhtml2pdfsrcParsingCss.php on line 1485
[08-Sep-2020 15:56:45 Europe/Paris] PHP Stack trace:
[08-Sep-2020 15:56:45 Europe/Paris] PHP 1. {main}() C:wamp64wwwprojectboxviewprint.php:0
[08-Sep-2020 15:56:45 Europe/Paris] PHP 2. finalizePrint() C:wamp64wwwprojectboxviewprint.php:252
[08-Sep-2020 15:56:45 Europe/Paris] PHP 3. SpipuHtml2PdfHtml2Pdf->writeHTML() C:wamp64wwwprojectboxviewprint.php:309
[08-Sep-2020 15:56:45 Europe/Paris] PHP 4. SpipuHtml2PdfHtml2Pdf->_makeHTMLcode() C:wamp64wwwprojectboxexternalhtml2pdfsrcHtml2Pdf.php:611
[08-Sep-2020 15:56:45 Europe/Paris] PHP 5. SpipuHtml2PdfHtml2Pdf->_executeAction() C:wamp64wwwprojectboxexternalhtml2pdfsrcHtml2Pdf.php:1423
[08-Sep-2020 15:56:45 Europe/Paris] PHP 6. SpipuHtml2PdfHtml2Pdf->_tag_open_TD() C:wamp64wwwprojectboxexternalhtml2pdfsrcHtml2Pdf.php:1455
[08-Sep-2020 15:56:45 Europe/Paris] PHP 7. SpipuHtml2PdfParsingCss->analyse() C:wamp64wwwprojectboxexternalhtml2pdfsrcHtml2Pdf.php:5541
[08-Sep-2020 15:56:45 Europe/Paris] PHP 8. SpipuHtml2PdfParsingCss->getFromCSS() C:wamp64wwwprojectboxexternalhtml2pdfsrcParsingCss.php:653
[08-Sep-2020 15:56:45 Europe/Paris] PHP 9. SpipuHtml2PdfParsingCss->getReccursiveStyle() C:wamp64wwwprojectboxexternalhtml2pdfsrcParsingCss.php:1435
[08-Sep-2020 13:56:45 UTC] PHP Fatal error: Maximum execution time of 120 seconds exceeded in C:wamp64wwwprojectboxtoolprojeqtor.php on line 1612
[08-Sep-2020 13:56:45 UTC] PHP Stack trace:
[08-Sep-2020 13:56:45 UTC] PHP 1. {main}() C:wamp64wwwprojectboxtoolcheckAlertToDisplay.php:0
[08-Sep-2020 13:56:45 UTC] PHP 2. require_once() C:wamp64wwwprojectboxtoolcheckAlertToDisplay.php:29
[08-Sep-2020 13:56:45 UTC] PHP 3. session_start() C:wamp64wwwprojectboxtoolprojeqtor.php:44
[08-Sep-2020 13:56:45 UTC] PHP 4. spl_autoload_call() C:wamp64wwwprojectboxtoolprojeqtor.php:44
[08-Sep-2020 13:56:45 UTC] PHP 5. projeqtorAutoload() C:wamp64wwwprojectboxtoolprojeqtor.php:44
[08-Sep-2020 13:56:45 UTC] PHP Fatal error: Maximum execution time of 120 seconds exceeded in C:wamp64wwwprojectboxtoolprojeqtor.php on line 44
[08-Sep-2020 13:56:45 UTC] PHP Stack trace:
[08-Sep-2020 13:56:45 UTC] PHP 1. {main}() C:wamp64wwwprojectboxtoolsaveDataToSession.php:0
[08-Sep-2020 13:56:45 UTC] PHP 2. require_once() C:wamp64wwwprojectboxtoolsaveDataToSession.php:30
[08-Sep-2020 13:56:45 UTC] PHP Fatal error: Maximum execution time of 120 seconds exceeded in C:wamp64wwwprojectboxtoolprojeqtor.php on line 44
[08-Sep-2020 13:56:45 UTC] PHP Stack trace:
[08-Sep-2020 13:56:45 UTC] PHP 1. {main}() C:wamp64wwwprojectboxviewshortcut.php:0
[08-Sep-2020 13:56:45 UTC] PHP 2. require_once() C:wamp64wwwprojectboxviewshortcut.php:27

Can you help me.
Today we had only 5 project added and we want to go to more than 50 before the end of the year.

Best regards


 
Posté : 08/09/2020 7:33 pm
(@babynus)
Posts: 14952
Membre Admin
 

Export of Gantt on Reports uses a very heavy way to export Gantt.
It is the "old" Gantt format (used on older version of ProjeQtOr) that use HTML tables to draw the Gantt.
Then the resulting Gantt chart is exported to PDF using HTML2PDF library. This is very slow and uses much memory on the server.

Fortunately we improved Gantt display on Gantt chart screen.
This does not use HTML tables any more but DIVs and so managed much less HTML dom nodes.
Also, we added a specific PDF export feature, that does not require server. All is done on Client side, and very quickly.
Also you can change page size and zoom ratio.
So please use PDF export on Gantt chart screen, not on Report screen.


 
Posté : 08/09/2020 8:00 pm
Share:
Retour en haut