Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-28T18:09:02-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15812 2011-11-28T18:09:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=54110#p54110 <![CDATA[Re: This Is Weird!!]]> Statistics: Posted by beyonddesign — November 28th, 2011, 6:09 pm


]]>
2011-11-15T16:11:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=53100#p53100 <![CDATA[Re: This Is Weird!!]]>
Cristián Lávaque wrote:
Got it. Thanks for reporting this, guys. I hope Jason gets to this soon. :)
This was related to a misunderstanding about the functionality in the latest releases. Or, more accurately, the inability for s2Member to maintain backward compatibility for the behavior that existed in previous releases, in this regard. Please see this post for a resolution:
viewtopic.php?f=4&t=15812&p=52590#p52590

Statistics: Posted by Jason Caldwell — November 15th, 2011, 4:11 pm


]]>
2011-11-11T00:46:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52750#p52750 <![CDATA[Re: This Is Weird!!]]>

Statistics: Posted by Cristián Lávaque — November 11th, 2011, 12:46 am


]]>
2011-11-08T19:50:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52594#p52594 <![CDATA[Re: This Is Weird!!]]>
I randomly selected version 110815 thinking that would be far back enought to
test for this issue (but it was not far back enought LOL).

After any update I normally run a series of tests on my test site to
look for potential problems. This has highlighted a major flaw in
my testing procedures :oops: .

Will have to implement more robust testing.

Many thanks for your assistance.

PeterHuk

Statistics: Posted by peterhuk — November 8th, 2011, 7:50 pm


]]>
2011-11-08T19:31:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52592#p52592 <![CDATA[Re: This Is Weird!!]]> Thanks for the follow-up.

Yes, I'm sorry. We normally make every effort to provide backward compatibility when/if something like this changes. However, this particular case was an exception. We'll make an effort to spotlight things like this in future releases, should something cease to be supported.

This was changed in the release of s2Member v110815.

Changelog excerpt:
http://www.primothemes.com/readme/3679/
(s2Member/s2Member Pro) Capability Additions (Changed). In previous versions of s2Member, when generating a Payment Button/Form, it was possible to precede your list of Custom Capabilities with a + sign, indicating that you wish to (Add) new Custom Capabilities instead of (Resetting) a User's Capbilities to the ones you list. Starting with this release, (Add) is now the default behavior. In other words, the + sign is no longer required, because s2Member will automatically (Add) Capabilities to any that already exist for a particular User/Member, even without the + sign (no longer required). In addition, there is now a new directive available: -all. You may now precede your list of Custom Capabilities with -all, but only if you wish to (Remove/Reset) all Custom Capabilities, and then (Add) new ones. For example: -all,music,videos, would remove any existing Custom Capabilities that may or may not already exist for a particular User/Member, and then add: music,videos. There are additional examples provided by the Payment Button/Form Generators that come with s2Member. Please check your Dashboard if you'd like to learn more.

Statistics: Posted by Jason Caldwell — November 8th, 2011, 7:31 pm


]]>
2011-11-08T19:24:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52591#p52591 <![CDATA[Re: This Is Weird!!]]>
This is a nice feature but a potentially dangerous one for S2Member web owners
who probably didn’t realise its ramifications.

For new features like this is there anyway to highlight there use or make them
more obvious. As there must be many S2Member web owner using existing
templates who will be unaware of the impact of this new feature.

Many thanks

PeterHuk

Statistics: Posted by peterhuk — November 8th, 2011, 7:24 pm


]]>
2011-11-08T19:12:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52590#p52590 <![CDATA[Re: This Is Weird!!]]> Hi Peter. Thanks for the follow-up.

OK. So I've misunderstood the issue you reported. The issue was with existing Custom Capabilities not being removed, and reset to ONLY the new ones that you listed in the modification form.

This is to be expected in the latest releases of s2Member.
Please check this section of your Dashboard. The call to preg_replace() with the -all specification is not a bug, that's the intended behavior in the latest releases of s2Member.

