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

---

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

 *  Resolved [dval09](https://wordpress.org/support/users/dval09/)
 * (@dval09)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-16/)
 * I just attempted to update to the most recent version of OE and got this error:
   Fatal error: Can’t use function return value in write context in /home2/midloadmin/
   public_html/wp-content/plugins/ocean-extra/includes/widgets/social-share.php 
   on line 242. NEED HELP
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-cant-use-function-return-value-in-write-context-16%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [nandadavid](https://wordpress.org/support/users/nandadavid/)
 * (@nandadavid)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-16/#post-10629897)
 * hi… just logged from your cpanel. then search directory plugin ocean extra, rename
   the directory oceanextra. open your wpadmin then deleted ocean extra plugin from
   your site. then install the older version ocean extra here [https://wordpress.org/plugins/ocean-extra/advanced/](https://wordpress.org/plugins/ocean-extra/advanced/)
   
   do not update ocean extra
 *  Thread Starter [dval09](https://wordpress.org/support/users/dval09/)
 * (@dval09)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-16/#post-10629996)
 * Hi nandadavid, I cannot access my CPanel at the moment. Would you mind doing 
   this for me, please?
 *  Thread Starter [dval09](https://wordpress.org/support/users/dval09/)
 * (@dval09)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-16/#post-10630218)
 * ?
 *  Thread Starter [dval09](https://wordpress.org/support/users/dval09/)
 * (@dval09)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-16/#post-10632778)
 * hello, also will this issue with the new update ever be fixed? i do not want 
   to risk my website the old plugins
 *  Plugin Author [oceanwp](https://wordpress.org/support/users/oceanwp/)
 * (@oceanwp)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-16/#post-10634415)
 * Hello, you have this problem because you are on a very old PHP version, I fixed
   the issue on the latest update, update the plugin to fix this problem but I strongly
   recommend you to upgrade your PHP version to PHP 7, your site will be more secure
   and faster.
 *  Thread Starter [dval09](https://wordpress.org/support/users/dval09/)
 * (@dval09)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-16/#post-10634670)
 * i cannot access my website because of the error that occurred upon attempting
   to update the plugin.
 *  Plugin Author [oceanwp](https://wordpress.org/support/users/oceanwp/)
 * (@oceanwp)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-16/#post-10638045)
 * Hello, if you cannot access it via FTP, you will need to ask your host to delete
   the Ocean Extra plugin from your site.
    And if you can ask him too to upgrade
   your PHP version to PHP 7, it will be better for you.

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

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

 * ![](https://ps.w.org/ocean-extra/assets/icon.svg?rev=2814940)
 * [Ocean Extra](https://wordpress.org/plugins/ocean-extra/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ocean-extra/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ocean-extra/)
 * [Active Topics](https://wordpress.org/support/plugin/ocean-extra/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ocean-extra/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ocean-extra/reviews/)

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