Minimee
Minimee copied to clipboard
Site not loading with Minimee active
Hi John,
I'm running into a weird issue where minimee is bringing my EE site down. I keep getting the following error in my apache files.
PHP Fatal error: Maximum execution time of 90 seconds exceeded in /var/www/example.com/system/expressionengine/third_party/minimee/libraries/EpiCurl.php on line 85
PHP Warning: (null)(): 342 is not a valid cURL handle resource in Unknown on line 0
It used to work before, I started getting this issue after I upgraded my server, so I'm now running php5.6 and apache 2.4.10 if that helps?
At the moment I have had to disable minimee, but I'll love to get it back up asap.
Just experienced a similar issue with the version 3 branch of Minimee. I'm running EE3 and just upgraded to PHP 7.0.9, nginx/1.11.3 and curl 7.38.0. I started seeing 504 gateway timeout
and 499 client closed request
errors when trying to view my site:
/var/log/php7.0-fpm.log
[01-Aug-2016 02:43:09] WARNING: [pool www] child 170 said into stderr: "NOTICE: PHP message: PHP Fatal error: Maximum execution time of 90 seconds exceeded in /usr/share/nginx/example.com/system/user/addons/minimee/libraries/EpiCurl.php on line 86"
[01-Aug-2016 02:43:10] WARNING: [pool www] child 171 said into stderr: "NOTICE: PHP message: PHP Fatal error: Maximum execution time of 90 seconds exceeded in /usr/share/nginx/example.com/system/user/addons/minimee/libraries/EpiCurl.php on line 83"
[01-Aug-2016 02:44:42] WARNING: [pool www] child 201 said into stderr: "NOTICE: PHP message: PHP Fatal error: Maximum execution time of 90 seconds exceeded in /usr/share/nginx/example.com/system/user/addons/minimee/libraries/EpiCurl.php on line 85"
[01-Aug-2016 02:46:00] WARNING: [pool www] child 194 said into stderr: "NOTICE: PHP message: PHP Fatal error: Maximum execution time of 90 seconds exceeded in /usr/share/nginx/example.com/system/user/addons/minimee/libraries/EpiCurl.php on line 97"
A google fonts stylesheet link was the source of my error. Removing it from the Minimee exp:minimee:css tags solved the issue.
I had a similar issue on an EE3 site.
I had to modify the call to Epicurl. I'm now using $epicurl->addEasyCurl($ch)
instead of $epicurl->addCurl($ch)
(line 588 in classes/Minimee_lib.php).
addCurl()
was infinite looping for some reason. I haven't spend much time into it to know what was the reason, I just noticed a while
loop in there, that's not in addEasyCurl()
.
@LouWii approach also worked in the EE2 version of the plugin. Thanks!