Community Support Forums — WordPress® ( Users Helping Users ) — 2011-02-26T16:43:35-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2490 2011-02-26T16:43:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7194#p7194 <![CDATA[Re: Upgrade to WordPress 3.1]]>
J_J_R wrote:
@itsalaska and @JamesUT

Sorry folks, but this can't be the answer. It breaks the Pretty Links plugin and god knows what all else. This is really frustrating me because I have a membership site due to launch on Tuesday and I've been torpedoed.


As a 10 year php developer, trust me i know my stuff, and i see no reason why making an empty variable become an empty array would screw anything up, not to mention that it is contained within a class so it can't possibly affect another plugin.

Statistics: Posted by itsalaska — February 26th, 2011, 4:43 pm


]]>
2011-02-26T15:04:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7185#p7185 <![CDATA[Re: Upgrade to WordPress 3.1]]>

At last a good news ! Hope it helps everybody (I was praying the silence was due to hard work on a WP 3.1 compatible version).


My thoughts EXACTLY.

Statistics: Posted by J_J_R — February 26th, 2011, 3:04 pm


]]>
2011-02-26T11:25:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7173#p7173 <![CDATA[Re: Upgrade to WordPress 3.1]]> Statistics: Posted by camillemm — February 26th, 2011, 11:25 am


]]>
2011-02-26T09:13:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7164#p7164 <![CDATA[Re: Upgrade to WordPress 3.1]]> http://www.primothemes.com/readme/3679/#rm-changelog
1.5

* (s2Member/s2Member Pro). WordPress® 3.1. Updated for full compatibility with WordPress® 3.1 ( s2Member also remains compatible with the WordPress® 3.0.x series ).

Please upgrade to the latest version.

Statistics: Posted by Elizabeth — February 26th, 2011, 9:13 am


]]>
2011-02-26T08:21:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7161#p7161 <![CDATA[Re: Upgrade to WordPress 3.1]]>
My hosting company was able to roll me back to 3.05 and I was pretty excited about it until I realized that all the databases had been rolled back too (losing 2.5 days of work).

So, the next concept was to use the latest databases and hook them into the old WordPress. (It didn't work for some reason. Remember that. :? ).

Next, I asked them to put me back just how it was before I called (WP 3.1) and give me a few minutes to manually copy off the pages I needed. The plan being to manually install them into WP 3.05 later.

Good plan, right? makes sense in a desperate sort of way. So, what happened?

Apparently, in the 20 minutes it took me to make my copies, their servers updated for the week and blew away the WP 3.05 data! No way to recover WP 3.05 now. Who's really buying that story?

Anyway, that was a rather long winded way of saying that I'm not sure my latest database versions will operate with the old WP 3.05, even if I did manage to manually re-install it.

Statistics: Posted by J_J_R — February 26th, 2011, 8:21 am


]]>
2011-02-26T01:11:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7159#p7159 <![CDATA[Re: Upgrade to WordPress 3.1]]> wp-config.php file;
wp-content folder;
wp-images folder;
wp-includes/languages/ folder--if you are using a language file, do not delete this folder;
.htaccess file--if you have added custom rules to your .htaccess, do not delete it;
Custom Content and/or Plugins--if you have any images or other custom content or Plugins inside the wp-content folder, DO NOT delete them.

One of the links to do that is given here
http://www.siteground.com/tutorials/wor ... pgrade.htm

Statistics: Posted by lalitkishore — February 26th, 2011, 1:11 am


]]>
2011-02-25T20:14:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7155#p7155 <![CDATA[Re: Upgrade to WordPress 3.1]]> Statistics: Posted by J_J_R — February 25th, 2011, 8:14 pm


]]>
2011-02-25T17:48:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7153#p7153 <![CDATA[Re: Upgrade to WordPress 3.1]]>
J_J_R wrote:
This is really frustrating me because I have a membership site due to launch on Tuesday and I've been torpedoed.


I can understand that.

Statistics: Posted by Cristián Lávaque — February 25th, 2011, 5:48 pm


]]>
2011-02-25T17:40:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7152#p7152 <![CDATA[Re: Upgrade to WordPress 3.1]]>
Sorry folks, but this can't be the answer. It breaks the Pretty Links plugin and god knows what all else. This is really frustrating me because I have a membership site due to launch on Tuesday and I've been torpedoed.

