latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Yosuke Hasumi

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Problem with Billing Method icons + PaypalPro

By:  Ben Head in: Community Forum

voices: 5
replies: 7

3 years, 10 months ago  Yosuke Hasumi

Paypal Subscr Mod Button FAIL

By:  Yosuke Hasumi in: Community Forum

voices: 2
replies: 5

4 years ago  Cristián Lávaque

Viewing 3 topics - 1 through 3 (of 3 total)

Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Paypal Subscr Mod Button FAIL

By:  Yosuke Hasumi in: Community Forum

voices: 2
replies: 5

4 years ago  Cristián Lávaque

Subscription Modification not working

By:  Yosuke Hasumi in: Community Forum

voices: 2
replies: 1

4 years, 4 months ago  Cristián Lávaque

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Tuesday Feb 12th, 2013 at 4:09 pm #41585
Yosuke Hasumi
Username: yosuke

I’ve realized that since this seems to be a Role/Authorization issue i should start looking at some of the plugins installed on my site. After systematically disabling/enabling my plugins i found the culprit – WordPress Better Security.

It looks like this plugin has caused issues with others:
http://www.s2member.com/forums/topic/better-worpress-security/
http://www.s2member.com/forums/topic/better-wp-security-plugin-conflict/
http://www.s2member.com/forums/topic/s2member-and-better-wp-security-conflict/

Notably that it ends up messing up head styles and scripts. Now it looks like everything is back online. hope this helps

Posted: Tuesday Feb 12th, 2013 at 3:15 pm #41583
Yosuke Hasumi
Username: yosuke

Well also one obvious thing I see now is that my stylesheet and javascript files aren’t being included properly when I’m logged in as anything but and admin. While logged in as an Admin i see:

<link rel='stylesheet' id='ws-plugin--s2member-css'  href='http://mysite.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_css=1&#038;qcABC=1&#038;ver=130207-130207-3720587274' type='text/css' media='all' />
<script type='text/javascript' src='http://mysite.com/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=8c48310414fb134502986c1fcff2870c&#038;qcABC=1&#038;ver=130207-130207-3720587274'></script>

But as anything else:

<link rel='stylesheet' id='ws-plugin--s2member-css'  href='http://mysite.com/wp-content/plugins/s2member/s2member-o.php' type='text/css' media='all' />
<script type='text/javascript' src='http://mysite.com/wp-content/plugins/s2member/s2member-o.php'></script>

Any ideas why my script wouldn’t be loading correctly?

Posted: Tuesday Feb 12th, 2013 at 3:03 pm #41582
Yosuke Hasumi
Username: yosuke

I’ve got a very similar problem with one of my sites. In chrome inspect I’m seeing an error

Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://mysite.com/wp-content/plugins/s2member/s2member-o.php". 
Resource interpreted as Script but transferred with MIME type text/html: "http://mysite.com/wp-content/plugins/s2member/s2member-o.php". 

In my php access log I’ve got:

xx.xx.xx.xx - - [12/Feb/2013:11:22:43 -0800] "GET /wp-content/plugins/s2member/s2member-o.php HTTP/1.1" 200 351 "http://mysite.com/mypage/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/xx.xx.xx.xx Safari/537.17" 

And nothing in my error log (I’ve got logging set to E_ALL)

Eitherway, the main reason that I’m chasing this down is because for some reason when i use:

echo c_ws_plugin__s2member_pro_paypal_form::sc_paypal_form($attr);

I can’t get s2member to recognize my level 1 users as being logged in, and it asks for them to register. Of course this behaviour doesn’t happen when I’m logged in as admin. Also the MIME type errors are no longer there.

I don’t mean to pirate someone else’s thread but I figured any additional info would be helpful. I’ll post any findings here as well

Posted: Friday Dec 14th, 2012 at 1:56 pm #34683
Yosuke Hasumi
Username: yosuke

Hey Christian,

Is the user logged into his account when he loads the page with the PayPal button? And does he already have a subscription?

Yup, this is from a backend area that only logged in users can access.

I see you’re using do_shortcode in a PHP block, why? Do you also have this problem if you just use the shortcode in a post/page normally?

The reason I’m using the do_shortcode function is because I’m dynamically outputting two buttons for each of my adoptions. The way this works is:

  1. I find out how many adoptions they have currently (ex. 3 animals @ $10/month)
  2. figure out the ccaps for each (ex. ccaps=”joey,stu,susan”)
  3. find out which animals are NOT adopted (ex. “kirk, mike, alison”)
  4. foreach of the NOT adopted animals output two buttons
    1. add kirk to the list of existing ccaps (ex. ccaps=”joey,stu,susan,kirk”)
      • with the new total monthly price and recurring period set to monthly ($10 x 4 charged monthly)
      • with the new total yearly price and recurring period set to yearly ($120 x 4 charged yearly)
    2. add mike to the list of existing ccaps (ex. ccaps=”joey,stu,susan,mike”)
      • with the new total monthly price and recurring period set to monthly ($10 x 4 charged monthly)
      • with the new total yearly price and recurring period set to yearly ($120 x 4 charged yearly)
    3. add alison to the list of existing ccaps (ex. ccaps=”joey,stu,susan,alison”)
      • with the new total monthly price and recurring period set to monthly ($10 x 4 charged monthly)
      • with the new total yearly price and recurring period set to yearly ($120 x 4 charged yearly)

