Title: Fatal error: Can&#8217;t use function return value in write context
Last modified: April 5, 2018

---

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

 *  Resolved [stormdiscount](https://wordpress.org/support/users/stormdiscount/)
 * (@stormdiscount)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/)
 * After upgrading to 4.20 cant activate the nextscript plugin. See error.
 * Fatal error: Can’t use function return value in write context in /…/wp-content/
   plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_functions_adv.
   php on line 94
 * Any idear how to fix this ?

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

 *  Plugin Contributor [okapy](https://wordpress.org/support/users/okapy/)
 * (@okapy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10147985)
 * What is your PHP version?
 * This error looks like something form the very old PHP.
 *  [Passworthy](https://wordpress.org/support/users/passworthy/)
 * (@passworthy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10147993)
 * Exact same problem after upgrading. Site is offline now. PHP v 5.4.
 *  [Passworthy](https://wordpress.org/support/users/passworthy/)
 * (@passworthy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10147995)
 * I see I can upgrade to PHP 5.6, would that fix this?
 *  Plugin Contributor [okapy](https://wordpress.org/support/users/okapy/)
 * (@okapy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10148000)
 * PHP 5.4 end of life: 3 Sep 2015 (2 years, 7 months ago)
 * It’s already PHP 7.2. Please consider upgrade and you won’t be hitting issues
   like this.
 *  Plugin Contributor [okapy](https://wordpress.org/support/users/okapy/)
 * (@okapy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10148001)
 * Yes, PHP 5.6 is not affected by this issue.
 *  [domesticdivascoupons](https://wordpress.org/support/users/domesticdivascoupons/)
 * (@domesticdivascoupons)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10148018)
 * Have the same problem,updated and site went down and can’t get in dashboard.
   
   Fatal error: Can’t use function return value in write context in /home3/mshorse/
   public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/
   inc/nxs_functions_adv.php on line 94
 *  [Passworthy](https://wordpress.org/support/users/passworthy/)
 * (@passworthy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10148021)
 * Thanks. It’s something I never think to upgrade, obviously.
 *  Plugin Contributor [okapy](https://wordpress.org/support/users/okapy/)
 * (@okapy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10148026)
 * All PHP versions below 5.5.0 are affected.
 * Why are you using such outdated PHP versions? It’s slow and insecure.
 * PHP 7 is great and lightning fast. The best way to fix this is to update PHP.
 *  Plugin Author [NextScripts](https://wordpress.org/support/users/nextscripts/)
 * (@nextscripts)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10148048)
 * Fixed in version 4.2.1.
 * PS: [@okapy](https://wordpress.org/support/users/okapy/) is right. The best way
   to fix this (and all other OLD version compatibility errors) is to use currently
   supported version of PHP – [http://php.net/supported-versions.php](http://php.net/supported-versions.php).
 *  [Passworthy](https://wordpress.org/support/users/passworthy/)
 * (@passworthy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10148049)
 * Two reasons. I’m a novice at this and I rarely log into my hosting provider, 
   so, out of sight, out of mind. I believe they only offer an incremental upgrade
   path. My only choice was 5.6. Once that’s cycled through, they will probably 
   give me another upgrade step.
 * Site is back up with 5.6, thanx.
 *  [domesticdivascoupons](https://wordpress.org/support/users/domesticdivascoupons/)
 * (@domesticdivascoupons)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10148108)
 * Updated to 5.6 for now but will contact Host Gator about updating to 7 tomorrow.
   Thanks
 *  Thread Starter [stormdiscount](https://wordpress.org/support/users/stormdiscount/)
 * (@stormdiscount)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10148685)
 * Actually, is it possible to downgrade Nextscript to the previous version before
   version 4.20 ? If so how to do this ?
 * Crashing the website because of upgrading to 4.20 is not so nice when having 
   an older version of PHP. Would be good for nextscript to implement an php version
   check before upgrading, so that it states whats needs to be upgraded first instead
   of taking down the website after upgrading to 4.20
 *  Plugin Author [NextScripts](https://wordpress.org/support/users/nextscripts/)
 * (@nextscripts)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10149991)
 * [@stormdiscount](https://wordpress.org/support/users/stormdiscount/)
 * 1. No need to downgrade. We fixed the issue yesterday in the version 4.2.1. 4.2.1
   is not compatible with all PHP versions down to PHP 5.2.
 * 2. We always test plugin with all currently officially supported PHP versions.
   As of today that’s PHP 5.6, PHP 7.0, PHP 7.1 and PHP 7.2.
 * PHP 5.4 reached its end of life on 3 Sep 2015 (2 years, 7 months ago)
 *  Thread Starter [stormdiscount](https://wordpress.org/support/users/stormdiscount/)
 * (@stormdiscount)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10151879)
 * Thank you. My issues are solved.

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

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

 * ![](https://ps.w.org/social-networks-auto-poster-facebook-twitter-g/assets/icon-
   256x256.png?rev=1106267)
 * [NextScripts: Social Networks Auto-Poster](https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/)
 * [Active Topics](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-networks-auto-poster-facebook-twitter-g/reviews/)

 * 14 replies
 * 5 participants
 * Last reply from: [stormdiscount](https://wordpress.org/support/users/stormdiscount/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-14/#post-10151879)
 * Status: resolved