• Resolved theProduct

    (@theproduct)


    I’m having an issue with the latest update – getting a PHP error that states “Uncaught Error: Class ‘ScssPhp\ScssPhp\Block\DirectiveBlock’ not found in …/wp-content/plugins/wp-scss/scssphp/src/Parser.php:876.

    Deactivated the plugin and the site started working again. Do we know of a fix for this issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Erik

    (@cleverpixel)

    The 3.0 update crashed the site I just ran the update on. I had to disabled the plugin via SSH.

    Thanks for your help!

    Here’s the error:

    For site https://www.website.com
    Error Level: E_ERROR
    Message: Uncaught TypeError: Argument 1 passed to ScssPhp\ScssPhp\Compiler::addVariables() must be of the type array, null given, called in /chroot/home/hostname/website.com/html/wp-content/plugins/wp-scss/class/class-wp-scss.php on line 279 and defined in /chroot/home/hostname/website.com/html/wp-content/plugins/wp-scss/scssphp/src/Compiler.php:5358
    Stack trace:
    #0 /chroot/home/hostname/website.com/html/wp-content/plugins/wp-scss/class/class-wp-scss.php(279): ScssPhp\ScssPhp\Compiler->addVariables(NULL)
    #1 /chroot/home/hostname/website.com/html/wp-content/plugins/wp-scss/wp-scss.php(244): Wp_Scss->set_variables(Array)
    #2 /chroot/home/hostname/website.com/html/wp-content/plugins/wp-scss/wp-scss.php(230): wp_scss_compile()
    #3 /chroot/home/hostname/website.com/html/wp-includes/class-wp-hook.php(308): wp_scss_needs_compiling('')
    #4 /chroot/home/hostname/website.com/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #5 /chroot/home/hostname/website.com/html/wp-incl
    File: /wp-content/plugins/wp-scss/scssphp/src/Compiler.php
    Line: 5358
    Request: /shop
    Referrer: https://www.website.com/
    User: https://mandrillapp.com

    Same here, Update on 3.0.0 crasht the site(s):

    “Uncaught Error: Class ‘ScssPhp\ScssPhp\Block\DirectiveBlock’ not found in …/wp-content/plugins/wp-scss/scssphp/src/Parser.php:876.

    I also deactivated the plugin via FTP. Please help to fix. I have this Plugin on all my WordPress Instances …

    • This reply was modified 1 year, 11 months ago by sidsbiz.
    Plugin Author Sky Bolt

    (@sky-bolt)

    Sorry for this issue! I mistakenly missed some files when committing to WordPress SVN for version 3.0.0

    I updated my website and moved on, not realizing this issue shows as soon as a new compile tries to run.

    This has been fixed in 3.0.2 and now with 4.0.2, which also has a new version of SCSSPHP 1.11 (which requires PHP 7.2)

    If you would like to help maintain this plugin, please reach out here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Latest Version Error’ is closed to new replies.