Now this isn’t the ideal way of handling it for me. If I could find out the current recurring payment period (Yearly or Monthly) I’d prefer not to change it. So if KNEW that they were paying yearly ideally I’d only output yearly paypal buttons. But I don’t think this is possible from the S2Member side since this is a configured setup in paypal at the time of the adoption. Is that right?

Anyway that doesn’t solve the original thread question but it may give you some insight as to why things are the way they are.

Posted: Wednesday Dec 12th, 2012 at 4:25 pm #34421
Yosuke Hasumi
Username: yosuke

Hey Christian, Thanks for the feedback,
So it looks like nothing is logging in either the paypal-api.log or the paypal-rtn.log Nothing has been logged in either of those since May! Eitherway logging has been enabled but it seems only the paypal-ipn.log is recording anything. This what the full log for that transaction is:

PHP v5.3.5 :: WordPress® v3.4.2 :: s2Member® v121204 :: s2Member® Pro v121204
Memory 32.42 MB :: Real Memory 34.25 MB :: Peak Memory 33.44 MB :: Real Peak Memory 34.25 MB
mysite.org/?s2member_paypal_notify=1
User-Agent: 
array (
  'txn_type' => 'subscr_modify',
  'subscr_id' => 'S-XXXXXXXXXX8433941',
  'last_name' => 'hasumi',
  'option_selection1' => 'S-XXXXXXXXXX705640N',
  'option_selection2' => 'XX.XX.XXX.XX',
  'residence_country' => 'CA',
  'mc_currency' => 'USD',
  'item_name' => 'Testin adoption modification for Gunung,Oscarina',
  'business' => 'mysite_owner@gmail.com',
  'amount3' => '0.02',
  'subscr_effective' => '02:00:00 Nov 23, 2013 PST',
  'recurring' => '0.02',
  'verify_sign' => 'ADXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXFzBOr',
  'payer_status' => 'verified',
  'payer_email' => 'JIM@BOB.com',
  'first_name' => 'JIMBOB',
  'receiver_email' => 'mysite_owner@gmail.com',
  'payer_id' => 'GRQFXXXXXXX',
  'option_name1' => 'Referencing Customer ID',
  'invoice' => 'XXXXXX4dd6ee4a~XX.XX.XXX.XX',
  'option_name2' => 'Customer IP Address',
  'reattempt' => '1',
  'item_number' => '1:gunung,oscarina',
  'subscr_date' => '00:57:56 Dec 11, 2012 PST',
  'custom' => 'mysite.org',
  'charset' => 'windows-1252',
  'notify_version' => '3.7',
  'period3' => '1 M',
  'mc_amount3' => '0.02',
  'ipn_track_id' => 'XXXXX7a11afe6',
  's2member_log' => 
  array (
    0 => 'IPN received on: Tue Dec 11, 2012 8:58:12 am UTC',
    1 => 's2Member POST vars verified through a POST back to PayPal®.',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `subscr_modify` ).',
    4 => 'Unable to modify Subscription. Could not get the existing User ID from the DB.',
  ),
  'subscr_gateway' => 'paypal',
  'ccaps' => 'gunung,oscarina',
  'level' => '1',
  'ip' => 'XX.XX.XXX.XX',
  'period1' => '0 D',
  'mc_amount1' => '0.00',
  'initial_term' => '0 D',
  'initial' => '0.02',
  'regular' => '0.02',
  'regular_term' => '1 M',
)

Maybe this helps: http://www.primothemes.com/forums/viewtopic.php?f=4&t=10368&p=33365#p33365

As for me not receiving anything in my email from mysite.org regarding my new adoption: It seems reasonable to consider that since the user ID cannot be found in the DB by s2member it cannot find the user email address to send the confirmation link/thank you message to. I’m assuming if i can figure out how to get s2member to recognize the user then the email would probably go out successfully.

You may need to adjust it dynamically based on what ccaps the user already has. Knowledge Base » Using variables in a shortcode

Oh good. I’ve figured this part out. I’ve got a script that finds all the existing ccaps, it then takes the newest desired adoptee and appends it to this list.

So any ideas why the user returns from paypal and s2member can’t recognize them?

Viewing 5 replies - 1 through 5 (of 5 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.