Support » Plugin: Shortcodes Finder » Syntax error, unrecognized expression

  • Resolved Marc Bernard

    (@luxxor)


    The shortcode finder plugin has a conflict with Modula plugin. When maintaining a Modula gallery (in admin), shortcodes-finder-admin.js runs into the following error:

    Uncaught Error: Syntax error, unrecognized expression: #!modula-general
        at Function.ea.error (jquery.js?ver=1.12.4-wp:2)
        at ea.tokenize (jquery.js?ver=1.12.4-wp:2)
        at ea.select (jquery.js?ver=1.12.4-wp:2)
        at Function.ea [as find] (jquery.js?ver=1.12.4-wp:2)
        at n.fn.init.find (jquery.js?ver=1.12.4-wp:2)
        at new n.fn.init (jquery.js?ver=1.12.4-wp:2)
        at n (jquery.js?ver=1.12.4-wp:2)
        at HTMLDocument.<anonymous> (shortcodes-finder-admin.js?ver=1.4.3:177)  <<<<
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
    • This topic was modified 3 years, 3 months ago by Marc Bernard.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Scribit

    (@scribit)

    Hi Marc and thanks for your report.
    Can you explain me better how to reproduce this conflict? I’ve activated the modula plugin (https://it.wordpress.org/plugins/modula-best-grid-gallery/), created a gallery with some media and inserted it in a page.
    Then I’ve used Shortcodes finder to search it and it has be found correctly both in “Find by shortcode” and “Find by content” pages, with no errors apparently.
    Maybe have you a demo site to test it?

    Thread Starter Marc Bernard

    (@luxxor)

    If you go back to your Modula gallery, the media you added before won’t be visible. Instead, the error I mentioned is raised. It works again after you deactivate shortcode finder.

    The Modula page contains several “[?]”, which your script might confuse for shortcodes.

    A possible solution might be to limit loading shortcodes-finder-admin.js to certain admin pages only.

    Plugin Author Scribit

    (@scribit)

    Ok, I’ve reproduced and corrected it in my development environment.
    Next week I will release it in version 1.4.5.
    Thanks again @luxxor

    • This reply was modified 3 years, 3 months ago by Scribit.
    • This reply was modified 3 years, 3 months ago by Scribit.
    Plugin Author Scribit

    (@scribit)

    Version 1.4.5 released just now.

    Thread Starter Marc Bernard

    (@luxxor)

    Tested. Works! Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Syntax error, unrecognized expression’ is closed to new replies.