Forums

[Plugin: NextGEN Gallery] Select Image or add album loading pinwheel stuck . P2 (1 post)

  1. techknm
    Member
    Posted 7 months ago #

    From this post: I saw it mark [Resolved] so I start a new thread here.
    Alex Rabe suggested to check json:

    http://wordpress.org/support/topic/plugin-nextgen-gallery-select-image-or-add-album-loading-pinwheel-just-stuck?replies=9#post-2408506

    My test returns on all installation return good result, but it still pinwheel.

    Always have error in log file when I try to select a gallery or album:

    [Sun Oct 30 13:21:02 2011] [error] [client 127.0.0.1] File does not exist: /var/www/wp/index.php/, referer: http://localhost/wp/wp-admin/admin-ajax.php?action=ngg_tinymce&ver=342-20110630200

    Finally I decided to do a fresh install from WP 3.2.1 with ONLY Nextgen (1.8.4) installed.

    After fresh install, I created one gallery and test. Problem still remain.

    After traced with Firebug, I decided to remove three / after index.php in wp-content/plugins/nextgen-gallery/admin/tinymce/window.php

    Orginial (1.8.4)

    <script type="text/javascript">
    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'); ?>/"
        });
    });
    </script>

    My modification:

    <script type="text/javascript">
    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'); ?>"
        });
    });
    </script>

    Then it works like charm. I'm not sure about side effect of this workaround as I have not checked though all related code of this plugin.

Reply

You must log in to post.

About this Topic