I need to offer a zip file download [to registered users] on every post, containing all the images attached to the post. The solution provided in this thread works well for the purpose, although it did not work in old version of PHP 5.2 due to a
namespace syntax in the first line of the plugin code -
I tested the plugin offered in the thread on my localhost with wordpress 3.6.1 installed with this line of code in single.php
<?php echo do_shortcode('[gallery]'); ?> which offers a nice zip-download link 'Get as Zip', so far so good. But, now when I installed the same plugin on my live site which also runs on latest wp 3.6.1 it displayed a link as expected but the link does not prompt a zip-download and when clicked just refreshes the page. Earlier the plugin also displayed an unexpected native gallery of the images attached to post which was promptly solved by @cybnat.
ENVIRONMENT : My live site uses PHP 5.3.27 and localhost is a WAMP on windows 7 and uses PHP 5.3.1. I have tested in latest firefox, chrome and safari browsers, works as expected on localhost and not on live site. I changed the theme into default twenty-thirteen
( tried it inside and outside the loop ) and also disabled all the other plugins, no change in result. Firebug console displays
http://website.com/wp-admin/admin-ajax.php 200 OK on clicking the link. In the view source of live site js is loaded as expected, here is the print.
UPDATE : Following an advice below I upgraded my localhost wp install to 3.6.1 and have ruled out the possibility of any issue due to a difference in wp versions. The plugin still works as expected and offers a zip download link on click while tested in local environment. The issue that remains is that on live server the link does not prompt a zip-download instead just refreshes the page. Although I am continuously testing and in every way I can, a little help or a hint would be greatly appreciated.
**Title and content of the question are being adjusted in accordance to latest feedbacks and situation. If you may, kindly take a look at the plugin code at github and let me know if this could be solved or correct me if I am wrong anywhere. Also let me know if you feel that the question should be asked in some other forum.