• Resolved ixray

    (@ixray)


    I have this plugin up and running smoothly except for one very strange bug:

    I cannot enable the “search form on events page” option. Whenever I set this to “yes”, it is overwritten on the next page refresh.

    I can see that the “dbem_events_page_search_form” field is empty in my database. If I manually set this to “1” it is again emptied on the next page refresh.

    On a related note, the same is true for the “dbem_search_form_submit” field.

    Do you guys have an idea what might be going on here?

    https://wordpress.org/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Which version of Events Manager and WordPress are you using?

    Thread Starter ixray

    (@ixray)

    The latest public versions of both Events Manager and WordPress.

    Something seems to delete the dbem_events_page_search_form entry with every page refresh. If I add an entry named dbem_events_list_search_form (or anything else, really) and modify em-events.php accordingly it works like a charm. Of course, modifying EM’s core files is a bad solution.

    As a work around for now I am adding the [event_search_form] shortcode to the events page.

    Thread Starter ixray

    (@ixray)

    Here’s another option field that gets overwritten with the default value on every refresh:
    dbem_location_event_single_format

    Seeing that other options are saved correctly I don’t really understand what is going wrong here.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    just to narrow down the problem and help us debug the issue is it possible to try the following temporarily:

    – deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    – switching to the default theme to rule out any theme-specific problems

    Thread Starter ixray

    (@ixray)

    After hours of digging in EM’s code I have found the problem:

    For whatever reason the dbem_version field in my database was set to “5,55” (with comma) instead of “5.55”. So with each page refresh, em-install.php (which includes various version checks) would write the default values into the database.

    Manually setting dbem_version to 5.55 fixed this.

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

The topic ‘Search form option not working’ is closed to new replies.