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.