Title: Fatal error: Can&#039;t use function return value in write context in archive.php
Last modified: September 1, 2016

---

# Fatal error: Can't use function return value in write context in archive.php

 *  Resolved [pedjas](https://wordpress.org/support/users/pedjas/)
 * (@pedjas)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-in-archivephp/)
 * I got this error:
 * Fatal error: Can’t use function return value in write context archive.php
 * It was introduced on line 36 in archive.php
 * Fixed it by replacing:
 *     ```
       <?php
         if ( ! empty( tag_description() ) ) {
           echo apply_filters( 'tag_archive_meta', tag_description() );
         }
       ?>
       ```
   
 * with
 *     ```
       <?php
         $m_tag_description =  tag_description();
         if ( ! empty( $m_tag_description ) ) {
           echo apply_filters( 'tag_archive_meta', tag_description() );
         }
       ?>
       ```
   

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

 *  [Suyogya Shukla](https://wordpress.org/support/users/themeislesupport/)
 * (@themeislesupport)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-in-archivephp/#post-7542099)
 * Hey there,
 * Thank you for sharing the solution with rest of us. 🙂
 *  [Justin W. Wheeler](https://wordpress.org/support/users/jflory7/)
 * (@jflory7)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-in-archivephp/#post-8641077)
 * Wow, thanks for sharing this fix! I had this exact same issue and your provided
   code completely solved the issue. I wish the developer would provide an official
   update to fix this, it doesn’t seem like too consequential of a fix.
 *  Thread Starter [pedjas](https://wordpress.org/support/users/pedjas/)
 * (@pedjas)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-in-archivephp/#post-8641217)
 * If we do not share and help each other, who will? 🙂

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

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/wilson/2.1.3/screenshot.jpg)
 * Wilson
 * [Support Threads](https://wordpress.org/support/theme/wilson/)
 * [Active Topics](https://wordpress.org/support/theme/wilson/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/wilson/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/wilson/reviews/)

## Tags

 * [blank-page](https://wordpress.org/support/topic-tag/blank-page/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)

 * 3 replies
 * 3 participants
 * Last reply from: [Justin W. Wheeler](https://wordpress.org/support/users/jflory7/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-cant-use-function-return-value-in-write-context-in-archivephp/#post-8641077)
 * Status: resolved