Title: Fatal error: Can&#8217;t use function return value in write context
Last modified: October 17, 2017

---

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

 *  Resolved [irocwebs](https://wordpress.org/support/users/irocwebs/)
 * (@irocwebs)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/)
 * FYI – Version 3.4.0 – getting a Fatal error: Can’t use function return value 
   in write context in /wp-content/plugins/email-subscribers/classes/es-register.
   php on line 1241 – breaks website.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/page/2/?output_format=md)

 *  Thread Starter [irocwebs](https://wordpress.org/support/users/irocwebs/)
 * (@irocwebs)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9594865)
 * This is line 1241 in /wp-content/plugins/email-subscribers/classes/es-register.
   php
 * `$es_templ_thumbnail = (!empty(get_the_post_thumbnail( $post->ID ) ) ) ? get_the_post_thumbnail(
   $post->ID, array('200','200') ) : '<img src="'.ES_URL.'images/es-custom-template.
   png" />';`
    -  This reply was modified 8 years, 7 months ago by [irocwebs](https://wordpress.org/support/users/irocwebs/).
 *  Thread Starter [irocwebs](https://wordpress.org/support/users/irocwebs/)
 * (@irocwebs)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9594890)
 * Not sure if this is the fix or not but might be better to use WordPress function
   has_post_thumbnail() instead?
 *  [Prathamesh Palve](https://wordpress.org/support/users/prathameshp/)
 * (@prathameshp)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9595391)
 * [@irocwebs](https://wordpress.org/support/users/irocwebs/)
 * Apologies for the inconvenience caused to you. Kindly allow us some time to release
   the stable version of it.
 * Let me get back to you once this issue has been resolved.
 *  [dancin12](https://wordpress.org/support/users/dancin12/)
 * (@dancin12)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9595483)
 * Hi, just want you to know I seem to have the same problem. I updated my email
   subscribers plugin and got the fatal error. . . on line 1241. I would also so
   appreciate knowing when the issue is resolved and what if anything I need to 
   do to be back in business. Thank you very much!
 *  [Prathamesh Palve](https://wordpress.org/support/users/prathameshp/)
 * (@prathameshp)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9596676)
 * [@dancin12](https://wordpress.org/support/users/dancin12/)
 * Sincere apologies for all the inconvenience caused to you with the recent update
   of the plugin.
 * Kindly allow us some time as we are in the process of releasing the official 
   stable release of the plugin.
 * I will revert you once the issue has been resolved and the official release comes
   out.
 *  Plugin Author [Icegram](https://wordpress.org/support/users/icegram/)
 * (@icegram)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9596733)
 * [@irocwebs](https://wordpress.org/support/users/irocwebs/), [@dancin12](https://wordpress.org/support/users/dancin12/),
 * Sincere apologies for the inconvenience caused to you.
    We have released a fixed**
   version 3.4.1** which will fix the issue that you are facing.
 * Kindly update plugin to **version 3.4.1** (if you have downgraded to lower plugin
   version) or download a latest version from WordPress.org, install & activate 
   on your site.
 * Let us know your views on the same.
 *  [dancin12](https://wordpress.org/support/users/dancin12/)
 * (@dancin12)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9598040)
 * Thank you for your work on this. I can now see my blog is there but cannot get
   onto the dashboard to update the plugin or do or see anything at all. It still
   says fatal error when I try. What do I need to do to get into the dashboard. 
   Thank you very much.
    -  This reply was modified 8 years, 7 months ago by [dancin12](https://wordpress.org/support/users/dancin12/).
 *  [mattbroadway](https://wordpress.org/support/users/mattbroadway/)
 * (@mattbroadway)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9598238)
 * Hello,
 * I’m having the same issues. I cannot view my site or access my dashboard. I’m
   not skilled with WordPress, and do not know what to do. Any advice would be greatly
   appreciated. It’s somewhat urgent that I get my site back up and running.
 * Thank you,
    Matt
 *  Thread Starter [irocwebs](https://wordpress.org/support/users/irocwebs/)
 * (@irocwebs)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9598287)
 * You will need ftp or cpanel access to delete the folder email-subscribers in 
   the plugins folder. Folder location is typically wp-content/plugins/email-subscribers.
   Once deleted you will be able to access the wordpress admin and reinstall the
   plugin.
 *  [dancin12](https://wordpress.org/support/users/dancin12/)
 * (@dancin12)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9598372)
 * I am in my cpanel and see nothing that is helpful in deleting or changing anything
   on my dashboard. When I go to wp-admin, I still get the Fatal error: Can’t use
   function return value in write context in /home3/dancin1234/public_html/MyProductiveBackyard.
   com/wp-content/plugins/email-subscribers/classes/es-register.php on line 1241
   error.
 * Also, will deleting and reinstalling the email subscribers plugin, will I lose
   my subscribers?
    -  This reply was modified 8 years, 7 months ago by [dancin12](https://wordpress.org/support/users/dancin12/).
 *  [mattbroadway](https://wordpress.org/support/users/mattbroadway/)
 * (@mattbroadway)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9598584)
 * Can anyone advise how I can go about “ftp or cpanel access” ?
 *  Thread Starter [irocwebs](https://wordpress.org/support/users/irocwebs/)
 * (@irocwebs)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9598599)
 * If you are using cPanel, you will need to use the file manager to go to the folder
   and delete it. Depending on your set up it might be public_html/wp-content/plugins/
   email-subscribers. You will need to **navigate to the plugins** folder of you
   wordpress installation and **delete the email-subscribers** folder. Once you’ve
   done this, you will be able to access the wordpress admin and reinstall the plugin.
   You should not lose any settings or subscribers doing this.
 *  Thread Starter [irocwebs](https://wordpress.org/support/users/irocwebs/)
 * (@irocwebs)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9598603)
 * [@mattbroadway](https://wordpress.org/support/users/mattbroadway/) – if you do
   not have access to this you may need to contact your hosting company or web designer.
 *  [mattbroadway](https://wordpress.org/support/users/mattbroadway/)
 * (@mattbroadway)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9598627)
 * I’ve never used anything like that. We just have a simple template wordpress 
   blog.
 *  [mattbroadway](https://wordpress.org/support/users/mattbroadway/)
 * (@mattbroadway)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/#post-9598644)
 * Will do. Thanks [@irocwebs](https://wordpress.org/support/users/irocwebs/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-10/page/2/?output_format=md)

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

 * ![](https://ps.w.org/email-subscribers/assets/icon-256x256.png?rev=2274172)
 * [Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress](https://wordpress.org/plugins/email-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-subscribers/reviews/)

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