• Resolved webofpeace

    (@webofpeace)


    I installed the plugin and used almost default options. but when I try to see the gallery, it shows a blank page (header and footer is loading), but no gallery. and in console I can see following message.

    Uncaught TypeError: jQuery(…).modulaGallery is not a function.

    why is this? how can I fix this?

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hello @webofpeace,

    Thank you for reaching out to us!
    Are you using any page builder plugin or Autoptimize?
    Could you please deactivate all of your plugins except Modula for a couple of minutes and see if this fixes the issue?
    If yes, then reactivate them one by one until you find the culprit.

    Best wishes,
    Mihaela

    Thread Starter webofpeace

    (@webofpeace)

    Im only using ACF and contact form 7 and Flamingo. even akismet is disabled.

    Thread Starter webofpeace

    (@webofpeace)

    I did as you said and error is still the same. how can I fix this?

    mplusb; for future reference, when Autoptimize is used, you can disable it on a per-request basis by adding ?ao_noptimize=1 to the URL.

    hope this helps future debugging,
    frank (ao dev)

    Thread Starter webofpeace

    (@webofpeace)

    also I’m not using Autoptimize or similar plugin or any page builder plugins

    Could you also change the theme, @webofpeace ?
    Try replacing it with Twenty Seventeen please.

    Thank you,
    Mihaela

    P.S.: Thank you, @optimizingmatters! It helps!

    Thread Starter webofpeace

    (@webofpeace)

    Hi,
    if Im using custom theme, should I add something to my functions.php file? it seems working in wp default theme but throws an error in mine. can you help me fix it please?

    Hello @webofpeace,

    In order to duplicate this issue and look for a solution we are going to need your custom theme.
    Could you please send that to me?
    You can send it using the form here: https://wp-modula.com/contact-us/

    All the best,
    Mihaela

    Thread Starter webofpeace

    (@webofpeace)

    I dont have the permission to do so. but it occurs in this section.
    when I put the shortcode and your plugin renders some html with inline scripts.

    <script type='text/javascript'>jQuery('#jtg-4544').modulaGallery({resizer: 'https://localhost/mytheme/wp-content/plugins/modula-best-grid-gallery/image.php',margin: 10,enableTwitter: false,enableFacebook: false,enablePinterest: false,enableGplus: false,randomFactor: 0.5,});</script>

    this is where I get the peoblem. it says modulaGallery is not a function.
    I’ve added jquery 3.3.1 from jquery cdn in my functions file. though I remove it then my JS won’t work. is there any workaround you can help me with?

    Thread Starter webofpeace

    (@webofpeace)

    ps:
    even trying this line in console gives the same error

    jQuery('#jtg-4544').modulaGallery({alert('abc')});

    Hello @webofpeace,

    The script you sent is the one that loads the gallery. For it to work you need to have in your header included the script jquery.modula.js
    From what I can tell that is the problem. Somehow the shortcode for Modula is not added in WordPress’ editor or there are other conflicts that stop that script from being added in the header.

    Without your theme and without ways to inspect your theme’s code we cannot know where the issue is unfortunately.

    Thank you,
    Mihaela

    Thread Starter webofpeace

    (@webofpeace)

    I tried including jquery.modula.js in my functions.php file. it removes the console error, but gallery is not loading still. HTML and scripts are the same. I even tried removing all scripts except jquery from my functions file. didn’t work.

    Is there anything you can do? in what files in my theme I need to check/debug? any help will be appreciated

    Thread Starter webofpeace

    (@webofpeace)

    I’v edeleted old gallery and created a new one. it’s working fine now. thanks. I think including plugin’s js file in functions.php loaded the js file again ana it fixed the things. thanks a lot…

    Great job, @webofpeace!
    Happy to hear it works now!

    Have an awesome day ahead,
    Mihaela

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Slider is not showing and display jQuery error’ is closed to new replies.