• Resolved redconfetti

    (@redconfetti)


    When I’m viewing a gallery and click on the ‘Add Images’ button the popup div shows a preview of the file uploader, but the AJAX spinner image is stuck spinning.

    I checked the Javascript console in Chrome and I get the error regarding a failed request to GET https://www.example.org/wp-includes/js/jquery/ui/jquery.ui.widget.min.js

    I checked the WordPress files and it appears that the jQuery UI widget library is actually at /wp-includes/js/jquery/ui/widget.min.js, not jquery.ui.widget.min.js.

    I’m sure that this issue originates from your plugin because it occurs with your plugin and a grep I performed points out where you’re referencing these libraries with the incorrect path.

    $ grep -R "jquery.ui.widget.min.js" ./
    ./photo-gallery/filemanager/view.php:      <script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/ui/jquery.ui.widget.min.js"></script>
    ./photo-gallery/admin/views/BWGViewBWGShortcode.php:        <script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/ui/jquery.ui.widget.min.js"></script>

    I’ve fixed the paths in these files for all jQuery UI libraries and now the plugin is working properly for me.

    I don’t think there is any other plugin causing this issue. I’d recommend using wp_enqueue_script to load these libraries instead of using hardcoded paths.

    https://codex.www.ads-software.com/Function_Reference/wp_enqueue_script

Viewing 1 replies (of 1 total)
  • Sona

    (@support-web-dorado)

    Dear redconfetti,

    Thank you for you feedback. It is highly appreciated. Seems like you had an older version of the plugin, that’s why you were still facing the issue. It is resolved with the latest versions of the Photo Gallery. Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to upload images to gallery’ is closed to new replies.