Fatal error by activating theme

Home Forums Gillion Theme Fatal error by activating theme

Home Forums Gillion Theme Fatal error by activating theme

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    RESOLVED Posts
  • TheoSchipper
    Participant

    Hi,

     

    When activating theme I get the next error:

     

    <b>Fatal error</b>: Can’t use function return value in write context in <b>/home/host1435886/theoschipper.nl/htdocs/www/wp-content/themes/gillion/gillion/inc/helpers_blog.php</b> on line <b>47</b>

    Solution for this topic

    Hi @TheoSchipper,

     

    Sorry to hear of the problem you are having.

     

    Please make sure you are using below latest version of Gillion theme and make sure to use latest version of PHP on your server.


    Please login to access this file

     

    Best regards,
    Shufflehound team

    TheoSchipper
    Participant

    Hello,

     

    Bought and downloaded this version yesterday from Envato.

    After deactivating this two lines I could install the theme, but of course it’s not correct.

     

    foreach( $posts as $post ) :
    // $post_link = ( isset( wp_get_attachment_image_src( $post->ID, ‘full’ )[0] ) ) ? wp_get_attachment_image_src( $post->ID, ‘full’ )[0] : ”;
    // $post_image = ( isset( wp_get_attachment_image_src( $post->ID, $size )[0] ) ) ? wp_get_attachment_image_src( $post->ID, $size )[0] : ”;

    ……
    endforeach;

    Yes it is not correct to modify theme code.

     

    I have tested it on my test site and it’s working fine for me using latest version of Gillion theme so there must be something wrong on your server or site.

     

    Could you please tell me which version of PHP you are using on your site?

    TheoSchipper
    Participant

    Solution for this topic

    After all I downloaded your version and now th eproblem is solved. Some how there was probably something broken in de files I downloaded from Envato.

     

    Problem solved!

    Awesome great to see you got that solved.

     

    Please advise if you have more questions.

     

    Have a fantastic day!

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