soyturk / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fatal error: require(): Cannot redeclare class minify_css_compressor #281

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 9 years ago
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