Title: PHP Warning
Last modified: September 10, 2025

---

# PHP Warning

 *  Resolved [jhaun](https://wordpress.org/support/users/jhaun/)
 * (@jhaun)
 * [7 months ago](https://wordpress.org/support/topic/php-warning-547/)
 * Hello,
   I’ve been working on fixing errors for one of the sites I work on and 
   I noticed this PHP Warning for the events calendar plugin.
 *     ```wp-block-code
       PHP Warning: Trying to access array offset on value of type null in /wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php on line 1126
       ```
   
 * It’s not a show stopper, but thought you might want to know about it.
 * Thanks,
   Jonathan

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

 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [7 months ago](https://wordpress.org/support/topic/php-warning-547/#post-18639262)
 * Hi [@jhaun](https://wordpress.org/support/users/jhaun/)
 * Thank you for reaching out! I’ve set up a new test site on my end, but I wasn’t
   able to reproduce the warning message you mentioned.
 * Could you please share the versions of the following, along with the specific
   steps you took when you encountered the issue? This information will help me 
   better understand your setup and investigate further:
 * – The Events Calendar version
   – WordPress version– Any other relevant plugins
   or themes
 * If you have any additional details or screenshots, please include those as well.
   I’m here to help and will do my best to get this resolved for you!
 *  Thread Starter [jhaun](https://wordpress.org/support/users/jhaun/)
 * (@jhaun)
 * [7 months ago](https://wordpress.org/support/topic/php-warning-547/#post-18639343)
 * Hi Darian,
   Yes, no problem. Here’s what we’re currently using for this site:
 * The Events Calendar: version 6.15.0.1
   WordPress: version 6.8.2
 * The theme is custom built. The other plugins being used are:
 * Also, this is running on PHP 8.2.
   ACF Content Analysis for Yoast SEO – 3.2Admin
   Columns Pro – 6.4.21Advanced Custom Fields PRO – 6.5.0.1Advanced Custom Fields:
   Extended PRO – 0.9.1.1Advanced Custom Fields: Font Awesome – 4.1.2Advanced Custom
   Fields: Gravity Forms Add-on – 1.3.8Advanced Editor Tools – 5.9.2Akismet Anti-
   spam: Spam Protection – 5.5Classic Editor – 1.6.7Gravity Forms – 2.9.16Gravity
   Forms Akismet Add-On – 1.1.0Gravity Forms Signature Add-On – 4.8.0Gravity PDF–
   6.13.1Instagram Feed Pro Personal – 6.0.4Redirection – 5.5.2Safe SVG – 2.3.3Simple
   Page Ordering – 2.7.4The Events Calendar – 6.15.0.1The Events Calendar Pro – 
   7.7.0Wordfence Security – 8.0.5WP Crontrol – 1.19.2WP Mail SMTP – 4.5.0WP Migrate–
   2.7.4WP Store Locator – 2.2.260Yaost Duplicate Post – 4.5Yoast SEO – 25.7
 * There are quite a few plugins on this site, so not sure which ones would be relevant,
   although the code shows the line will probably error for that line in PHP 8.2,
   and the $term variable should be checked to see if it’s an array first? For example:
 *     ```wp-block-code
       if (	tribe_is_event( $event_id )	&& is_array( $term )	&& is_object_in_term( $event_id, Tribe__Events__Main::TAXONOMY, [ $term['term_id'] ] )) {	$return = true;} else {	$return = false;}
       ```
   
 * Thanks,
   Jonathan
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [6 months, 4 weeks ago](https://wordpress.org/support/topic/php-warning-547/#post-18642236)
 * Hi [@jhaun](https://wordpress.org/support/users/jhaun/)
 * Thank you for reaching out! Since you have a premium license, we’d love to provide
   you with the best possible support. To help us assist you more efficiently—and
   to comply with [WordPress Forum Guidelines](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products)
   for premium users—please open a [Support Ticket](https://theeventscalendar.com/support/#contact)
   through our Help Desk.
 * Once your ticket is submitted, one of our team members will be in touch shortly.
   We’re looking forward to helping you resolve this!
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-547/#post-18645644)
 * Hi there,
 * Since there hasn’t been any recent activity on this thread, I’ll go ahead close
   this for now.
 * If you have any more questions or need additional support, please don’t hesitate
   to [open a Support Ticket ](https://theeventscalendar.com/support/#contact)through
   our Help Desk.

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

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 4 replies
 * 2 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [6 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-547/#post-18645644)
 * Status: resolved