• Resolved Paul Chauvet

    (@chauvetpnewpaltzedu)


    When trying to add an existing “NextGEN Gallery” to a page, I can click the “Add NextGEN Gallery” button and the window comes up that allows you to select the gallery to add.

    Clicking “Select or enter gallery” within the Gallery tab, “Select or enter album” in the Album tab, or “Select or enter picture” in the picture tab all hang (the swirling circle comes up but nothing happens).

    It used to work but I haven’t checked it in a while (so I’m not sure if it is 3.2 that broke it or an earlier update). I have the latest stable version of NextGEN gallery installed. This is a network site installation, not a single site. The site is running in lighttpd not apache.

    I don’t see anything in the error logs related to this.

    Anyone have any ideas about this? Your advice or suggestions would be much appreciated.

    – Paul

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

    (@chauvetpnewpaltzedu)

    Switching temporarily from lighttpd to apache didn’t have any impact – the problem continues – so I don’t believe that is related.

    Thread Starter Paul Chauvet

    (@chauvetpnewpaltzedu)

    The update to 3.2.1 and the plugin update to match it fixed this issue.

    I had this same error on one of the sites I run. Unfortunately, upgrading to WordPress 3.2.1 and updating to the current stable release of Next-Gen Gallery (1.8.2) did not fix it like Paul Chauvet.

    However, I was able to fix it. The issue came about that the site uses a different home page than the standard wordpress home page (to allow the blog and custom post types to have similar URLs).

    I was able to fix it by changing /wp-content/plugins/nextgen-gallery/admin/tinymce/window.php from this code:

    jQuery(document).ready(function(){
        jQuery("#gallerytag").nggAutocomplete( {
            type: 'gallery',domain: "<?php echo home_url(); ?>/"
        });
        jQuery("#albumtag").nggAutocomplete( {
            type: 'album',domain: "<?php echo home_url(); ?>/"
        });
        jQuery("#singlepictag").nggAutocomplete( {
            type: 'image',domain: "<?php echo home_url(); ?>/"
        });
    });

    to this code:

    jQuery(document).ready(function(){
        jQuery("#gallerytag").nggAutocomplete( {
            type: 'gallery',domain: "<?php echo site_url(); ?>/"
        });
        jQuery("#albumtag").nggAutocomplete( {
            type: 'album',domain: "<?php echo site_url(); ?>/"
        });
        jQuery("#singlepictag").nggAutocomplete( {
            type: 'image',domain: "<?php echo site_url(); ?>/"
        });
    });

    Correctly using the site_url() function of WordPress instead of the home_url() function

    @sidtheduck
    DUDE!! that worked perfectly!!! Thanks a ton!

    @corbanraun
    Glad it worked for you!

    I took a look through the changes that Alex Rabe did for the NextGen Gallery and he purposefully changed from site_url() to home_url() for this release. However, I did file a bug ticket to change from home_url() to home_url(‘index.php’) which specifies the actual WordPress file so that this should work correctly in all situations. He has made the changes to the code core and it should be in the next release.

    To test if this fix works for your system, change the code to:

    jQuery(document).ready(function(){
        jQuery("#gallerytag").nggAutocomplete( {
            type: 'gallery',domain: "<?php echo home_url('index.php'); ?>/"
        });
        jQuery("#albumtag").nggAutocomplete( {
            type: 'album',domain: "<?php echo home_url('index.php'); ?>/"
        });
        jQuery("#singlepictag").nggAutocomplete( {
            type: 'image',domain: "<?php echo home_url('index.php'); ?>/"
        });
    });

    if not, there may need to be some additional changes to the core (or to your site). My site works with the new code as well, so please test it out on your system.

    Thanks again to Alex Rabe for NextGen Gallery and for the quick response to bug tickets!

    Hello,

    I’ve tried with tish patch, but doesn’t works for me (as above, the swirling circle comes up but nothing happens).

    I’m running wp 3.2.1 *multisite*

    Do you have any suggestions?
    Thank you in advance!

    @mattcav,

    Didn’t realize you ran multisite! ??
    If you use site_url(), do you have access (or want access) to all images and galleries of all blogs associated with you multisite installation? If so, site_url() would be the way to go, but if not, network_home_url() might be the way to go. I’m not positive on the separation there as I do not have multisite to test in, but you may want to test both ways to see if it makes a difference and what you have access to. If it turns out that site_url is the way to go, we should try to report the tests to the NextGen bug report as it works either way on my system. Not sure how much has been done to make NextGen friendly with multisite.

    @sidtheduck,

    thank you for you reply!
    Well, my goal is to get all the galleries from a site available on the dropdown menu in the backend of the site. So NOT all the galleries in the network, just galleries from the site you’re posting.

    Of course I’ve tried to use network_home_url() and network_site_url(), but nothing happened.

    About your link for a NGG friendly multisite: thank you so much, seems very interesting for a loto of things.

    I’m having the same issue…I tried both code options above and still am getting the spinning wheel….any help would be much appreciated

    https://stylemom.com

    Still no solution for this problem.

    I’ve got a test environment (using another domain, same theme, same plugins, same config) and there Nextgen Gallery works like a charm.

    Differences? my prod-environment is using SUBDOMAIN structure; test-environment uses SUBFOLDERS structure.

    Does it generates the problem? in tinyMCE/window.php using home_url() returns blog’s url for both, and the upload scheme it’s just the same.

    Someone can help? Thanks a lot.

    I’ve just updated to 1.8.3, but the problem still here.

    Sorry to hear that, mattcav. I don’t have access to a subdomain structure, but I’ll try to set up a test environment to do so. I’ll keep to posted to let you know if I find out anything.

    Thank you so much Sidtheduck. Now I’m working on it with Alex Rabe: I hope to find a solution and post it here for all.

    SOLVED!

    it was a conflict with SuperCache Plugin.

    NextGen Gallery works fine, do the request in the right way, but, with the conflict, the output was something like:

    <!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->[{"id":"1","label":"1 - gallery-name","value":"gallery-name"}]

    I hope can be useful for other people experiencing my situation.

    NG Gallery + WP multisite subdomain = works fine!

    Hi everyone,
    i have the same problem: the swirling circle comes up but nothing happens.
    Wordpress 3.2.1
    NextGen Gallery 1.8.3
    I tried both code options above and still am getting the spinning wheel.
    Any idea?
    Thanks

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Page hangs at "Select or enter gallery"’ is closed to new replies.