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)
 * [7 months, 2 weeks 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 7 months, 2 weeks ago by [Arture B.V.](https://wordpress.org/support/users/arture/).

The topic ‘Fatal error inside plugin’ is closed to new replies.

 * ![](https://ps.w.org/mage-eventpress/assets/icon-128x128.png?rev=2252722)
 * [Event Booking Manager for WooCommerce – Sell Tickets, Event Registration, RSVP & Event Calendar](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: [7 months, 2 weeks ago](https://wordpress.org/support/topic/fatal-error-inside-plugin/)
 * Status: resolved