s2Member -> PayPal Pro Forms ( click image to enlarge )
This is from the [?] icon next to the Custom Capabilities field.
SNAG-0117.png
So you'd want this in your s2Member Pro Form Shortcode:
Code:
ccaps="-all,cmem,csfb,spof,tsas,mmed"

100% Resolved

Statistics: Posted by Jason Caldwell — November 8th, 2011, 7:12 pm


]]>
2011-11-08T19:04:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52589#p52589 <![CDATA[Re: This Is Weird!!]]>

Statistics: Posted by Eduan — November 8th, 2011, 7:04 pm


]]>
2011-11-08T18:59:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52588#p52588 <![CDATA[Re: This Is Weird!!]]>
Eduan I am running WordPress 3.2.1 and at present
S2 Member Version 111029 + s2Member Pro v111029


Jason,

I think I have found the problem. Why it has only took till now to show up I dont
know but the bug I found was in:


/wp-content/plugins/s2member/includes/classes/paypal-notify-in-subscr-or-wa-w-level.inc.php


On Line 120 I found:

Code:
if ($paypal["ccaps"] && preg_match ("/^-all/", str_replace ("+", "", $paypal["ccaps"])))
foreach ($user->allcaps as $cap => $cap_enabled)
  if (preg_match ("/^access_s2member_ccap_/", $cap))
    $user->remove_cap ($ccap = $cap);


I could not understand the preg_match command:

preg_match ("/^-all/"


I search the net hi and low for a precedence for its use and found none. This command
(what ever it was suppose to do) was stopping the deletion of the ccaps. Which meant that
members wishing to down grade would pay less for the capabilities that had previously.

I removed the entire match:

&& preg_match ("/^-all/", str_replace ("+", "", $paypal["ccaps"]))


from the if staement and test completed Successfully!!.

Please verify and update all simular files with this bug.

Many thanks

PeterHuk

Statistics: Posted by peterhuk — November 8th, 2011, 6:59 pm


]]>
2011-11-08T18:51:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52586#p52586 <![CDATA[Re: This Is Weird!!]]>
Here are some things that we can look at perhaps.

1. Are you running any caching plugins that attempt to perform object caching?
If you're running W3 Total Cache, try testing without this enabled, or with object caching disabled.

2. Are you running any custom code of your own? An s2member s2-hacks.php file? Anything that updates details about a User either before or after checkout/modification?

It sounds like there is either stale information being saved somewhere, or that stale information is sitting in an object cache and is not being updated properly. Short of that, I'm at a loss. If problems persist, please submit a Dashboard login and any access details that I need to reproduce this on your installation. Please use this private contact form for that: http://www.s2member.com/contact/

Statistics: Posted by Jason Caldwell — November 8th, 2011, 6:51 pm


]]>
2011-11-08T18:27:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52585#p52585 <![CDATA[Re: This Is Weird!!]]> Thanks for the heads up on this thread.
~ Investigating now.

Statistics: Posted by Jason Caldwell — November 8th, 2011, 6:27 pm


]]>
2011-11-08T14:45:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52565#p52565 <![CDATA[Re: This Is Weird!!]]> Statistics: Posted by Eduan — November 8th, 2011, 2:45 pm


]]>
2011-11-08T14:29:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52563#p52563 <![CDATA[Re: This Is Weird!!]]> Statistics: Posted by cassel — November 8th, 2011, 2:29 pm


]]>
2011-11-08T13:00:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52557#p52557 <![CDATA[Re: This Is Weird!!]]>
Thanks for mentioning this, it could be that other members may have simular problems
but just haven't notice yet.

I have email Jason and just waiting for a response. A small point from my investigation
is that Wordpress could also be at fault as I have disabled all other plugins, used previous
known working version of S2 and S2 Pro and have even restored the database from a working backup.

All to no avail the only variable left is Wordpress. At present I am trying to locate the
fault so that should something simular happen in future a quick resolve can hopefully
be found. But unfortunately for me time is not on my side.

PeterHuk

