We have noticed the PHP Fatal error triggered by the Event Espresso plugin.
Plugin Version: 5.0.10
Wordpress Version: 6.3.1
PHP Version: 8.1.24
mod_fcgid: stderr: PHP Fatal error: Uncaught TypeError: EE_Capabilities::map_meta_caps(): Argument #2 ($cap) must be of type string, null given, called in /httpdocs/wp-includes/class-wp-hook.php on line 310 and defined in /httpdocs/wp-content/plugins/event-espresso-core-reg/core/EE_Capabilities.core.php:317
Something is calling map_meta_cap on an empty string, as in no capability.
The error is from EE requiring a capability to be passed, but the cause is whatever is calling the above with no capability. That may well be EE itself or something else but the stacktrace will show what function called it to narrow this down.
Thank you for your message. I’ve enabled wp_debug as you suggested to check for the full stack trace. I’ll follow up with the stack trace and share the information with you on Tuesday (10/24). This will help us narrow down the issue and identify what’s causing the map_meta_cap error.
So the error is from Central Color Palette calling current_user_can() with no capability. Its essentially saying ‘Does the current user have the ‘nothing’ capability to do X’ on some requests, EE requires a capability is passed when hooking into the above and throws an error.
We are going to relax the typing within EE in the next version to work around this and prevent the fatal from happening, its technically not an issue from Event Espresso but as we are setting the type we throw the fatal.
Viewing 5 reply threads
The support post ‘PHP Fatal error: Uncaught TypeError: EE_Capabilities::map_meta_caps()’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.