• Resolved Fee

    (@wdfee)


    Hi Marcus,
    the search form for the events list doesn’t work when locations are disabled. All searches show “no events”.
    In debug I get a deprecated warning: like_escape is deprecated (found in em-object.php line 161), should use $wpdb->esc_like() instead.
    But that’s not the solution yet, it still shows no events (after I replaced this call).
    I checked out the sql call of the output_grouped() function. It queries the location table – but this is empty if locations are disabled in settings.

    https://www.ads-software.com/plugins/events-manager/

Viewing 3 replies - 16 through 18 (of 18 total)
  • What version of PHP and mySQL are you using on the server where you can’t reproduce the problem?

    I have now removed search as it gives misleading results. Not a good situation.

    PHP 5.3.10
    MySQL 5.5.40

    But I don’t think that’s likely to be connected with this issue.

    Have you tried setting up a bran new test version on a dev site? That might allow you to pinpoint the exact point things stop working as they should.

    Resolved, but seems a bug.

    I was confused between the settings on my local host system and the live system.

    Setting default country to no default allows search to work.

    However, this seems to be bug. That setting should not break search.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Search doesn't work when locations are off’ is closed to new replies.