ubuntu@ip-10-0-0-116:/var/www$ grep -ri cssmin .
./projectapp/public_html/application/logs/log-2016-09-20.php:ERROR - 2016-09-20 06:19:15 --> Unable to load the requested class: Cssmin
./projectapp/public_html/application/logs/log-2016-09-20.php:ERROR - 2016-09-20 06:19:31 --> Unable to load the requested class: Cssmin
./projectapp/public_html/application/logs/log-2016-09-20.php:ERROR - 2016-09-20 06:19:34 --> Unable to load the requested class: Cssmin
./projectapp/public_html/application/logs/log-2016-09-20.php:ERROR - 2016-09-20 06:19:58 --> Unable to load the requested class: Cssmin
./projectapp/public_html/application/logs/log-2016-09-20.php:ERROR - 2016-09-20 06:20:13 --> Unable to load the requested class: Cssmin
./projectapp/public_html/application/libraries/Carabiner.php: * and CSSMin {@link http://codeigniter.com/forums/viewthread/103269/ released here} libraries included.
./projectapp/public_html/application/libraries/Carabiner.php: $this->_load('cssmin');
./projectapp/public_html/application/libraries/Carabiner.php: $this->CI->cssmin->config(array('relativePath'=>$rel));
./projectapp/public_html/application/libraries/Carabiner.php: return $this->CI->cssmin->minify($contents);
./projectapp/public_html/application/libraries/CSSMin.php:$this->load->library('cssmin');
./projectapp/public_html/application/libraries/CSSMin.php:$this->cssmin->minify( file_get_contents('styles.css') );
./projectapp/public_html/application/libraries/CSSMin.php:$cssmin_options = array(
./projectapp/public_html/application/libraries/CSSMin.php:$this->cssmin->config($cssmin_options);
./projectapp/public_html/application/libraries/CSSMin.php:$this->cssmin->minify( $string, FALSE, $path );
./projectapp/public_html/application/libraries/CSSMin.php:class CSSMin
./projectapp/public_html/application/libraries/CSSMin.php: public function CSSMin()
./projectapp/public_html/application/libraries/CSSMin.php: log_message('debug', 'CSSMin library initialized.');
Binary file ./projectapp/index matches
./project1/public_html/application/libraries/carabiner.php: * and CSSMin {@link http://codeigniter.com/forums/viewthread/103269/ released here} libraries included.
./project1/public_html/application/libraries/carabiner.php: $this->_load('cssmin');
./project1/public_html/application/libraries/carabiner.php: $this->CI->cssmin->config(array('relativePath'=>$rel));
./project1/public_html/application/libraries/carabiner.php: return $this->CI->cssmin->minify($contents);
./project1/public_html/application/libraries/cssmin.php: $this->load->library('cssmin');
./project1/public_html/application/libraries/cssmin.php: $this->cssmin->minify( file_get_contents('styles.css') );
./project1/public_html/application/libraries/cssmin.php: $cssmin_options = array(
./project1/public_html/application/libraries/cssmin.php: $this->cssmin->config($cssmin_options);
./project1/public_html/application/libraries/cssmin.php: $this->cssmin->minify( $string, FALSE, $path );
./project1/public_html/application/libraries/cssmin.php: class cssmin {
./project1/public_html/application/libraries/cssmin.php: public function cssmin()
./project1/public_html/application/libraries/cssmin.php: log_message('debug', 'CSSMin library initialized.');
我知道类文件在加载和创建时区分大小写。
但我自动加载carabiner库并将css称为
$this->carabiner->css($css_assets);
一切都在开发服务器上工作正常。但是它不能用于生产服务器(Linux)。按照猜测,检查类的Linux服务器区分大小写。
如何使用Carabiner类文件解决CSSMin类自动加载。
答案 0 :(得分:0)
您更改了文件名?例如:cssmin.php改为Cssmin.php?
如果是这样,您还需要将类名class cssmin {
更新为class Cssmin {
然后尝试
答案 1 :(得分:0)
我是否知道在收到这些错误时的原因是什么?#34;无法加载请求的课程" ?
项目已在开发服务器(Linux)上成功运行,但未在生产服务器(Linux)中运行。