dongqiao1888 2015-07-19 20:42
浏览 50

PHP致命错误:找不到类'SassParser'

I just installed the peroxide HAML/SASS engine for Drupal 7.x and its oxygen theme, activated and Set as default, then gave chmod -R 777 sites/all just to be sure I don't get any rwx errors. I have the sass (ruby gem version) installed(in sass: /usr/local/bin/sass /home/danthe/.rvm/gems/ruby-2.2.1/bin/sass)

I see a blank page now, can't even login to admin panel, everything is blank(`cause of the PHP Fatal Error).

My log says

[Sun Jul 19 21:14:19.607260 2015] [:error] [pid 2507] [client 127.0.0.1:42531] PHP Fatal error:  Class 'SassParser' not found in /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/peroxide.engine on line 186
sh: 1: sass: not found
[Sun Jul 19 21:14:19.656532 2015] [:error] [pid 1424] [client 127.0.0.1:42532] PHP Fatal error:  Class 'SassParser' not found in /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/peroxide.engine on line 186
[Sun Jul 19 21:14:19.740176 2015] [:error] [pid 2506] [client 127.0.0.1:42533] PHP Fatal error:  Class 'SassParser' not found in /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/peroxide.engine on line 186
[Sun Jul 19 21:14:19.815207 2015] [:error] [pid 1427] [client 127.0.0.1:42534] PHP Fatal error:  Class 'SassParser' not found in /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/peroxide.engine on line 186

This is in my ../peroxine.engine on line 186

  // Setup the Sass Parser
  $options = _peroxide_get_sass_options($theme);
  $parser = new SassParser($options);
  • 写回答

1条回答 默认 最新

  • doutao6653 2015-07-20 08:20
    关注

    peroxide does not rely on entirely Ruby version of SASS compiler, it's only capable of compiling with Ruby version of compiler. You have to clone the repository with the engine recursively, as it is specified in Installation guide.

    Peroxide uses phamlp as SASS compiler, it is specified as Git Sub-module for the Peroxide repository.

    cd sites/all/themes (or whatever your theme directory is)
    mkdir engines
    cd engines
    git clone --recursive git://github.com/codeincarnate/peroxide.git
    

    The error that you're having is not caused by permissions, it's a Fatal Error in php in peroxide.engine#L186

    The PHP script fails to create a new instance of SassParser object, which is defined in /phamlp/blob/master/sass/SassParser.php

    Please make sure that the folder is present and contains the phamlp source code. /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/phamlp

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考