Title: Latest Version Error
Last modified: November 18, 2022

---

# Latest Version Error

 *  Resolved [theProduct](https://wordpress.org/support/users/theproduct/)
 * (@theproduct)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/latest-version-error-3/)
 * 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](https://wordpress.org/support/users/cleverpixel/)
 * (@cleverpixel)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/latest-version-error-3/#post-16210431)
 * 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
       ```
   
 *  [sidsbiz](https://wordpress.org/support/users/sidsbiz/)
 * (@sidsbiz)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/latest-version-error-3/#post-16266730)
 * 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 3 years, 5 months ago by [sidsbiz](https://wordpress.org/support/users/sidsbiz/).
 *  Plugin Author [Skylar Bolton](https://wordpress.org/support/users/sky-bolt/)
 * (@sky-bolt)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/latest-version-error-3/#post-16292841)
 * 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](https://github.com/ConnectThink/WP-SCSS/issues/242).

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

The topic ‘Latest Version Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-scss_222222.svg)
 * [WP-SCSS](https://wordpress.org/plugins/wp-scss/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-scss/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-scss/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-scss/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-scss/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-scss/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Skylar Bolton](https://wordpress.org/support/users/sky-bolt/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/latest-version-error-3/#post-16292841)
 * Status: resolved