500 error triggered upon search
-
Hi,
We have a 500 server error that is triggered when doing a string search in the plugin. It only happens with some searches, not systematically. For example with “situ”.
I uninstalled all other plugins apart from WP Store Locator and weLaunch Framework, and switched to twenty twenty five theme. The bug persists.
I enabled the debug log and looked at it after triggering the 500 error. The problem comes from the class-wordpress-store-locator-public-ajax.php file on line 292:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/bae0db7a-7ed4-55fb-9f9c-8d48a72d64de/public_html/wp-content/plugins/wordpress-store-locator/public/class-wordpress-store-locator-public-ajax.php:292
I edited the php file accordingly and the error was successfully fixed (in a staging environment).
Can you have a look and see if that should be patched in a future update?
Thanks in advance.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.