Title: &quot;Fatal Error&quot; Can&#039;t use function return value
Last modified: August 31, 2016

---

# "Fatal Error" Can't use function return value

 *  Resolved [amayrose](https://wordpress.org/support/users/amayrose/)
 * (@amayrose)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value/)
 * The website is [http://www.iaoma.org](http://www.iaoma.org)
 * When I went to my website today it came up with the following error:
 * Fatal error: Can’t use function return value in write context in /home2/wterrell/
   public_html/iaoma.org/wp-content/themes/auberge/includes/setup/setup.php on line
   806
 * Unfortunately, I can’t find my way to line 806 (I’m still learning how to do 
   this sort of work). I can’t login to wordpress, and I also can’t seem to find
   the folder listed above in myphpadmin. I use hostgator.
 * Please let me know what I can do to resolve this. I saw a similar issue here:
   [https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-in-template-tags?replies=12 ](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-in-template-tags?replies=12)
 * but since that issue was with a different version I’m not sure how to go forward
   with my own problem.
 * Please let me know if you need any more information from me, and thank you in
   advance for any help you can offer!

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

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value/#post-7378864)
 * Rename wp-content/themes/auberge to wp-content/themes/auberge-old
 * You have a problem with that theme but renaming it should get you back into WordPress.
 *  Thread Starter [amayrose](https://wordpress.org/support/users/amayrose/)
 * (@amayrose)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value/#post-7378868)
 * Thank you so much! I’ll make sure I can get everything working again and then
   I’ll mark this as resolved.
 *  [ssgradient5](https://wordpress.org/support/users/ssgradient5/)
 * (@ssgradient5)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value/#post-7378872)
 * Hi,
 * Can you please let me know whether the issue is resolved or not.
 * If not, please run the below command and provide the result to me so that I can
   assist you in this regard.
 * =======
    vi /home2/wterrell/public_html/iaoma.org/wp-content/themes/auberge/includes/
   setup/setup.php +806 =======
 * Also if you get the the below line by executing the above command, then change
   the code.
 * Your code:
    ………. if (isset($_POST(‘sms_code’) == TRUE ) { ………. Change to ……….
   if (isset($_POST[‘sms_code’]) == TRUE ) { ……….
 * Even better:
 * if (isset($_POST[‘sms_code’])) {
 * because isset returns a boolean anyway.
 * Looking forward to your response. 🙂
 *  Thread Starter [amayrose](https://wordpress.org/support/users/amayrose/)
 * (@amayrose)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value/#post-7378876)
 * The issue is resolved. Thank you!!
 *  [elilevi](https://wordpress.org/support/users/elilevi/)
 * (@elilevi)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value/#post-7378944)
 * amayrose can you tell me how you did you solve it im having the same problem 
   on my site
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value/#post-7378960)
 * [@elilevi](https://wordpress.org/support/users/elilevi/) Please start your own
   thread.

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

The topic ‘"Fatal Error" Can't use function return value’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [function return value](https://wordpress.org/support/topic-tag/function-return-value/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value/#post-7378960)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
