Dyad Image Post Fatal Error

  • Author
  • #2676467

    The Dyad theme is installed. When adding a new post with the “Image” format selected and a featured image set a fatal error occurs.

    The post displays the following error:

    Fatal Error: Can’t use function return value in write context in /home/tigerhillsarts/public_html/wp/wp-content/themes/dyad-wpcom/template-parts/content-featured-img.php on line 22

    I can’t figure this out, I don’t know php very well.

    here are the contents of the content-featured-img.php:

    <div class=”site-banner-content banner-custom-header”>


    * Media

    <div class=”site-banner-media”>
    <?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘dyad-banner’ ); ?>

    <div class=”site-banner-thumbnail” title=”<?php the_title_attribute(); ?>” <?php if ( has_post_thumbnail() ) { echo ‘style=”background-image: url(‘ . esc_url( $thumb[0] ) . ‘);”‘; } ?>></div>


    * Custom Header text

    if( ‘image’ != get_post_format() && ! empty( get_bloginfo( ‘description’ ) ) ) { ?>
    <div class=”site-banner-header”>

    <h1 class=”entry-title”>
    <?php bloginfo( ‘description’ ); ?>

    </div><!– .site-banner-header –>
    <?php } ?>
    </div><!– .site-banner-content –>



    Fatal errors are wordpress.ORG software errors.

    This is wordpress.COM support. You are posting to the wrong support forum.

    We provide support only for wordpress.COM hosted sites. Our support docs do not apply to
    (1) local installs of wordpress.ORG software on your own server or
    (2) wordpress.ORG software installs on paid hosting, and we do not provide support for them at wordpress.COM.

    Also, note that we do not provide Jetpack support https://jetpack.me/support/ for sites linked to wordpress.COM accounts with the Jetpack plugin so they display on the My Sites wordpress.com account page.

    Some Jetpack solutions are here http://jetpack.me/support/

    Others are in the Jetpack support forum at WordPress.org

    However, if help cannot be found at either one then they can file a Jetpack support ticket here > http://en.support.wordpress.com/contact/?jetpack=needs-service

    WordPress.COM and WordPress.ORG are completely separate and have different username accounts, logins, features, run different versions of some themes with the same names, and have separate support documentation and separate support forums. Read the differences here http://en.support.wordpress.com/com-vs-org/

    As you are referring to a site that is not hosted here, if you don’t have a username account at WordPress.ORG account, then click http://wordpress.org/support/ and register one on the top right-hand corner of the page that opens, https://wordpress.org/support/register.php so you can post to the support forums there.
    Resetting your WordPress.ORG password http://codex.wordpress.org/Resetting_Your_Password
    WordPress.org support docs are at https://codex.wordpress.org/Main_Page
    See also https://apps.wordpress.org/support/

The topic ‘Dyad Image Post Fatal Error’ is closed to new replies.