• 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

    (@mike235)

    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

    (@mike235)

    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) :

    $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.