PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Adding Membership Levels not working

s2Member Plugin. A Membership plugin for WordPress®.

Adding Membership Levels not working

Postby timmay » January 10th, 2012, 11:34 am

I searched the forums and have not found anyone else with this problem.
Wordpress 3.3.1 and S2Member Pro 111220

I added define("MEMBERSHIP_LEVELS", 7); to my wp-config.php file, directly below the opening php tag and saved.
Now when I navigate to any S2Member page in the admin interface, I just get a blank white page. no error, nothing.

If I remove the line from wp-config.php, everything works again, but of course I don't have my 7 levels.

Please help as this is the only reason I purchased the Pro version...
Thanks,
timmay
User avatar
timmay
Registered User
Registered User
 
Posts: 4
Joined: January 10, 2012

Re: Adding Membership Levels not working

Postby timmay » January 10th, 2012, 11:41 am

Crazy.. I just resolved this myself. I had previously tried inserting the line at the end of wp-config.php, which appeared to not get read at all by the s2member plugin.
On a whim, I tried inserting it at line 37, which makes no sense because that is in the db settings, but it worked. I now have my seven levels in the membership levels section.
timmay
User avatar
timmay
Registered User
Registered User
 
Posts: 4
Joined: January 10, 2012

Re: Adding Membership Levels not working

Postby Raam Dev » January 11th, 2012, 2:11 pm

Hi timmay,

As described in WP Admin -> s2Member -> General Options -> Membership Levels/Labels, the line should be inserted at the top of your /wp-config.php file, right after the <?php tag.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Adding Membership Levels not working

Postby timmay » January 11th, 2012, 2:45 pm

As described in my first post -- I did follow instructions and inserted the line
right after the <?php tag
That is precisely what didn't work, and why I turned to the forum.
Ironically, as described in my second post, removing it from right after the <?php tag, and moving it farther down the wp-config.php file is what made it finally work....but whatever.
User avatar
timmay
Registered User
Registered User
 
Posts: 4
Joined: January 10, 2012

Re: Adding Membership Levels not working

Postby Eduan » January 11th, 2012, 3:29 pm

Did it look like this?:
Code: Select all
<?php define("MEMBERSHIP_LEVELS", 7); 

Or did it look like this?:
Code: Select all
<?php
define
("MEMBERSHIP_LEVELS", 7); 

The first one is incorrect, the second one is correct (because of the positioning of the code after the <?php). Well it's incorrect in large files, or I consider it bad practice.
Last edited by Eduan on January 11th, 2012, 3:35 pm, edited 1 time in total.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Adding Membership Levels not working

Postby Raam Dev » January 11th, 2012, 3:30 pm

Oh, my apologies for the confusion. I was reading your second post that said,

timmay wrote:I had previously tried inserting the line at the end of wp-config.php, which appeared to not get read at all by the s2member plugin.


This is what I tried and it works for me:

Code: Select all
<?php
define
("MEMBERSHIP_LEVELS", 7);
/**
 * The base configurations of the WordPress.
 *
....
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Adding Membership Levels not working

Postby timmay » January 11th, 2012, 3:48 pm

Eduan wrote:Did it look like this?:
Code: Select all
<?php define("MEMBERSHIP_LEVELS", 7); 

Or did it look like this?:
Code: Select all
<?php
define
("MEMBERSHIP_LEVELS", 7); 

The first one is incorrect, the second one is correct (because of the positioning of the code after the <?php). Well it's incorrect in large files, or I consider it bad practice.


It looked like the second one.
Thanks.
User avatar
timmay
Registered User
Registered User
 
Posts: 4
Joined: January 10, 2012


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests

cron