Page 1 of 1
shortcode not working on membership options page
Posted:
May 19th, 2011, 2:49 pm
by doctorproctor
Greetings -- I'm running s2Member v. 3.5.8, and am having difficulty configuring my membership options page in that the button shortcode I generated and added to this page does not display. I have tested other generic WP shortcodes and they are displaying fine; I've also selectively disabled each plugin to check for conflicts, but no improvement.
I don't know if this is related, but I haven't yet successfully configured the PayPal IPN integration step, as each time I try to do so in PayPal I get the error "Sorry -- your last action could not be completed" and am logged out. Otherwise I have completed all other PayPal setup steps.
Thanks for your help!
Jim
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 4:01 pm
by drbyte
Do you have PayPal business account? when you mean by "logged out" ..PayPal or WordPress?
Go over S2Memebr configuration again..you must have forgotten something. If all OK, then if you can..submit the short code you are trying to use so we can take a look
Sam
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 4:22 pm
by doctorproctor
Yes, I launched a business account, and all necessary configurations are complete with the exception of the IPN integration. By "logged out," PayPal generates the error msg, then logs me out, but only with this IPN integration routine, not with any of the other necessary setup steps.
Here's sample shortcode: [s2Member-PayPal-Button level="1" ccaps="" desc="Oak Level Member -- $20 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="20" rp="1" rt="Y" rr="1" image="default" output="button" /]
I see no JS errors, btw.
Thanks,
Jim
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 4:39 pm
by Cristián Lávaque
doctorproctor wrote:I'm running s2Member v. 3.5.8, and am having difficulty configuring my membership options page in that the button shortcode I generated and added to this page does not display.
I don't think the PayPal IPN configuration is related to your button display, although it'll be good you finish it.
Could you, as Sam suggests, post the shortcode you're using? Also, are you wrapping it with any conditionals? If you shared a link to the page in question it'd be good too.
Thanks!
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 4:49 pm
by doctorproctor
Sure; shortcode below (I'm just concatenating level 1 thru 4 buttons for now to debug), and page at:
http://aldercreek.org/contribute/join-friends-of-accf/Interestingly, at present it hides shortcode for levels 1 & 3, and displays shortcode for 2 & 4 as text. None is rendered as a button, however.
Thanks,
Jim
***
[s2Member-PayPal-Button level="1" ccaps="" desc="Oak Level Member -- $20 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="20" rp="1" rt="Y" rr="1" image="default" output="button" /][s2Member-PayPal-Button level="2" ccaps="" desc="Alder Level Member -- $50 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="50" rp="1" rt="Y" rr="1" image="default" output="button" /][s2Member-PayPal-Button level="3" ccaps="" desc="Incense Cedar Level Member -- $100 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="100" rp="1" rt="Y" rr="1" image="default" output="button" /][s2Member-PayPal-Button level="4" ccaps="" desc="Business Member / $100 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="100" rp="1" rt="Y" rr="1" image="default" output="button" /]
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 4:51 pm
by doctorproctor
PS -- There is nothing else in the composition window for that page, no conditionals, nothing other than shortcode above.
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 5:00 pm
by drbyte
Humm, it seems you are using the the encrypted button option...did you configure PayPal to use that option..
My Profile -> Website Payment Preferences. You'll want to block all non-encrypted payments. *Note* this will NOT work until you've supplied s2Member with your PayPal® Email Address, and also with your API Username/Password/Signature.
Sam
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 5:11 pm
by doctorproctor
Yes, PayPal configuration includes "Block Non-encrypted Website Payment" as On, and email address entered and all three API settings generated via PayPal and configured in S2Member. Also, "Enable Button Encryption?" set to Yes in S2Member. Maybe I've messed up on another setting?
Jim
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 5:20 pm
by drbyte
Interesting..i just tested your shortcode on my testing site and it's working fine. I can see the PayPal buttons
So you said that the code works on other pages you created but the membership page!?
Try to disable all of your plugins at one..just keep s2m and see if that solves the problem, then try to activate them one by one and see which one causes the issue. Your NextGallery plug is generating errors...
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 5:38 pm
by Cristián Lávaque
Also, if you're using a plugin to change the default editor in WordPress, I'd disable it. Your shortcode may be handled incorrectly by the one you use.
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 5:39 pm
by doctorproctor
Thanks; if it's another plugin that's the culprit it must be an interaction among multiple plugins as I deactivated each one in turn and no success. So I'll try deactivating all of them.
And to clarify: I have not tried this shortcode on other pages, but I have tried other (standard WP) shortcode on this page, and it works fine.
Jim
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 5:46 pm
by doctorproctor
Okay, deactivated all plugins except s2Member, and same behavior, so that's not apparently the problem (unless I have to entirely delete them!). No editor plugins used.
Thanks again for your help, and further ideas appreciated.
Jim
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 5:54 pm
by Cristián Lávaque
OK, thanks for trying those things.
I copied your code as posted above, and tried it in my test installation. Got the same error as you, actually, the buttons 1 and 3 showed while 2 and 4 were just the shortcode. I then tried putting each shortcode in its own line and that fixed it.
- Code: Select all
[s2Member-PayPal-Button level="1" ccaps="" desc="Oak Level Member -- $20 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="20" rp="1" rt="Y" rr="1" image="default" output="button" /]
[s2Member-PayPal-Button level="2" ccaps="" desc="Alder Level Member -- $50 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="50" rp="1" rt="Y" rr="1" image="default" output="button" /]
[s2Member-PayPal-Button level="3" ccaps="" desc="Incense Cedar Level Member -- $100 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="100" rp="1" rt="Y" rr="1" image="default" output="button" /]
[s2Member-PayPal-Button level="4" ccaps="" desc="Business Member / $100 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="100" rp="1" rt="Y" rr="1" image="default" output="button" /]
I believe this is an error in WordPress' shortcode parser.
Let me know if that fixes it for you.
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 6:09 pm
by doctorproctor
Thanks. When I do this on that page I now get a blank page, i.e. all four shortcodes are now hidden. (I didn't mention that I earlier tried inserting only one of the four button shortcodes, without success.)
Again, sure appreciate your continued input!
Jim
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 6:12 pm
by doctorproctor
Btw, there are some JS errors that are introduced with the temporary home page I have on the site; I temporarily disabled it in .htaccess to eliminate these errors in certain s2Member settings screens, and tested the above with it disabled as well. The point is that if you see errors in your console they are not, I believe, related to what we are experiencing.
Jim
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 6:24 pm
by Cristián Lávaque
I looked at the page's source code and the HTML forms are there for each button. There seems to be an error with the code for the button's image, though.
The error may be related to the button encryption... Could you try turning encryption off to see if that fixes it for you? I'm going to notify Jason of this.
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 7:17 pm
by doctorproctor
Yes, this did it; thanks! I turned off "Block Non-encrypted Website Payment" in PayPal, and set "Enable Button Encryption?" to No on the s2Member side, and now the buttons appear. Would appreciate hearing of fixes/updates so I can reenable.
Thanks again,
Jim
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 8:06 pm
by drbyte
Make sure there is no extra white space when u copied the papal api username password and the key
Re: shortcode not working on membership options page
Posted:
May 19th, 2011, 8:18 pm
by Cristián Lávaque
I'm glad that fixed it, Doctor, now we know where the problem is. I already notified Jason of this problem.
Re: shortcode not working on membership options page
Posted:
May 23rd, 2011, 3:14 am
by Jason Caldwell
Thanks for the heads up Cristián.If you change your dollar amounts, so they all have two decimal places, this bug goes away.
See this thread please:
viewtopic.php?f=4&t=2838#p8671( this has been fixed in the development version, coming VERY soon )