Title: php 8.1 oEmbed warning
Last modified: September 26, 2025

---

# php 8.1 oEmbed warning

 *  Resolved [annaam](https://wordpress.org/support/users/annaam/)
 * (@annaam)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/php-8-1-oembed-warning/)
 * Hi,
 * Small warning started with php 8.1, when WordPress tries to handle an oEmbed 
   request:
 * > PHP Warning: Attempt to read property “post_type” on null in /plugins/events-
   > manager/classes/em-location-post.php on line 76
 * It seems that the code on line 76 always assumes a location post_type exists.
   Adding some isset() checks on post and post_type before reading seems to fix 
   it.
 * EM: 7.1.7, PHP: 8.1, WordPress: 6.8.2
 * Best,

Viewing 1 replies (of 1 total)

 *  Thread Starter [annaam](https://wordpress.org/support/users/annaam/)
 * (@annaam)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/php-8-1-oembed-warning/#post-18804142)
 * Can confirm in version 7.2.3, this has been patched.
 * Thank you.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-1-oembed-warning%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [annaam](https://wordpress.org/support/users/annaam/)
 * Last activity: [4 months, 1 week ago](https://wordpress.org/support/topic/php-8-1-oembed-warning/#post-18804142)
 * Status: resolved