Title: Fatal error with PHP 8
Last modified: October 10, 2022

---

# Fatal error with PHP 8

 *  [MWM](https://wordpress.org/support/users/mike235/)
 * (@mike235)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-7/)
 * Hi,
 * I’m using version 3.12.1 with PHP 8.0.0 and I’m getting this error :
 * > PHP Fatal error: Uncaught ValueError: Unknown format specifier “m” in /home/
   > xxxx/wp-content/plugins/event-organizer/includes/event-organizer-register.php:
   > 631
 * Thank you for your help,
    Mike

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

 *  Thread Starter [MWM](https://wordpress.org/support/users/mike235/)
 * (@mike235)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-7/#post-16274881)
 * Hi,
 * Event Organiser still fails with PHP 8 and the latest 3.12.2 update. I get the
   same error as above. Can you look into that ?
 * Thank you for your help,
    Mike
 *  Thread Starter [MWM](https://wordpress.org/support/users/mike235/)
 * (@mike235)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-7/#post-16554098)
 * Here’s how to fix the error:
 * Edit `events-organiser/includes/event-organiser-register.php` and look for this
   bloc of code (around line 626) :
 *     ```wp-block-code
       $message = sprintf(
       '<h4>' . esc_html__( 'Enter a Google Maps API key', 'eventorganiser' ) . '</h4>'
       . sprintf(
       '<p>' . esc_html__( 'Google Maps now requires you register for an API key. If you wish to use maps on your site, %splease enter your key%s.', 'eventorganiser' ) . '</p>',
       sprintf( '<a href="%s">', esc_url ( admin_url( 'options-general.php?page=event-settings' ).'#google_api_key' ) ),
       '</a>'
       )
       )
       ```
   
 * Replace :
 * `%splease enter your key%s`
 * with :
 * `%s please enter your key %s`
 * Would be nice if the plugin author included this change in the next release.

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

The topic ‘Fatal error with PHP 8’ is closed to new replies.

 * ![](https://ps.w.org/event-organiser/assets/icon-256x256.png?rev=978123)
 * [Event Organiser](https://wordpress.org/plugins/event-organiser/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-organiser/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-organiser/)
 * [Active Topics](https://wordpress.org/support/plugin/event-organiser/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-organiser/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-organiser/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [MWM](https://wordpress.org/support/users/mike235/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-7/#post-16554098)
 * Status: not resolved