Forum

Fatal error: Maximu...
 
Notifications
Clear all

Fatal error: Maximum execution time of 300 seconds

8 Posts
2 Users
0 Reactions
6,904 Views
(@kishorevenki)
Posts: 41
Active Member
Topic starter
 
[#6053]

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 SpipuHtml2PdfHtml2Pdf->writeHTML( ) ../print.php:280
4 8.5633 16051440 SpipuHtml2PdfHtml2Pdf->_makeHTMLcode( ) ../Html2Pdf.php:595
5 14.377 23659600 SpipuHtml2PdfHtml2Pdf->_executeAction( ) ../Html2Pdf.php:1407
6 14.3773 23659808 SpipuHtml2PdfHtml2Pdf->_tag_open_DIV( ) ../Html2Pdf.php:1439
7 15.1529 23792552 SpipuHtml2PdfHtml2Pdf->_makeHTMLcode( ) ../Html2Pdf.php:3117
8 247.883 24184192 SpipuHtml2PdfHtml2Pdf->_executeAction( ) ../Html2Pdf.php:1393
9 247.8833 24184400 SpipuHtml2PdfHtml2Pdf->_tag_open_TD( ) ../Html2Pdf.php:1439
10 250.3817 24245272 SpipuHtml2PdfHtml2Pdf->_makeHTMLcode( ) ../Html2Pdf.php:5583
11 589.8814 24452016 SpipuHtml2PdfHtml2Pdf->_executeAction( ) ../Html2Pdf.php:1407
12 589.8817 24452224 SpipuHtml2PdfHtml2Pdf->_tag_open_LI( ) ../Html2Pdf.php:1439
13 589.8821 24455000 SpipuHtml2PdfHtml2Pdf->_tag_open_TR( ) ../Html2Pdf.php:4517
14 589.8822 24455480 SpipuHtml2PdfParsingCss->analyse( ) ../Html2Pdf.php:5248
15 589.8823 24461328 SpipuHtml2PdfParsingCss->getFromCSS( ) ../Css.php:653
16 591.4547 24462888 SpipuHtml2PdfParsingCss->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


 
Posted : 12 Jun 2019 14H44
(@babynus)
Posts: 14952
Member Admin
 

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


 
Posted : 12 Jun 2019 16H01
(@kishorevenki)
Posts: 41
Active Member
Topic starter
 

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


 
Posted : 13 Jun 2019 16H53
(@babynus)
Posts: 14952
Member Admin
 

Is it always the same error logged ?


 
Posted : 13 Jun 2019 17H01
(@kishorevenki)
Posts: 41
Active Member
Topic starter
 

Yes, at 1435 of css.phpon the function

SpipuHtml2PdfParsingCss->getFromCSS( )

Regards,
Kishore


 
Posted : 13 Jun 2019 19H26
(@babynus)
Posts: 14952
Member Admin
 

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)


 
Posted : 15 Jun 2019 13H15
(@kishorevenki)
Posts: 41
Active Member
Topic starter
 

Hello,

I guess this issue pops up when xdebug is enabled. I tried after disabling the necessary settings for xdebug in php.ini and xdebug.ini. Apache error file has same error messages that were shared earlier.

So any impact on enabling php debugging using xdebug?

Regards,
Kishore


 
Posted : 17 Jun 2019 10H19
(@babynus)
Posts: 14952
Member Admin
 

You should not use xdebug on production platform.


 
Posted : 18 Jun 2019 21H04
Share:

Scroll to Top