Fatal error: Can't use function return value in write context -venue.php line 97

Home Forums Calendar Products Events Calendar PRO Fatal error: Can't use function return value in write context -venue.php line 97

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1182641
    Steve
    Participant

    IF Events Calendar Pro is activated the website crashes with:

    Fatal error: Can’t use function return value in write context in /public_html/wp-content/plugins/events-calendar-pro/src/functions/template-tags/venue.php on line 97

    Everything was working fine until recently. Now I’ve had to deactivate Events Calendar Pro.

    #1182991
    Geoff B.
    Member

    Good evening Steve,

    Thank you for reaching out to us.

    We are sorry about the fatal error you have received.
    I would love to help you with this topic.

    As it turns out, you have stumbled upon a glitch impacting all WordPress users that are using a version of PHP that is older than 5.6. As a side note, you might want to consider upgrading PHP to at least 5.6 since this is the minimal recommend PHP version (by WordPress).

    Fortunately, we have a temporary fix:

    • You can head to line 97 of events-calendar-pro/src/functions/template-tags/venue.php from this: return ! empty( tribe_get_events( $args ) );
    • And change it to this $tribe_events = tribe_get_events( $args );
      return ! empty( $tribe_events );

    Better yet, you can simply download the Events Calendar Pro v4.3.1.1 that includes a fix for this specific issue.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1193228
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Can't use function return value in write context -venue.php line 97’ is closed to new replies.