johndwells / Minimee

Minimize & combine your CSS and JS files. Minify your HTML. Because size (still) DOES matter.
http://johndwells.github.com/Minimee
56 stars 16 forks source link

site won't render with minimee enabled #20

Closed 1stevengrant closed 8 years ago

1stevengrant commented 10 years ago

Managed to find this buried in the log files

[Mon Jul 21 09:29:17.600725 2014] [:error] [pid 16408] [client 216.243.170.224:53666] PHP Fatal error: Maximum execution time of 90 seconds exceeded in /storage/xxx/www/public_html/cms/expressionengine/third_party/minimee/libraries/EpiCurl.php on line 98
[Mon Jul 21 10:00:42.909016 2014] [:error] [pid 15040] [client 216.243.170.211:56030] PHP Fatal error: Maximum execution time of 90 seconds exceeded in /storage/xxx/www/public_html/cms/expressionengine/third_party/minimee/libraries/EpiCurl.php on line 87
[Mon Jul 21 10:00:42.934535 2014] [:error] [pid 15040] [client 216.243.170.211:56030] PHP Warning: (null)( 345 is not a valid cURL handle resource in Unknown on line 0
[Mon Jul 21 10:00:42.934683 2014] [:error] [pid 15040] [client 216.243.170.211:56030] PHP Warning: (null)( 345 is not a valid cURL handle resource in Unknown on line 0

Had to disable Minimee for now but would be good to find a solution.

johndwells commented 10 years ago

Hey Steve,

Sorry, I never received notification about this thread (need to check my github settings).

A max execution in EpiCurl means that Minimee is trying to fetch a remote asset, e.g. a CDN version of jQuery. It's also possible that it's a local file, but due to how it's written vs how Minimee is configured, it doesn't know it's a local file. A similar version of that is that you've hard-coded a link to an EE-served stylesheet, rather than using the {stylesheet=} tag, again causing Minimee to not realise how best to fetch the contents.

Could you post Minimee's usage within your templates, as well as the config settings? I'm sure we can get to the bottom of this.

Cheers, John