Statistics: Posted by peterhuk — November 8th, 2011, 1:00 pm


]]>
2011-11-08T12:46:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52556#p52556 <![CDATA[Re: This Is Weird!!]]>
In any case, i will follow this thread in the hope it can also help me (for when i have hundreds of purchases per day!).

Statistics: Posted by cassel — November 8th, 2011, 12:46 pm


]]>
2011-11-08T07:23:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52525#p52525 <![CDATA[Re: This Is Weird!!]]> 'Invoice Number' at the end of the invoice number str is the list of ccaps ie


invoice numberxxxxxxxxxx:0 D:1 M~mydomain.com~1:list,of,ccaps


The list of ccaps is correct yet when returned to S2 it appears to be ignored.

Statistics: Posted by peterhuk — November 8th, 2011, 7:23 am


]]>
2011-11-08T02:01:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52518#p52518 <![CDATA[Re: This Is Weird!!]]> http://s2member.com/contact

I see in one of your logs:
5 => 's2Member Level/Capabilities updated w/ advanced update routines.',

Did you check that user's account and compare to the ccaps he paid for?

Statistics: Posted by Cristián Lávaque — November 8th, 2011, 2:01 am


]]>
2011-11-07T20:21:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52494#p52494 <![CDATA[Re: This Is Weird!!]]> all profiles are based on an on going subscriptions basis. Or until a member cancels or fails to
pay in which case S2 will demote them to subscriber.

The user on the post you have provided uses a combination of on going and eot based subscriptions
which is not the same problem as what I am experiencing.

I am trying to debug the process to see what S2 is doing with the returned variables.

Many thanks

Peter

Statistics: Posted by peterhuk — November 7th, 2011, 8:21 pm


]]>
2011-11-07T20:03:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52493#p52493 <![CDATA[Re: This Is Weird!!]]> It may solve your problem so why don't you take a look at it?

Here's the link once again:
viewtopic.php?p=48792#p48792

Statistics: Posted by Eduan — November 7th, 2011, 8:03 pm


]]>
2011-11-07T19:57:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52492#p52492 <![CDATA[Re: This Is Weird!!]]> is not updating the user ccap.

Statistics: Posted by peterhuk — November 7th, 2011, 7:57 pm


]]>
2011-11-07T19:27:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52490#p52490 <![CDATA[Re: This Is Weird!!]]> they did an update that caused this.

Statistics: Posted by Eduan — November 7th, 2011, 7:27 pm


]]>
2011-11-07T19:22:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52489#p52489 <![CDATA[Re: This Is Weird!!]]> and the problem still persists.

Further info:

After the modification the Paypal Profile ID is the same as the S2member Paid Subscr. ID so an
update is being done. just not reflected in the ccap

Statistics: Posted by peterhuk — November 7th, 2011, 7:22 pm


]]>
2011-11-07T17:24:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52486#p52486 <![CDATA[Re: This Is Weird!!]]> custom capabilities after checkout?

I'm running out of time and any pointers would be appreciated.

Statistics: Posted by peterhuk — November 7th, 2011, 5:24 pm


]]>
2011-11-07T15:26:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52480#p52480 <![CDATA[Re: This Is Weird!!]]> the S2member plugin and the default wordpress theme.

Problem still persist.

Statistics: Posted by peterhuk — November 7th, 2011, 3:26 pm


]]>
2011-11-07T13:12:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15812&p=52468#p52468 <![CDATA[Re: This Is Weird!!]]>
Many thanks, I have just read that post but the problem I have is diffrent. When
all is ok after a modification S2member updates the custom capabilities list (in
the user profile) to reflect their new capabilities.

The problem I have now is after a paid for modification the custom capabilities
(listed in user profile) does not get updated.

I am currently trying to find the S2member php file / class responsible for updating
the custom capabilities (let me know if you know the file / class). If I can find what
is happening to the data this may leed to a resolve.

Many thanks

PeterHuk

Statistics: Posted by peterhuk — November 7th, 2011, 1:12 pm


]]>