• Resolved pedjas

    (@pedjas)


    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)
  • Hey there,

    Thank you for sharing the solution with rest of us. ??

    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

    (@pedjas)

    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.