Title: Bug Report: empty data
Last modified: September 16, 2025

---

# Bug Report: empty data

 *  Resolved [Edith Allison](https://wordpress.org/support/users/terragirl/)
 * (@terragirl)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/bug-report-empty-data/)
 * Issue found: The link to buy a ticket in the events overview list was empty like
   so:
 *     ```wp-block-code
       <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
 *     ```wp-block-code
       if ( null !== $this->data ) {
       ```
   
 * This is incorrect, as $this->data is an empty array, which isn’t the same as 
   a null
 *     ```wp-block-code
       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:
 *     ```wp-block-code
       	//	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](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/bug-report-empty-data/#post-18643802)
 * Hi [@terragirl](https://wordpress.org/support/users/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](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/bug-report-empty-data/#post-18645570)
 * Hi [@terragirl](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/event-tickets/assets/icon.svg?rev=2259340)
 * [Event Tickets and Registration](https://wordpress.org/plugins/event-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/event-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-tickets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [8 months, 3 weeks ago](https://wordpress.org/support/topic/bug-report-empty-data/#post-18645570)
 * Status: resolved