Statistics: Posted by J_J_R — February 25th, 2011, 5:40 pm


]]>
2011-02-25T14:31:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7148#p7148 <![CDATA[Re: Upgrade to WordPress 3.1]]>
Code:
if(!$user->allcaps) $user->allcaps = array();

Place it at line 90 before the foreach. solves the issue.

Statistics: Posted by itsalaska — February 25th, 2011, 2:31 pm


]]>
2011-02-25T13:41:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7144#p7144 <![CDATA[Re: Upgrade to WordPress 3.1]]> $user->allcaps would always output an array and now it sometimes doesn't? Just trying to understand what the issue is.

If $user->allcaps is used elsewhere, then a similar problem may come up. Would be good to go where $user->allcaps is and make sure it always outputs an array.

Statistics: Posted by Cristián Lávaque — February 25th, 2011, 1:41 pm


]]>
2011-02-25T12:59:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7142#p7142 <![CDATA[Re: Upgrade to WordPress 3.1]]>
I'm not sure how deep the issue goes, but for the warnings on the users listing I did the following:

In wp-content/plugins/s2member/includes/functions/users-list.inc.php around line 90 find:
Code:
foreach ($user->allcaps as $cap => $cap_enabled)
if (preg_match ("/^access_s2member_ccap_/", $cap))
$ccaps[] = preg_replace ("/^access_s2member_ccap_/", "", $cap);
/**/
$val = (!empty ($ccaps)) ? implode ("<br />", $ccaps) : "—";

add the if condition above it and closing bracket below as shown:
Code:
if (is_array($user->allcaps)) {
foreach ($user->allcaps as $cap => $cap_enabled)
if (preg_match ("/^access_s2member_ccap_/", $cap))
$ccaps[] = preg_replace ("/^access_s2member_ccap_/", "", $cap);
/**/
$val = (!empty ($ccaps)) ? implode ("<br />", $ccaps) : "—";
}

This just has it check if it's an array or not and execute accordingly. It got rid of the warnings on my installs.

Hope this helps.

Statistics: Posted by JamesUT — February 25th, 2011, 12:59 pm


]]>
2011-02-25T10:26:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7137#p7137 <![CDATA[Re: Upgrade to WordPress 3.1]]>
Being new to this forum, is there a reliable single source place to get news of updates or bugs like this?

Thanks!

Statistics: Posted by johnnysilvers — February 25th, 2011, 10:26 am


]]>
2011-02-24T17:08:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7114#p7114 <![CDATA[Re: Upgrade to WordPress 3.1]]>
"We're committed to our customers and have a passion for technology. We hold ourselves accountable to our customers, partners, and employees; by honoring our commitments, providing results, and striving for the highest quality. Our work is based on the belief that products and services are only as strong as the support team standing behind them."


starting to not look like they mean what they advertise. :cry:

Statistics: Posted by urbanryno — February 24th, 2011, 5:08 pm


]]>
2011-02-24T04:02:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7102#p7102 <![CDATA[Re: Upgrade to WordPress 3.1]]> Statistics: Posted by AdmiralsReserve — February 24th, 2011, 4:02 am


]]>
2011-02-24T03:13:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7097#p7097 <![CDATA[Re: Upgrade to WordPress 3.1]]> Statistics: Posted by urbanryno — February 24th, 2011, 3:13 am


]]>
2011-02-24T01:14:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7089#p7089 <![CDATA[Re: Upgrade to WordPress 3.1]]> Statistics: Posted by AdmiralsReserve — February 24th, 2011, 1:14 am


]]>
2011-02-23T20:45:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7079#p7079 <![CDATA[Re: Upgrade to WordPress 3.1]]>
Warning: Invalid argument supplied for foreach() in [URL-ROOT]/wp-content/plugins/s2member/includes/functions/users-list.inc.php on line 90

Checking out the file, line 90 reads:

Code:
foreach ($user->allcaps as $cap => $cap_enabled)



I haven't fully explored this impact on custom capabilities. I'll continue looking for other issues first.

What have you seen?

Statistics: Posted by dwdutch — February 23rd, 2011, 8:45 pm


]]>
2011-02-23T15:27:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2490&p=7074#p7074 <![CDATA[Upgrade to WordPress 3.1]]> Statistics: Posted by AdmiralsReserve — February 23rd, 2011, 3:27 pm


]]>