• Resolved Louis Chance

    (@louischan)


    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Hi,

    wordpress-store-locator/public/class-wordpress-store-locator-public-ajax.php:‘ is not from the WP Store Locator plugin.

    You can see the folder / file structure that WP Store Locator uses here. Searching for ‘wordpress-store-locator‘ also returns to many results, so not sure where to get support for the one that you’re using.

    Thread Starter Louis Chance

    (@louischan)

    Hi @tijmensmit thank you for you swift reply and my apologies for the confusion, indeed this is another private plugin that is involved with the same name, and I thought it was yours (I’m not the one who built the website).

    I’ll get back to the site owner and see if that can be fixed with them, and will definitely suggest switching to your solution otherwise.

    Have a nice day,

    Louis

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

You must be logged in to reply to this topic.