Title: Compiler error with PHP version 7.4.
Last modified: May 27, 2020

---

# Compiler error with PHP version 7.4.

 *  [jordanwebdev](https://wordpress.org/support/users/jordanwebdev/)
 * (@jordanwebdev)
 * [6 years ago](https://wordpress.org/support/topic/compiler-error-with-php-version-7-4/)
 * I get the following error after saving a file and refreshing the page when using
   PHP 7.4. I have confirmed this error does not occur while using PHP 7.0. The 
   error goes away after a while with a new page refresh. I contacted my hosting
   and they have confirmed it seems to be an issue with the code. Perhaps this line
   on 3705 needs to be updated based on PHP 7.4 standards?
 * Notice: Trying to access array offset on value of type null in …/wp-scss/scssphp/
   src/Compiler.php on line 3705

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

 *  Thread Starter [jordanwebdev](https://wordpress.org/support/users/jordanwebdev/)
 * (@jordanwebdev)
 * [6 years ago](https://wordpress.org/support/topic/compiler-error-with-php-version-7-4/#post-12901371)
 * I have resolved the issue by replacing line 3705 in scss/scssphp/src/Compiler.
   php with the following. Please consider including this change in the plugin and
   releasing an update.
 * `$key = isset($key) ? $key[1] : false;`
 * Please check this stack overflow issue, it is similar:
 * [https://stackoverflow.com/questions/59336951/message-trying-to-access-array-offset-on-value-of-type-null](https://stackoverflow.com/questions/59336951/message-trying-to-access-array-offset-on-value-of-type-null)
    -  This reply was modified 6 years ago by [jordanwebdev](https://wordpress.org/support/users/jordanwebdev/).
    -  This reply was modified 6 years ago by [jordanwebdev](https://wordpress.org/support/users/jordanwebdev/).
 *  [troycono](https://wordpress.org/support/users/troycono/)
 * (@troycono)
 * [6 years ago](https://wordpress.org/support/topic/compiler-error-with-php-version-7-4/#post-12911973)
 * I just started having this issue today as well. I guess WPEngine must’ve updated
   PHP versions on my hosting server, as it triggered another WordPress loop related
   error I was not getting prior to yesterday as well.
 * At any rate, thank you [@jordanwebdev](https://wordpress.org/support/users/jordanwebdev/)
   for posting your solution, and @WPSCSS, that’s a +1 from me to the notion of 
   patching in a permanent fix for this issue, please and thank you.
 *  [sylvainnascimento](https://wordpress.org/support/users/sylvainnascimento/)
 * (@sylvainnascimento)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/compiler-error-with-php-version-7-4/#post-13697934)
 * Thanks for your solution [@jordanwebdev](https://wordpress.org/support/users/jordanwebdev/)!

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

The topic ‘Compiler error with PHP version 7.4.’ 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/)

## Tags

 * [sass](https://wordpress.org/support/topic-tag/sass/)
 * [scss](https://wordpress.org/support/topic-tag/scss/)

 * 3 replies
 * 3 participants
 * Last reply from: [sylvainnascimento](https://wordpress.org/support/users/sylvainnascimento/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/compiler-error-with-php-version-7-4/#post-13697934)
 * Status: not resolved