Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 29, 20231 yr Hi! Every 3 hours, I can see in my PHP logs: Quote NOTICE: PHP message: PHP Fatal error: Maximum execution time of 240 seconds exceeded in /home/web/system/Text/Parser.php on line 1151 Has anyone ever encountered this problem, and knows where it might be coming from? Its regularity (every 3 hours) makes me think of a task that cannot be completed. Thanks a lot! 🙏🏻 Edited June 29, 20231 yr by LaCollision
June 29, 20231 yr I would suggest checking your cron logs. If it's a task, it will likely be showing there. Also, ensure you are running the latest release
June 29, 20231 yr Author Hi Marc, Thanks for your reply! By analyzing the Apache logs, I found that the problem comes from SendGrid calls: "POST /applications/core/interface/incomingemail/sendgrid.php HTTP/1.1" 500 4540 "-" "Sendlib/1.0" In \Email\Incoming\Email, there is indeed at line #523: $body = $parser->parse( $body ); We can see this parse() method calls the \Text\Parser->_parseContent() method… which is exactly where I have the issue of a PHP Fatal error (maximum execution time of 240 seconds exceeded): if ( $img->hasAttribute( 'data-ipsEmoticon-plain' ) ) So, there might be an issue with the method analyzing SendGrid calls. But now… it's beyond my capabilities! 😅 It would be interesting for the Invision development team to take a look at this issue. Thanks again,
June 29, 20231 yr This kind of falls in a grey area as the incoming emails for support module is kind of in an "as-is" state due to deprecation. However, I have tagged a developer to this to evaluate if there are any recommendations here.
July 3, 20231 yr Management I'd assume the DOM structure of the incoming email is bad. It's hard to say specifically without looking at a sample incoming email.