• Resolved themattylee

    (@themattylee)


    The plugin works fine on the front end of the site, but when searching for posts using the Search function in the WordPress dashboard the site throws a 500 server error for a few minutes.

    I’m wondering if this is something you’ve seen before and if there’s an easy fix for it. Barring that, I’m wondering if it’s possible to simply disable the features from within the Dashboard (and only apply them to searches performed on the front end of the site).

    Thanks!

    https://wordpress.org/plugins/search-everything/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey,

    thanks for reaching out! I have installed the Events Manager plugin (by Marcus Sykes) and it is working for me. Would it be possible to tell me which theme are you using?

    Looking forward to your reply,
    Petra

    Thread Starter themattylee

    (@themattylee)

    Hi Petra.

    I’m using a custom theme based on Bootstrap.

    Thread Starter themattylee

    (@themattylee)

    I tried resetting to Twenty Fourteen, but still get the same error. Doesn’t appear to be theme related.

    It may have to do with the use of Event Attributes (which are basically a form of Custom Field) that this plugin uses. You set them up on the Events Manager settings page. I’m thinking they may not be registering correctly perhaps?

    Would you mind checking? I’m also going to post on the Events Manager plugin help page to see if they can tackle it from their end.

    Hmmm…I have turned those on and added a couple of events and so on but still can’t get the 500 server error. Have you tried disabling the Events Manager plugin? And it works then? You could try out suggestions found here:
    http://askleo.com/whats_an_internal_server_error_and_how_do_i_fix_it/
    Let me know if Events Manager team has some suggestions to try out as well.

    All the best,
    Petra

    Thread Starter themattylee

    (@themattylee)

    The error only occurs when searching the events type from the Edit Events page of the WordPress dashboard. The searchbox works everywhere else on the site. So it’s only possible with the Events Manager plugin enabled. I couldn’t even test it if that plugin was disabled.

    No response yet from EM team.

    Oh, then we misunderstood each other. When you wrote: “The plugin works fine on the front end of the site, but when searching for posts using the Search function in the WordPress dashboard…” I was under the impression you were using that search above the “All posts”.
    But aside this I have re-tested the search on the events page and it still doesn’t break the site.
    Will try to think of something but to be honest I am running out ideas. Also, which settings have you modified in the Events Manager plugin? Any modification in that Performance Optimization, Styling Options,…?

    Best,
    Petra

    Thread Starter themattylee

    (@themattylee)

    Nothing changed in Performance Optimization or Styling Options. Event attributes are enabled, and I have two Event Attributes, as follows:

    #_ATT{more_text}{More Info >>}
    #_ATT{display_more}{yes|no}

    Is it possibly just a volume issue? This site has almost 1,300 events listed. I wouldn’t think that should be an issue, but I’m running out of ideas at this point.

    Thread Starter themattylee

    (@themattylee)

    Is there any way you can think of to disable the plugin just for that screen? Or even for the backend of the site entirely? I normally don’t like resorting to hacks like that, but in this case the project is just a favor so I can’t really justify putting much more time into trying to solve it.

    Hey,

    well…this should disable the plugin completely on “the back end” – go to “Plugins”-> “Editor”-> and in the search-everything.php file add
    if (basename( $_SERVER[“SCRIPT_NAME”] ) == “edit.php”) {
    return true;
    }
    in the function init() like so:

    function init() {
            if ( current_user_can('manage_options') ) {
                $SEAdmin = new se_admin();
            }
            // Disable Search-Everything, because posts_join is not working properly in WordPress-backend's Ajax functions
            //(for example in wp_link_query from compose screen (article search when inserting links))
            if (basename( $_SERVER["SCRIPT_NAME"] ) == "admin-ajax.php") {
                return true;
            }
    // disable search throughout dashboard Posts,Pages,Comments etc.
            if (basename( $_SERVER["SCRIPT_NAME"] ) == "edit.php") {
                return true;
            }

    Hope this helps, take care,
    Petra

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

The topic ‘Not playing nicely with Events Manager plugin’ is closed to new replies.