Page 1 of 1

s2Member Info / s2Member Pro Info - Errors?

PostPosted: September 24th, 2011, 2:50 pm
by open4biz
Hi PriMo Folks,

My developer and I got all of our earlier s2Member / s2Member Pro install issues squared away, and maybe I'm sensitive to any issues that may present themselves now, but I noticed the following errors(?) when I clicked the s2Member / s2Member Pro menu items. First, a little server info. I am running CentOS 5.6 64-bit with all the latest updates, Apache 2.2.21, PHP 5.3.8, and MySQL 5.5.16. Here are the errors:

s2Member® Module Information

Code: Select all
Warning: preg_replace_callback() [function.preg-replace-callback]: Compilation failed: POSIX collating elements are not supported at offset 90 in /home/spp/domains/salespagepress.com/public_html/wp-content/plugins/s2member/includes/_xtnls/markdown/nc-markdown.inc.php on line 810


There's like 50-100 of these errors.
s2Member® Pro Module Information

Code: Select all
Warning: preg_replace_callback() [function.preg-replace-callback]: Compilation failed: POSIX collating elements are not supported at offset 90 in /home/spp/domains/salespagepress.com/public_html/wp-content/plugins/s2member/includes/_xtnls/markdown/nc-markdown.inc.php on line 810


Any ideas?
Thanks,
Ansel

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: September 25th, 2011, 5:15 pm
by Cristián Lávaque

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: September 25th, 2011, 11:44 pm
by open4biz
I'm afraid it passed all the tests. What may we try next?

Thanks,

Ansel

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: September 27th, 2011, 6:52 pm
by open4biz
Updating to version 110927 did not fix the problem.

Also, when I try to update s2Member Pro via that s2Member.com login box, it does not work. I get the following error:

"Automatic upgrade failed. Error #0004. Please upgrade via FTP."

What can I do to fix both problems?

Thanks,

Ansel

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: September 27th, 2011, 7:14 pm
by open4biz
The problem above seems to be related to this:

http://drupal.org/node/1255780

I am using PCRE v8.13

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: September 28th, 2011, 2:33 am
by Cristián Lávaque
Have you contacted your web host about the error? Still, I'm emailing Jason for his comments.

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: September 28th, 2011, 11:04 am
by open4biz
Cristián Lávaque wrote:Have you contacted your web host about the error? Still, I'm emailing Jason for his comments.


I am the web host. I have root access to
my cloud VPS server. Did you read the Drupal bug report and see the link to the PCRE bug report? PCRE seems to be the problem. It will be fixed in the next release (I hope).

Ansel

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 1st, 2011, 7:07 pm
by Jason Caldwell
Thanks for reporting this important issue.
~ Investigating this now.

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 1st, 2011, 8:10 pm
by Jason Caldwell
Thanks for your patience.

I just took a look at the bug report you provided. So it seems this bug in not in the PHP Markdown library, but it's to do with a faulty PCRE. Got it. Looks like we'll need to wait for the fix then. The function preg_replace_callback() is vital to many PHP applications, so I don't think reporting this bug to the PHP Markdown team would help either. In either case, thanks for reporting this here! I'm sure it will save someone else some headaches.

Related links:
http://bugs.exim.org/show_bug.cgi?id=1136
http://michelf.com/projects/php-markdown/

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 6th, 2011, 1:06 am
by open4biz
Hi Primo Folks,

Thank you for getting back to me. Happy to help, if not for selfish reasons. :D

Any update on this item:

...when I try to update s2Member Pro via that s2Member.com login box, it does not work. I get the following error:

"Automatic upgrade failed. Error #0004. Please upgrade via FTP."


Could it be related?

Thanks,

Ansel

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 8th, 2011, 10:23 pm
by Jason Caldwell
Thank you for reporting this important issue.

Hmm, Error #0004 indicates that s2Member had a problem accessing directories via WP_Filesystem. Do you have s2Member installed in a non-standardized location, using symlinks, or something like that perhaps?

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 9th, 2011, 1:42 am
by open4biz
Do you have s2Member installed in a non-standardized location, using symlinks, or something like that perhaps?


No. It's installed in the root of the public_html directory.

Perhaps I need to increase permissions for some folders?

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 12th, 2011, 11:40 am
by antseo
I'm also seeing the same error after trying to upgrade to the latest pro version. It's also installed in the root of the public_html directory.

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 12th, 2011, 12:00 pm
by Jason Caldwell
Thanks for reporting this important issue.

Is there any chance that one of you could provide us with a Dashboard login to test this? Even if it's just a test site where we can reproduce this behavior in your environment, that might make it possible or us to get this fixed quicker ( i.e. 90% of solving problems like this is in being able to reproduce it ).

If possible, please use this private contact form:
http://www.s2member.com/contact/

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 12th, 2011, 12:07 pm
by antseo
Okay, I can do that. I'll provide you the details.

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 12th, 2011, 2:10 pm
by Jason Caldwell
Thank you. Information received. Investigating now.

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 12th, 2011, 5:12 pm
by Jason Caldwell
OK. This problem seems to exist whenever s2Member is installed on a Blog that is running as a different User than it's file system, or when the file system method being used by WordPress is FTP/SSH, rather than the default "direct" methodologies. Continuing investigation to see if we can work around this using request_filesystem_credentials().

Until then, s2Member Pro may NEED to be upgraded via FTP in these cases.

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 12th, 2011, 5:27 pm
by antseo
Okay, thanks for checking Jason.

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 27th, 2011, 10:56 pm
by Jason Caldwell
seozones wrote:Okay, thanks for checking Jason.

Very welcome. Your (electrician) site has been patched for this to work now.
File updated: /s2member-pro/includes/classes/upgrader.inc.php
File updated: /s2member-pro/pro-module.php

The next official release of s2Member Pro will have an auto-updater compatible with FTP/SSH filesystems on WordPress, instead of just the default DIRECT methodologies. Since the upgrade wizard inside s2Member Pro's source code won't be updated until the next release of s2Member Pro, site owners with an FS_METHOD of FTP/SSH will likely need to upgrade manually via FTP until the release following the next.

I know, weird. But first we have to push out the update in the next release, so that future updates can be completed automatically by s2Member Pro in this way. Anyway, we've got this working now, really appreciate you lending us your site as a dev zone in this regard.

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 27th, 2011, 11:22 pm
by antseo
okay thanks Jason for your help with this. When will the next release be?

Also, I use a site called managewp.com to update my wp plugins for each of my sites and place the ftp info in my wp-config file. Will this new method you've described work using the ftp inside the wp-config file?

Re: s2Member Info / s2Member Pro Info - Errors?

PostPosted: October 28th, 2011, 12:22 pm
by Jason Caldwell
The next release should be available later today or tomorrow.

Also, I use a site called managewp.com to update my wp plugins for each of my sites and place the ftp info in my wp-config file. Will this new method you've described work using the ftp inside the wp-config file?
Yes, please see this article for instructions: http://codex.wordpress.org/Editing_wp-c ... _Constants