PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

shortcode not working on membership options page

s2Member Plugin. A Membership plugin for WordPress®.

shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 2:49 pm

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
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby drbyte » May 19th, 2011, 4:01 pm

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
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010

Re: shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 4:22 pm

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
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby Cristián Lávaque » May 19th, 2011, 4:39 pm

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!
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 4:49 pm

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" /]
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 4:51 pm

PS -- There is nothing else in the composition window for that page, no conditionals, nothing other than shortcode above.
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby drbyte » May 19th, 2011, 5:00 pm

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
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010

Re: shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 5:11 pm

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
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby drbyte » May 19th, 2011, 5:20 pm

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...
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010

Re: shortcode not working on membership options page

Postby Cristián Lávaque » May 19th, 2011, 5:38 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 5:39 pm

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
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 5:46 pm

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
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby Cristián Lávaque » May 19th, 2011, 5:54 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 6:09 pm

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
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 6:12 pm

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
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby Cristián Lávaque » May 19th, 2011, 6:24 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: shortcode not working on membership options page

Postby doctorproctor » May 19th, 2011, 7:17 pm

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
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: shortcode not working on membership options page

Postby drbyte » May 19th, 2011, 8:06 pm

Make sure there is no extra white space when u copied the papal api username password and the key
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010

Re: shortcode not working on membership options page

Postby Cristián Lávaque » May 19th, 2011, 8:18 pm

I'm glad that fixed it, Doctor, now we know where the problem is. I already notified Jason of this problem.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: shortcode not working on membership options page

Postby Jason Caldwell » May 23rd, 2011, 3:14 am

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 )
100% Resolved
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron