Max execution time reached
-
Hey and thanks for the great plug-in!
When using this on my local development environment (IIS, PHP 7.2) pages where WPR2X is used run into an execution time error. I already had my max execution time at 300 seconds, so I did a bit of fooling around to clear the issue for me locally. I didn’t see any other way to contribute to the plug-in, so I figured this was the next best thing.
The problem is in the HtmlDomParser library, where it runs an endless loop of destructors on itself. The solution is to manually clear the HtmlDomParser object. In the picture_rewrite function (core.php of WPR2X) the issue can be fixed by calling $html->clear(); just before the return.
This is probably an edge case, as there aren’t many users experiencing this issue, but adding this to the plug-in would be of immense help to me (with updating and all).
The topic ‘Max execution time reached’ is closed to new replies.