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)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form