WordPress.org

Ready to get started?Download WordPress

Forums

s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members)
Advanced Download Restrictions 503 problem (6 posts)

  1. pakhanuk
    Member
    Posted 2 months ago #

    Hi guys,

    Help!

    I have been trying to setup an advanced download restriction for a non member purchase for file access.

    I've tried 2 ways as below but keep getting a 503 invalid key:

    "http://www.ukulelerhythms.com/?s2member_file_download=Ukulele%20Rhythms%20Magazine%20Issue%202%20PC.pdf&s2member_file_download_key=<?php echo s2member_file_download_key("Ukulele%20Rhythms%20Magazine%20Issue%202%20PC.pdf"); ?<img alt="Ukulele Rhythms Magazine Issue 2 Cover" src="http://www.ukulelerhythms.com/wp-content/uploads/2014/02/Issue-7-coverpage-724x1024.jpg" width="260" height="350" />"

    "http://www.ukulelerhythms.com/?s2member_file_download=Ukulele%20Rhythms%20Magazine%20Issue%202%20PC.pdf&s2member_file_download_key=[s2Key file_download="Ukulele%20Rhythms%20Magazine%20Issue%202%20PC.pdf" /]<img alt="Ukulele Rhythms Magazine Issue 2 Cover" src="http://www.ukulelerhythms.com/wp-content/uploads/2014/02/Issue-7-coverpage-724x1024.jpg" width="260" height="350" />"

  2. Cristian Lavaque
    Member
    Plugin Author

    Posted 2 months ago #

    But just the download file without the key while you're logged in works fine? http://www.ukulelerhythms.com/?s2member_file_download=Ukulele%20Rhythms%20Magazine%20Issue%202%20PC.pdf

    Well, 503s make me think of mod_security. Check if it's not what's causing your trouble. http://www.s2member.com/kb/mod-security-random-503-403-errors/

  3. pakhanuk
    Member
    Posted 2 months ago #

    Hi Cristian- the download file without the key while logged in works fine- I've already had host admin whitelist the s2member entries mod_security but either I am getting the 403 invalid key error or, when I use the full shortcode, bring me back to the same (download) page.

    The full php code version doesn't work at all- I am running with Exec-PHP WYSIWYG which is going to cause problems with PHP code in the editor, but with the shortcodes, it is generating a dynamic link, just with the problems above.

  4. Cristian Lavaque
    Member
    Plugin Author

    Posted 2 months ago #

    Hmm... If you haven't yet, could you please do these? http://www.s2member.com/kb/common-troubleshooting-tips/

  5. pakhanuk
    Member
    Posted 2 months ago #

    Hi Christian,

    No luck on the plugins or theme. The only thing the server check comes up with is:

    Plugin Directory Checksum

    and memory limit.

    I was wondering if there was anyway to save the s2member settings before reinstalling it?

  6. Cristian Lavaque
    Member
    Plugin Author

    Posted 2 months ago #

    Make sure the deactivation safeguards are enabled. WP Admin -> s2Member -> General -> Deactivation Safeguards

    And if you have s2Member Pro you can export the options to back them up. WP Admin -> s2Member -> Import/Export -> Options

    You could try, in a separate directory for this test, installing a clean copy of WP and add just s2Member to test if you can reproduce the problem there.

    Let me know how it goes.

Reply

You must log in to post.