Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1050418

    Hi,

    I have wordpress 5.0.2 and the plugin “disable gutenberg” active.

    Now I have noticed, that I cannot insert any image or gallery with the button above the standard editor.
    It does not insert any gallery (shortcode) and the images do not appear.

    In JS Console the following error is shown (note, that it seems that the right shortcode is generated in the first line):

    jquery.js?ver=1.12.4:2 Uncaught Error: Syntax error, unrecognized expression: [gallery ids="13023,13022"]
        at Function.fa.error (jquery.js?ver=1.12.4:2)
        at fa.tokenize (jquery.js?ver=1.12.4:2)
        at fa.select (jquery.js?ver=1.12.4:2)
        at Function.fa (jquery.js?ver=1.12.4:2)
        at Function.jQuery.find (jquery-migrate.js?ver=1.4.1:290)
        at n.fn.init.find (jquery.js?ver=1.12.4:2)
        at n.fn.init.jQuery.fn.find (jquery-migrate.js?ver=1.4.1:677)
        at jQuery.fn.init.n.fn.init (jquery.js?ver=1.12.4:2)
        at new jQuery.fn.init (jquery-migrate.js?ver=1.4.1:241)
        at jQuery.fn.init.n [as constructor] (jquery.js?ver=1.12.4:2)

    I cannot find any solution in the internet for that problem.
    I have also tried to disable all plugins and also to re-install the lates wordpress version again. Same issue.

    I have also tried to run the code from your forum to disable Gutenberg:

    // disable for posts
    add_filter('use_block_editor_for_post', '__return_false', 10);
    
    // disable for post types
    add_filter('use_block_editor_for_post_type', '__return_false', 10);
    

    instead of the plugin disable gutenberg or the alternate plugin Classic Editor.
    Same error all the time!

    Hopefully you can help me!

    Best Regards,
    Michael

    #1050421

    I have found the problem within the Plugin

    Profile Picture

    which JS code breaks the pic insert functionality

    So this case is solved!

    Thank you,
    Best Regards,
    Michael

    #1050524

    Hi Michael,

    Great, glad you found the problem and thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.