• Resolved yesbut

    (@yesbut)


    I have a very stripped back site using the free Modula gallery and the TwentyTwenty theme. The galleries display as expected on the front end, but recent updates either in WP core or the plugin cause the Modula block to fail when selecting a gallery. The block greys out and reads “This block has encountered an error and cannot be previewed.”

    Digging into the inspector I get a TypeError in react-dom.min.js, but I afraid I haven’t a clue what to do with the information:
    TypeError: jQuery(...).selectize is not a function

    Hope you can help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support beatrice12

    (@beatrice12)

    Hello @yesbut,

    Thank you for explaining!

    It might be an issue caused by a plugin or your theme.
    I recommend installing this plugin: https://www.ads-software.com/plugins/health-check/
    After you install and activate the above plugin it has a Troubleshooting mode which allows you to have a vanilla WordPress session, where all plugins are disabled, and a default theme is used, but only for your user – your visitors will still see the normal website.

    Go to its troubleshoot mode and only activate Modula and see if it works correctly with a default WordPress theme (Twenty Twenty-One for example) and no other plugins.

    Can you also let us know if you use the Modula block in a custom post type that you created?

    Please let me know how it goes and what you find!

    Warm regards,
    Beatrice.

    Thread Starter yesbut

    (@yesbut)

    Hi Beatrice,
    I’ve switched theme and tried default TwentyTwenty and TwentyTwentyOne, stripped out the plugins and tried the healthcheck: the only issues it has are standard for the Flywheel environment I have the site on, and nothing appeared in the troubleshooting.
    But I think you nailed it with the last comment: I can trigger the Modula gallery select on the main pages & posts, but it fails on a custom post type. Are you aware of a parameter I’ve missed or an arg that needs adding to register_post_type?

    However despite that, something is still off on the main pages/posts – the ‘Search for a Gallery’ select only displays five galleries in the drop down and doesn’t trigger a scroll initially. I can only access the full list (triggering the scrollbar) by adding a letter to the search box and then deleting it. Then, when a gallery is selected it loads in as a shallow strip with an inline style of height:8px.
    Obviously I can live with these secondary issues (as it still looks great on the front end!) but it feels like it could be a related js initialising issue.

    Thanks for your help,
    Sam (YesBut)

    Plugin Support beatrice12

    (@beatrice12)

    Hello @yesbut,

    Unfortunately, it is a conflict between Modula and Custom Post Type UI. There is an open ticket with our development team regarding this and we are working on it. Here is the ticket so you can see the progress: https://github.com/WPChill/modula-lite/issues/626

    Warm regards,
    Beatrice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Modula block fails on selecting a gallery’ is closed to new replies.