Support » Plugin: StaffList » Searching in Admin page doesn’t work

  • Resolved tsic

    (@tsic)


    Hello,

    When I search in Admin page, I get a blank page.
    Here is the web console return :
    jQuery(…).sortable is not a function. –> stafflist_admin.js:110:5
    There is also a reference to this file –> ../wp-admin/load-scripts.php:2:27444

    WordPress version : 5.1

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author ERA404

    (@era404)

    Hello @tsic,

    It’s likely one of your [other] plugins, or the theme itself, is producing a javascript fault, halting all javascript on the page. I would suggest that you try disabling plugins and re-enable them one-by-one to determine the source of the javascript issue. You can also look in your browser’s developer console for the first occurrence of a javascript problem, to trace that back to the plugin.

    Fondly,

    ERA404

    Thread Starter tsic

    (@tsic)

    Hello,

    thanks for answering.
    I tried with all plugins deactivated with no luck.
    here is the complete return of console but I don’t know how to handle this

    https://i.imgur.com/kCfSUl4.png

    Plugin Author ERA404

    (@era404)

    Hello @tsic

    Please send us a message through our contact form and we can look into this offline:
    http://www.era404.com/contact/

    Thanks

    I’m having the same problem with a fresh install with no other plugins. Have you tested the plugin with WordPress 5.11, maybe the new WP version breaks the plugin JS?

    * 5.1.1

    Plugin Author ERA404

    (@era404)

    Hello @tonto24

    Please send us a message through our contact form and we can look into this offline:
    http://www.era404.com/contact/

    Thanks

    Plugin Author ERA404

    (@era404)

    Hello @tsic and @tonto24

    It seems servers without multibyte string functions (installed) were stopping the page load. We’ve put in a condition to gracefully fallback to the standard functions in these cases, in StaffList version 2.5.9.

    Please let us know if this resolves your issue.

    ERA404

    Hey, that didn’t fix it for me but I had a look at the stafflist_admin.js file and changed line 50 from jQuery(“#stafflist_new”).focus(function() { to jQuery(“#stafflist_new”).click(function() { and that fixed adding records for me. With the sortable error, I can’t see jQuery UI being loaded anywhere, maybe it’s not a default in WordPress but your install has another plugin using it?

    Just tried loading jQuery ui in stafflist.php on line 105 with wp_enqueue_script(‘jquery-ui-sortable’); and sortable’s working now

    Thread Starter tsic

    (@tsic)

    hello @tonto24

    can you open a new thread ?

    My problem is solved and I want to mark it as such.

    thanks again to @era404 !

    @tsic it would be better if the updates got included into the plugin code by @era404 (if they don’t break something else) as then future updates wouldn’t revert back to the version without them.

    Thread Starter tsic

    (@tsic)

    @tonto24 I don’t kwow what are you talking about.
    Changes were made in the plugin code and released as an update by @era404 .

    ah sorry, their updated version didn’t work for me and I had to hard code in fixes. I thought that’s what you were referring to

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Searching in Admin page doesn’t work’ is closed to new replies.