Fatal error: require(): Cannot redeclare class minify_css_compressor
Opened this issue · 1 comments
GoogleCodeExporter commented
Are you sure this is not a problem with your configuration? (ask on the
Google Group)
Minify commit/version: 2.1.5
PHP version: 5.3.3
What steps will reproduce the problem?
1. Open /min/b=css&f=960/reset.css,960/text.css,960/960.css,style.css
2. Only white page.
2. ini_set('display_errors', 1); in first line of config.php
3. Fatal error: require(): Cannot redeclare class minify_css_compressor in
/home/domains/ticketpoint.nl/htdocs/min/lib/Minify/CSS.php on line 71
4. Fixed with:
if(!class_exists('Minify_CSS_Compressor')) {
require_once 'Minify/CSS/Compressor.php';
}
Expected output:
Actual output:
White page or Fatal error: require(): Cannot redeclare class
minify_css_compressor in
/home/domains/ticketpoint.nl/htdocs/min/lib/Minify/CSS.php on line 71
Original issue reported on code.google.com by ma...@qball.nl
on 11 Dec 2012 at 9:32
GoogleCodeExporter commented
Same problem with require_once 'Minify/CommentPreserver.php'; and require_once
'Minify/CSS/UriRewriter.php'; in CSS.php
Original comment by ma...@qball.nl
on 11 Dec 2012 at 9:43