ProjeQtOr free project management software - Fatal error: Maximum execution time of 300 seconds - ProjeQtOr
 

Fatal error: Maximum execution time of 300 seconds

More
12 Jui 2019 12:44 #1 by kishorevenki
Fatal error: Maximum execution time of 300 seconds exceeded in /var/www/html/puvitasqor/external/html2pdf/src/Parsing/Css.php on line 1485

I am getting the following error whenever I selected PDF to view. I am using 8.04.

Call Stack
# Time Memory Function Location
1 0.0053 236168 {main}( ) ../print.php:0
2 1.8003 4937264 finalizePrint( ) ../print.php:227
3 1.9513 9687168 Spipu\Html2Pdf\Html2Pdf->writeHTML( ) ../print.php:280
4 8.5633 16051440 Spipu\Html2Pdf\Html2Pdf->_makeHTMLcode( ) ../Html2Pdf.php:595
5 14.377 23659600 Spipu\Html2Pdf\Html2Pdf->_executeAction( ) ../Html2Pdf.php:1407
6 14.3773 23659808 Spipu\Html2Pdf\Html2Pdf->_tag_open_DIV( ) ../Html2Pdf.php:1439
7 15.1529 23792552 Spipu\Html2Pdf\Html2Pdf->_makeHTMLcode( ) ../Html2Pdf.php:3117
8 247.883 24184192 Spipu\Html2Pdf\Html2Pdf->_executeAction( ) ../Html2Pdf.php:1393
9 247.8833 24184400 Spipu\Html2Pdf\Html2Pdf->_tag_open_TD( ) ../Html2Pdf.php:1439
10 250.3817 24245272 Spipu\Html2Pdf\Html2Pdf->_makeHTMLcode( ) ../Html2Pdf.php:5583
11 589.8814 24452016 Spipu\Html2Pdf\Html2Pdf->_executeAction( ) ../Html2Pdf.php:1407
12 589.8817 24452224 Spipu\Html2Pdf\Html2Pdf->_tag_open_LI( ) ../Html2Pdf.php:1439
13 589.8821 24455000 Spipu\Html2Pdf\Html2Pdf->_tag_open_TR( ) ../Html2Pdf.php:4517
14 589.8822 24455480 Spipu\Html2Pdf\Parsing\Css->analyse( ) ../Html2Pdf.php:5248
15 589.8823 24461328 Spipu\Html2Pdf\Parsing\Css->getFromCSS( ) ../Css.php:653
16 591.4547 24462888 Spipu\Html2Pdf\Parsing\Css->getReccursiveStyle( ) ../Css.php:1435
17 591.4548 24463424 substr ( ) ../Css.php:1485

In fact I have set max_execution_time = 120 in php.ini file. Please provide solution.

Thanks & Regards,
Kishore

Please Connexion or Create an account to join the conversation.

More
12 Jui 2019 14:01 #2 by babynus
This may happen if you try and generate large (or complex) PDF file.
PDF generation is long and memory consuming.
So either print your extract and priont with PDF printer (PDF creatir or other), or extend max_execution time in php.ini

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
13 Jui 2019 14:53 #3 by kishorevenki
Hi,

I tried by changing the max_execution_time = 600 ( 10 min) and then to 900 (15 min). Even then I am getting the same error in the same line i.e 1435 and 1485 at ../external/html2pdf/src/Parsing/Css.php on line 1485.

SO I don't think changing the max_execution_time would solve the issue. I tired to get the report of Quotation and from the report "Bills". I haven't tried other reports.

So please look into it and advice.

Thanks & Regards,
Kishore

Please Connexion or Create an account to join the conversation.

More
13 Jui 2019 15:01 #4 by babynus
Is it always the same error logged ?

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
13 Jui 2019 17:26 #5 by kishorevenki
Yes, at 1435 of css.phpon the function

Spipu\Html2Pdf\Parsing\Css->getFromCSS( )

Regards,
Kishore

Please Connexion or Create an account to join the conversation.

More
15 Jui 2019 11:15 #6 by babynus
It works fine for me.
Can you try on Demo ?
Can you also look for errors logged in apache error log file (sometimes some issues are logged here only)

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.031 seconds