Title: Fatal error: Can&#8217;t use function return value in write context
Last modified: September 11, 2019

---

# Fatal error: Can’t use function return value in write context

 *  Resolved [R3dRidl3](https://wordpress.org/support/users/r3dridl3/)
 * (@r3dridl3)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/)
 * There is an error:
    Fatal Error (E_COMPILE_ERROR): Can’t use function return 
   value in write context occurred in wp-content/plugins/google-analytics-for-wordpress/
   lite/includes/admin/wp-site-health.php on line 106
 * Fix for this is:
 * Change:
    $this->is_tracking = ! empty( monsterinsights_get_ua() );
 * To this:
    $UAvar = monsterinsights_get_ua(); $this->is_tracking = ! empty( $UAvar);

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

 *  [Fencer04](https://wordpress.org/support/users/fencer04/)
 * (@fencer04)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/#post-11923323)
 * I had the same issue, thank you for the fix.
 * This is really related to having a PHP version less than 5.6 which is the new
   minimum for running newer versions of WordPress. I would see if you site can 
   be updated to 5.6. If this plugin is going to require PHP 5.6 is should state
   that on its page and be part of the Changelog. Since that isn’t the case I’m 
   going to say this was an oversight and will probably get fixed in the next update.
 *  Plugin Author [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * (@chriscct7)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/#post-11924536)
 * Hi there,
    We will have a fix out for this on or before Tuesday (our previously
   scheduled point release), but bare in mind, PHP 5.5 and below are not supported
   on WordPress versions that support health checks. WordPress Core should have 
   actually blocked you from updating WordPress Core itself until you had updated
   PHP.
 * -Chris
 *  [Fencer04](https://wordpress.org/support/users/fencer04/)
 * (@fencer04)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/#post-11925551)
 * I am blocked from updating WordPress but this update was not blocked from happening.
   It was performed by IWP on all of my sites. The WordPress requirements for this
   plugin are listed as anything 3.8 to 5.3. You can add a PHP version requirement
   to the plugin and that would resolve the issue.
 *  [fomaasocial](https://wordpress.org/support/users/fomaasocial/)
 * (@fomaasocial)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/#post-11927308)
 * So the problem is we can’t even get to the admin login page to fix the code. 
   The fatal error comes up in place of the login screen.
 *  [Fencer04](https://wordpress.org/support/users/fencer04/)
 * (@fencer04)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/#post-11927427)
 * FTP in and change the name of the Anylystics plugin folder. Then you’ll be able
   to login. Make the changes, change the folder name back and then reactivate the
   plug in.
    -  This reply was modified 6 years, 9 months ago by [Fencer04](https://wordpress.org/support/users/fencer04/).
 *  [jaygidwitz](https://wordpress.org/support/users/jaygidwitz/)
 * (@jaygidwitz)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/#post-11930750)
 * [@fomaasocial](https://wordpress.org/support/users/fomaasocial/): [https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/](https://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/)
 * Please contact us at [https://www.monsterinsights.com/lite-support/](https://www.monsterinsights.com/lite-support/)
   if it gives you further trouble.
 * Thanks,
 * -Jay
 *  Plugin Author [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * (@chriscct7)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/#post-11941911)
 * The 7.8.1 update that works around the PHP version being out of date has been
   issued.
 * -Chris
 *  [crossman01](https://wordpress.org/support/users/crossman01/)
 * (@crossman01)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/#post-12414642)
 * I am getting this error
 * Fatal error: Can’t use function return value in write context in /homepages/19/
   d497510717/htdocs/wp-content/plugins/revslider/includes/functions.class.php on
   line 1004
 * How do I fix this?
    Best Ian

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

The topic ‘Fatal error: Can’t use function return value in write context’ is closed
to new replies.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

 * 8 replies
 * 1 participant
 * Last reply from: [crossman01](https://wordpress.org/support/users/crossman01/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-20/#post-12414642)
 * Status: resolved