Hi there, thanks for reaching out.
I don’t think the issue is related to your version of PHP or WordPress, we are running the plugin in WordPress 6.4.2 and we’ve been testing all modern versions of PHP up to the most recent (8.3.0) to ensure compatibility, and it has been working flawlessly.
Do you have any custom code in your functions.php file, something that could be causing some interactions with Wp Store Locator?
You can always try to enable the setting “Enable compatibility mode” in the Wp Store Locator settings page, this sometimes helps.
Please let me know if any of the above makes sense to you.
Regards,
Thank you for the response. The functions.php is stock from the theme however, this is a network installation so that may make a difference I suppose….
My understanding is PHP 8.0 introduced some changes to error handling and reporting. If the plugin code is relying on keys that are not always guaranteed to be present, it can lead to these warnings. Looking at the code I believe it’s recommended to check that the key ‘address_format’ is set.
$address_format = explode( '_', $wpsl_settings['address_format'] );
with something like this
if (isset($wpsl_settings['address_format'])) { $address_format = explode('_', $wpsl_settings['address_format']);
Hi again, thanks for getting back.
Your input is very interesting, however we have been running the plugin always in the latest PHP version (8.3.0 as of today) and we’ve never come across that warning before, or at least we haven’t noticed it!
Having said that, I am not using the plugin in a multisite environment, but I doubt that would make any difference. I’ll double check my installation in case I we overlooked that warning, though!
Regards,