Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter Avinash

    (@avii)

    Not sure if it helps, but in console I see this error

    popup-maker-site.min.js?defer&ver=1.0:37
    Uncaught TypeError: Cannot set property ‘json’ of undefined

    Plugin Author Daniel Iser

    (@danieliser)

    Hmm, it seems that jquery-cookie.min.js is not loading at all. I noticed just a while ago that some hosts block the file named that way and plan to change the file naming in the next update later this week.

    I thought it may be that your theme or another plugin was loading jQuery cookie but I couldn’t find it loaded.

    Would it be possible to turn off your cacheing and minification plugin so that JS is not modified in any way for testing purposes?

    Thread Starter Avinash

    (@avii)

    At the moment, I am not using any minification plugin at all. Its a wordpress bare minimum install with theme plus 3-4 plugins. No w3 total or any other minify plugin.

    Thread Starter Avinash

    (@avii)

    I am not sure if it helps, but my VPS does have google pagespeed module installed.

    Plugin Author Daniel Iser

    (@danieliser)

    Hmm is it possible to disable that temporarily? I do see the pagespeed parameter on the JS urls.

    Thread Starter Avinash

    (@avii)

    I have just turned off the pagespeed module. Have a look

    Plugin Author Daniel Iser

    (@danieliser)

    Sorry for the delay, saw you made the pagespeed changes, can you add define(SCRIPT_DEBUG, true); to your wp-config.php file.

    That will prevent our scripts from using the minified versions and allow me to see exactly what line the error is being caused on.

    Thread Starter Avinash

    (@avii)

    just added define(‘SCRIPT_DEBUG’, true); as requested. Have a look

    Plugin Author Daniel Iser

    (@danieliser)

    Hey Avinash, Ok I tracked down the issue. It seems your theme isn’t properly enqueueing jQuery itself, which is causing 2 copies to load. Since our scripts load after the first, but before the second they run. But part of our scripts are told to wait for everything to be loaded first, those parts end up using the second copy of jQuery that is now loaded.

    Where this becomes more of a problem is when its like this

    jQuery
    jQuery Cookie
    Popup Maker
    jQuery

    Now when I call jQuery again jQuery cookie is no longer available as it was in the first jQuery that loaded.

    Check your themes header.php file, it may be listed there using a <script tag. It should be added using a built in WP function wp_enqueue_script.

    Thread Starter Avinash

    (@avii)

    Great.

    I checked the header.php function and found these two scripts being loaded.

    <!–[if lt IE 9]>
    <script src=”https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js”></script&gt;
    <script src=”https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js”></script&gt;
    <![endif]–>
    <?php wp_head(); ?>
    </head>

    Hopefully we can have a workaround someway as I have tried many plugins, but this only suits all my requirements.

    Plugin Author Daniel Iser

    (@danieliser)

    Hmm ok then, thats not it, try looking through your themes footer.php.

    They are loading there anyways shoulda had you start there.

    Thread Starter Avinash

    (@avii)

    just checked, nothing in footer.php.

    If you want, I can send u an admin access credentials of WordPress.

    Plugin Author Daniel Iser

    (@danieliser)

    Hey Avinash, sorry for the delay, you can send credentials to danieliser at wizardinternetsolutions.com

    Thread Starter Avinash

    (@avii)

    Just sent the admin credentials to ur email.

    Thread Starter Avinash

    (@avii)

    Have you received the credentials?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Not working’ is closed to new replies.