Title: WP_Object_Cache:get was called incorrectly
Last modified: January 6, 2023

---

# WP_Object_Cache:get was called incorrectly

 *  Resolved [tanglewood23](https://wordpress.org/support/users/tanglewood23/)
 * (@tanglewood23)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/wp_object_cacheget-was-called-incorrectly/)
 * Hi, I’ll try and give as much detail as possible for you but let me know if you
   need anything more.
 * WP version – 6.1.1
 * PHP version – 8.0.26
 * Event manager version – 6.2.1
 * When I upgraded to PHP 8 I started getting the following error on pages displaying
   our events
 * [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 6.1.0.) in /customers/
   1/6/a/shoasis.co.uk/httpd.www/wp-includes/functions.php on line 5835 Notice: 
   Function WP_Object_Cache::set was called**incorrectly**. Cache key must be integer
   or non-empty string, NULL given. Please see
 * I have done the following but it hasn’t resolved the issue.
    1. Run site in WP safe mode – error persisted
    2. Have the most up to date version of event manager
    3. Searched the forums and can’t find any posts with similar issues.
 * Any help with next steps or resolutions would be greatly appreciated
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp_object_cacheget-was-called-incorrectly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/wp_object_cacheget-was-called-incorrectly/#post-16355365)
 * I have not experienced this yet, I will check on this
 *  [PeterBP](https://wordpress.org/support/users/peterbp/)
 * (@peterbp)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/wp_object_cacheget-was-called-incorrectly/#post-16391590)
 * I was getting this in debug mode in a brand new local MAMP install with PHP 8(
   then 7.4) and EM 6.3. Warning persisted in troubleshooting mode with all other
   plugins off. Was able to resolve by enabling Memcached, then adding the “Object
   Cache 4 everyone” plugin. A separate staging site was not affected as already
   had Memcached enabled. Hope this helps.
 *  Thread Starter [tanglewood23](https://wordpress.org/support/users/tanglewood23/)
 * (@tanglewood23)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/wp_object_cacheget-was-called-incorrectly/#post-16487043)
 * [@peterbp](https://wordpress.org/support/users/peterbp/) Thanks for the response,
   a lot of what you was kinda alien to me. I’ve looked at enabling Memcached and
   it looks like I need to my hosting provider about allowing it. I’m not sure what
   why ment by adding the Object cache for everyone though. Is that something I’ll
   need to do in wp?

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

The topic ‘WP_Object_Cache:get was called incorrectly’ is closed to new replies.

 * ![](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/)

 * 3 replies
 * 3 participants
 * Last reply from: [tanglewood23](https://wordpress.org/support/users/tanglewood23/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/wp_object_cacheget-was-called-incorrectly/#post-16487043)
 * Status: resolved