WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
V 2.0.57: Plugin jQuery Lightbox does not work anymore (23 posts)

  1. gerobe
    Member
    Posted 12 months ago #

    Since update from Version 2.0.40 to 2.0.57 the plugin wp-jquery-lightbox http://wordpress.org/extend/plugins/wp-jquery-lightbox/ doesn't work anymore. All links are normal image-links without any lightbox effect.

    https://wordpress.org/plugins/nextgen-gallery/

  2. photocrati
    Member
    Plugin Author

    Posted 12 months ago #

    @gerobe - Thanks for this topic as well, you might want to add this to the Bug Report I suggested in the other topic.

    Thanks!

    - Cais.

  3. EndruBoy
    Member
    Posted 12 months ago #

    I have the same issue here, is there any workaround for this or I should use the previous version until this is fixed?

  4. socki03
    Member
    Posted 12 months ago #

    It appears as though if you have enqueued a version of jQuery in your theme, and have 2.0.57, no jQuery loads. This is a pretty big issue for me.

    Quick solution is to comment out your jQuery enqueue lines in the functions file, but that shouldn't be the long-term solution...

  5. EndruBoy
    Member
    Posted 12 months ago #

    Thanks. I think I will rather continue using the previous version until the next update. I fancy a lot of features in the new one tho.

  6. photocrati
    Member
    Plugin Author

    Posted 12 months ago #

    @EndruBoy - I would recommend you own topic as @gerobe has a few topics they are involved with and this would make me think you may not have the same exact same issue.

    @socki03 - Thanks for the suggested work-around but I would suggest taking that idea to the theme author if it is the functions.php template file that requires that modification.

    - Cais.

  7. EndruBoy
    Member
    Posted 12 months ago #

    Well my issue is that after update, the gallery css loads nice (so it looks the same as before) but on mouseover I no longer have that tiny zoom icon and after clicking one of the pictures it loads on a blank page without any lightbox effect.

    I have a basic theme witten by me, no fancy features. I'm thinking you maybe changed where the jQuery loads on a page and maybe I missed something there and it can't find that point. Is it makes any sense?

  8. photocrati
    Member
    Plugin Author

    Posted 12 months ago #

    @EndruBoy - Can you share a link to your site so we can get a better idea of what is going on?

    Thanks!

    - Cais.

  9. photocrati
    Member
    Plugin Author

    Posted 12 months ago #

    @socki03 - I may have misunderstood your comment ... are you saying all instances of jQuery on your site are not being enqueued?

    If that is the case, we would really appreciate a Bug Report (http://www.nextgen-gallery.com/report-bug/) with your site specifics so we can get a handle on what might be happening ... a link to your site may be helpful but may not offer enough information.

    We would most likely need a set of log in credentials and may also need FTP access to your WordPress installation as well, please include those with the Bug Report.

    Thanks!

    - Cais.

  10. EndruBoy
    Member
    Posted 12 months ago #

    @photocrati - I have sent you a link to my website on your contact form at photocrati.com.
    I have reinstalled the previous version of NextGen Gallery because there are important pages on my websites which uses the plugin. But if you can't figure out what is wrong I can reinstall the new one for a short time period just write to me.

    Yet another idea: maybe it's because I have installed my WP on a subfolder and using the http base tag to reach the css and other elements (because I have html pages using the same css)?

  11. socki03
    Member
    Posted 12 months ago #

    Bug reported.

    To clarify: The jQuery fails to enqueue at all using the wordpress enqueue script functions (wp_deregister_script, wp_register_script, wp_enqueue_script) when paired with the 2.0.57 version of this plugin. Everything else enqueued in this way shows up, but jQuery does not.

  12. photocrati
    Member
    Plugin Author

    Posted 12 months ago #

    @socki03 - Thanks for the follow up and the Bug Report. I responded to it a short while ago.

    All - If you are experiencing similar issues of jQuery not being defined or not being enqueued then please try our most recent beta we just released earlier today. You can download it from this page: http://www.nextgen-gallery.com/nextgen-gallery-latest-beta/

    It would also be greatly appreciated if you do test the beta to correct this particular type of jQuery issue that you let us know if it worked ... or if it did not.

    Feel free to respond here or contact us via our Bug Reports or Contact forums:

    * http://www.nextgen-gallery.com/report-bug/
    * http://www.nextgen-gallery.com/contact

    Thanks!

    - Cais.

  13. photocrati
    Member
    Plugin Author

    Posted 12 months ago #

    @gerobe - This latest beta (2.0.57.1) also has a specific fix targeted at the jQuery Lightbox, please let us know if it helps with this particular issue you were seeing as well.

    Thanks!

    - Cais.

  14. EndruBoy
    Member
    Posted 12 months ago #

    I've installed the beta but the result is still the same. And I've also noticed that indeed no jQuery loads at all at any of my pages (not just where gallery is used). I know this because I've a plugin called Lazy Load which shoud load images only when the they showed on the monitor and I only see blank images if it's activated. If I deactivate it images appear correctly but the gallery lightbox still not working.

    Also if I deactivate all other plugins and use the default css for tumbnails it still doesn't work.

  15. photocrati
    Member
    Plugin Author

    Posted 12 months ago #

    @EndruBoy - I'm thinking you should have started your own topic from the beginning and would still recommend doing so going forward, but as it is you may want to submit a Bug Report as suggested earlier in the thread to other so we can try to help you sort this out.

    We will need log in and FTP credentials to your WordPress installation as well, please include those with the Bug Report.

    Thanks!

    - Cais.

  16. Steve
    Member
    Posted 12 months ago #

    The problem lies in the following lines: 336-338 in nggallery.php, REMOVE them.

    if (isset($wp_scripts->registered['jquery'])) {
            $wp_scripts->registered['jquery']->src = FALSE;
        }

    If jQuery is registered, set the source to FALSE? Ironically, the function that this set of code is in, is called "fix_jquery()". At any rate, there is a built in function "wp_script_is()".

    if(!wp_script_is( 'jquery', 'registered'){
         wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', false, '1.11.0', true );
         wp_enqueue_script('jquery');
    }
  17. mweichert
    Member
    Posted 12 months ago #

    NGG is very popular and therefore used with a wide variety of third party plugins and themes. Some plugins and themes decide to use their own version of jQuery. That isn't necessarily a problem if the author decides to do that correctly by enqueuing the same version of jQuery but would like to load jQuery from a CDN. But it does become a problem when a third-party plugin/theme overrides to enqueue a different version of jQuery that changes the API interface such as what happened with jQuery 1.9 over 1.8. When that happens, things break. If you look at the definition of wp_deregister_script(), you can see that WP had to do it's best to stop users from specifying their own jQuery versions in WP-Admin. Although they allow it on the front-end, they discourage it.

    It would be very difficult for us, if not practically impossible, to determine if a particular plugin or theme is overriding the bundled version of jQuery for good reason. In any case though, if a plugin/theme needs a custom jQuery version they should enqueue it as a different handle, such as 'jquery-custom', rather than override the 'jquery' handle WP provides.

    --

    The fix_query() method in NGG resets the 'jquery' handle back to what WordPress shipped with. That is, the 'jquery' handle should have no 'src' attribute but instead have 'jquery-core' as a dependency. The 'jquery-core' handle should have a src of '/wp-includes/js/jquery/jquery.js'.

    Resetting the handle back to how WP intended seems to resolve most of the cases we find, though there will be cases where it doesn't work. It's a very difficult problem to resolve in a general way due to the wide matrix of possible plugins/themes that NGG could be installed alongside. If there's a better way of handling this, we're open to suggestions.

    For the cases in which resetting the 'jquery' handle back to what WP shipped with doesn't work, our support staff will do their best to help determine what the problem might be and relay any details back to the developers for a solution. Your assistance and co-operation is much appreciated. Our goal is to be widely-compatible as possible.

    Thanks,
    Mike

  18. jmcollin92
    Member
    Posted 12 months ago #

    Same for me : after updating http://clouderial.com is broken !

    Many thanks to @Steve for your solution that works for me... You save my day and my site. Hope that an official fix will be soon available.

    Clouderial's Team

  19. photocrati
    Member
    Plugin Author

    Posted 12 months ago #

    @jmcollin92 - Although @Steve's work-around may be solving your initial issues with this, I would recommend updating to our latest beta version which takes into account much more than what Steve is suggesting.

    See this page for more details: http://www.nextgen-gallery.com/nextgen-gallery-latest-beta/

    Thanks!

    - Cais.

  20. miranda9109
    Member
    Posted 12 months ago #

    Why do you have to break our sites every update? Why?

  21. wizontheweb
    Member
    Posted 12 months ago #

    I am having the same problem. Am using the PullOut Widget plugin, which worked before I loaded Nextgen onto the site. If I disable nextgen then it works again. Have just uploaded the new beta version as recommended above must no joy I'm afraid.
    Thanks Helen

  22. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @wizontheweb - As you are referring to a different issue you should start your own topic.

    Thanks.

    - Cais.

  23. EndruBoy
    Member
    Posted 11 months ago #

    @wizontheweb - I'm not so sure it's not the same issue, it debends. If you experiencing that no jquery loads, so not just only 1 plugin is broken that uses jquery and NextGen lightbox not works eighter then I'm pretty sure it's the very same issue.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags