LaCollision Posted June 29, 2023 Posted June 29, 2023 (edited) 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, 2023 by LaCollision
Marc Posted June 29, 2023 Posted June 29, 2023 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 LaCollision 1
LaCollision Posted June 29, 2023 Author Posted June 29, 2023 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,
Jim M Posted June 29, 2023 Posted June 29, 2023 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. LaCollision 1
Management Matt Posted July 3, 2023 Management Posted July 3, 2023 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. LaCollision 1
Recommended Posts