• Resolved Edith Allison

    (@terragirl)


    Issue found: The link to buy a ticket in the events overview list was empty like so:

    <a href="" class="tribe-events-c-small-cta__link tribe-common-cta tribe-common-cta--thin-alt"></a>

    I traced this back to /event-tickets/src/Tribe/Events/Views/V2/Models/Tickets.php around line 177

    if ( null !== $this->data ) {

    This is incorrect, as $this->data is an empty array, which isn’t the same as a null

    if ( ! empty( $this->data ) ) {

    is the correct fix, and will force the data to be generated. After applying the fix, the “buy” link was correctly populated.

    Here is the revised code block which contains the fix:

    	//	if ( null !== $this->data ) {
    if ( ! empty( $this->data ) ) {
    return $this->data;
    }

    To recap, on the site I was working, $this->data reported as an empty array. Applying the above fix forced the data to be generated and the site is working correctly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darian

    (@d0153)

    Hi @terragirl

    Thank you for sharing the issue you found along with your recommended fix—we truly appreciate the effort you put into this. I’ll be passing it along to our development team for further review so they can evaluate it and apply any necessary fixes in a future update.

    In the meantime, if you have any other questions or concerns, please don’t hesitate to let me know.

    Plugin Support Darian

    (@d0153)

    Hi @terragirl

    Thank you so much for your patience. I wanted to let you know that we’ve created an internal bug ticket (ET-2555) for this issue and have linked your case to it. This ensures you’ll be notified as soon as there’s an update or a fix available.

    We truly appreciate your feedback and recommendation. I’m here to help with any other questions you might have about this topic. If there’s nothing else, I’ll go ahead and close this thread for now.

    Have a great day!


    Internal Bug Ticket Reference: ET-2555

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug Report: empty data’ is closed to new replies.