Page 1 of 1

Shortcode for secure downloads not working

PostPosted: January 5th, 2012, 6:17 am
by Michelle
Hi! Can anyone tell me why shortcodes to download files in the secure area aren't working for me? I'm trying to access them from a Specific Post/Page page.

I have uploaded files to subfolders in the s2member-files folder and then on a Specific Page I've entered

<a href="[s2File download="class01/resources.pdf" download_key="true" /] ">Class Resources.pdf</a>

and I tried:
<a href=[s2File download="class01/resources.pdf" download_key="true" /] >Class Resources.pdf</a>


But when I view the page either directly from WordPress (view page) or from a generated access link to the Specific Page nothing is shown.

But, if I install the PHPExecution plugin and use this link, it works:

<a href="http://example.com/?s2member_file_download=class01/resources.pdf&s2member_file_download_key=<?php echo s2member_file_download_key("class01/resources.pdf"); ?> ">Class Resources.pdf</a>

Any ideas would be greatly appreciated as I'd rather use the shortcode if possible!

Thanks

Re: Shortcode for secure downloads not working

PostPosted: January 5th, 2012, 8:43 pm
by Raam Dev
That's strange! Are your PayPal Button shortcodes working fine?

Have you tried disabling all your plugins (except s2Member) to see if one of them is causing a strange conflict? (If temporarily turning off all plugins is too much, you can use Plugin Organizer to disable all plugins on just one page).

Re: Shortcode for secure downloads not working

PostPosted: January 6th, 2012, 12:24 am
by Michelle
Thanks Raam.

Yes the PayPal shortcodes do appear to be working as the payment process goes through as expected and I'm returned to the Specific Page.

I'm not sure if it's related, but I'm having problems with WP Affiliate and I believe that relies on shortcodes. Details here: viewtopic.php?f=4&t=16695&p=59772#p59772

As for plugin conflicts - well that's going to be fun to work through! This is a website that was originally developed by someone else and there are dozens of plugins installed.

Re: Shortcode for secure downloads not working

PostPosted: January 7th, 2012, 7:04 pm
by Raam Dev
Hi Michelle,

Unfortunately disabling plugins is going to be your best bet. The most likely culprit is a conflicting plugin. If that's going to be way too obtrusive, you could always continue using the PHP Execution solution.

Re: Shortcode for secure downloads not working

PostPosted: January 9th, 2012, 7:44 am
by Michelle
Following up on this in case anyone else has the same issue.

The problem was caused by a conflict with the Broken Link Checker plugin. Deactivated that and now my shortcodes are working.

Integration with WP Affiliate still isn't working though :(

Re: Shortcode for secure downloads not working

PostPosted: January 9th, 2012, 6:31 pm
by Raam Dev
Thank you for the update and for letting us know which plugin was incompatible. :)

Regarding WP Affiliate, have you tried searching through here? If you still can't get it working, please start another thread explaining what's going on and we'll see how we can help.