Title: Fatal error inside plugin
Last modified: January 6, 2026

---

# Fatal error inside plugin

 *  Resolved [Arture B.V.](https://wordpress.org/support/users/arture/)
 * (@arture)
 * [5 months ago](https://wordpress.org/support/topic/fatal-error-inside-plugin/)
 * We have discovered a fatal error inside your plugin: Kritieke Uncaught TypeError:
   array_key_exists(): Argument #2 ($array) must be of type array, string given 
   in wp-content/plugins/mage-eventpress/inc/MPWEM_Event_List.php:59
 * We now have simple fix this with this code inside the MPWEM_Event_list.php on
   rule 60. Can you add this to the next release please.
 * $event_list_setting_sec=MPWEM_Global_Function::data_sanitize( get_option( ‘event_list_setting_sec’));
 *     ```wp-block-code
                       //  Force array (PHP8-safe)
                       if ( ! is_array( $event_list_setting_sec ) ) {
                           $event_list_setting_sec = [];
                       }
       ```
   
    -  This topic was modified 5 months ago by [Arture B.V.](https://wordpress.org/support/users/arture/).

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

 * ![](https://ps.w.org/mage-eventpress/assets/icon-128x128.png?rev=2252722)
 * [Event Booking Manager for WooCommerce](https://wordpress.org/plugins/mage-eventpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mage-eventpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mage-eventpress/)
 * [Active Topics](https://wordpress.org/support/plugin/mage-eventpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mage-eventpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mage-eventpress/reviews/)

 * 0 replies
 * 3 participants
 * Last reply from: [Arture B.V.](https://wordpress.org/support/users/arture/)
 * Last activity: [5 months ago](https://wordpress.org/support/topic/fatal-error-inside-plugin/)
 * Status: resolved