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.

Home Forums Gary

About: Gary

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
BuddyPress conflict? Can't Add Group Members

By:  Gary in: Community Forum

voices: 1
replies: 0

3 years, 3 months ago  Gary

Updating a Custom Field Value

By:  Gary in: Community Forum

voices: 3
replies: 14

3 years, 5 months ago  Gary

Can't activate s2Member Framework

By:  Gary in: Community Forum

voices: 2
replies: 5

3 years, 9 months ago  Eduan

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
BuddyPress conflict? Can't Add Group Members

By:  Gary in: Community Forum

voices: 1
replies: 0

3 years, 3 months ago  Gary

Updating a Custom Field Value

By:  Gary in: Community Forum

voices: 3
replies: 14

3 years, 5 months ago  Gary

Can't activate s2Member Framework

By:  Gary in: Community Forum

voices: 2
replies: 5

3 years, 9 months ago  Eduan

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

My Latest Replies (From Various Topics)

Viewing 10 replies - 1 through 10 (of 10 total)
Author Replies
Author Replies
Posted: Friday Aug 9th, 2013 at 3:50 pm #55500
Gary
Username: gbthomas66

I finally figured it out!!! It was related to the ID field after all. I changed the code to this:

$voted = "1";
$custom_fields = get_user_option('s2member_custom_fields', get_current_user_id());
$custom_fields['district_voted'] = $voted;
update_user_option(get_current_user_id(), 's2member_custom_fields', $custom_fields);
Posted: Tuesday Aug 6th, 2013 at 10:54 am #55291
Gary
Username: gbthomas66

Thanks again for your help. I think my next step will be to pull this PHP code out of the WP page and have it be a standalone PHP page that gets called from a page. Hopefully that will solve the problem.

Posted: Monday Aug 5th, 2013 at 11:14 pm #55266
Gary
Username: gbthomas66

There is no other processing custom fields with my PHP code on this page. But I suppose something could be happening behind the scenes. The page is a protected page that you can’t access.

Posted: Monday Aug 5th, 2013 at 6:46 pm #55247
Gary
Username: gbthomas66

I use the plug-in Exec-PHP. It allows me to use PHP code in any page or post. I’ve never had any issue with it until this particular one.

Posted: Monday Aug 5th, 2013 at 6:22 pm #55245
Gary
Username: gbthomas66

Thanks for the added input. I wish I could say it is now working, but unfortunately it still is not updating the values. It’s like it is ignoring that last line of code. It must be something else. Perhaps a permission problem somewhere? Any other thoughts or ideas? I appreciate the help.

Posted: Sunday Aug 4th, 2013 at 10:29 pm #55184
Gary
Username: gbthomas66

Still no luck. Again, the $custom_fields array looks fine before and after the change to the one field. But the last line does not seem to write it to the database.

Posted: Saturday Aug 3rd, 2013 at 10:10 pm #54974
Gary
Username: gbthomas66

Well, I got to working on it tonight. But it isn’t doing the update. Here’s my code:

$voted = 1;
$custom_fields = get_user_option('aaa_s2member_custom_fields');
$custom_fields['district_voted'] = $voted;
update_user_option($user->ID, 'aaa_s2member_custom_fields', $custom_fields);

The first three lines of code work correctly (confirmed by echo and print_r).
The last line executes, but gives me no error, nor does it update the custom field “district_voted”.
Any thoughts?

Posted: Saturday Aug 3rd, 2013 at 1:33 pm #54835
Gary
Username: gbthomas66

Thanks Bruce. That doesn’t look too complicated. I may not get back to it for a couple of days. Just wanted to acknowledge getting the info.

Posted: Tuesday Mar 19th, 2013 at 11:20 am #45170
Gary
Username: gbthomas66

I’ve done as you instructed. But I’m still getting the same error message when I try to activate the plug-in.

If it makes any difference, my ISP says I am on an IIS server.

Any thoughts?

Posted: Sunday Mar 17th, 2013 at 8:53 pm #45017
Gary
Username: gbthomas66

I did a complete de-install and reinstall. Still had the same problems.

So I ran the s2-server-scanner tool and only got 1 warning and 1 notice:
[WARNING] Missing $_SERVER[‘SERVER_ADDR’]
[NOTICE] WordPress® Memory Limit

In both cases it says that they are NOT required, but recommended.

Now what?

Viewing 10 replies - 1 through 10 (of 10 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.