• Resolved nobita

    (@nobita)


    hello.

    I would like advice for a solution.

    Using PHP7.4
    WordPress 5.6.1

    
    /**
     * Plugin Name: WP-SCSS
     * Plugin URI: https://github.com/ConnectThink/WP-SCSS
     * Description: Compiles scss files live on WordPress.
     * Version: 2.0.0
     * Author: Connect Think
     * Author URI: https://connectthink.com
     * License: GPLv3
     */
     
     [08-Feb-2021 01:41:37 UTC] PHP Fatal error:  Uncaught Error: Class 'Leafo\ScssPhp\Formatter\Compressed' not found in /***/***/public_html/wp/wp-content/plugins/wp-scss/scssphp/src/Compiler.php:243
    Stack trace:
    

    Note: wp-scss 1.2.6 worked for me

    Thank you.

    • This topic was modified 3 years, 9 months ago by nobita.
    • This topic was modified 3 years, 9 months ago by nobita.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter nobita

    (@nobita)

    Sorry !

    reinstall wp-scss 2.0 plugin. worked for me.

    Thank you.

    Thread Starter nobita

    (@nobita)

    I thought that the installation returned to normal, but it still seems to give an error.

    Thank you.

    Hey,

    I’ve got the same error:

    Uncaught Error: Class 'Leafo\ScssPhp\Formatter\Compressed' not found in ***/plugins/wp-scss/scssphp/src/Compiler.php:243

    I have this line in my theme and I guess it was causing the error:

    define('WP_SCSS_ALWAYS_RECOMPILE', true);

    Once I’ve removed that line looks like the plugin works well now.

    UPD:

    Removing this line helped to make the site work but without it SCSS doesn’t compile.

    define('WP_SCSS_ALWAYS_RECOMPILE', true);

    Once I get it back the site works and SCSS compiles.

    So I guess here is something wrong with the plugin update as I also got this message from Smart Plugin Manager which was trying to update WP-SCSS:

    The website is not compatible with new version of WP-SCSS

    There is a new plugin update available for your site. We did not apply the update due to the update failing our visual testing.

    Same error here.

    Thread Starter nobita

    (@nobita)

    Thank you for your quick response.
    It seems to be working properly.

    
    = 2.0.1 =
    * Bugfix to add filter for option_wpscss_options to remove Leafo if stored in DB. Thanks to [kinky-org](https://github.com/ConnectThink/WP-SCSS/issues/157) for pointing this out
    * Saving plugin settings will update DB with the correct value.
    

    Thank you.

    Thread Starter nobita

    (@nobita)

    Sorry !

    It seems that the problem was not solved

    I’m working on changing CSS with scss, but it doesn’t seem to compile successfully.
    After downgrading to 1.2.6, I can compile.

    I’m using wp_scss_needs_compiling filter

    Can you give me some advice?

    Thank you.

    Thread Starter nobita

    (@nobita)

    In the end, it seems that there was a problem coding the SCSS file I wrote and it didn’t work.

    Thanks for the great plugin

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘updated to wp-scss 2.0, but I got an error.’ is closed to new replies.