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.

Localhost Installation

Home Forums Community Forum Localhost Installation

This topic contains 9 replies, has 4 voices. Last updated by  Cristián Lávaque 4 years, 10 months ago.

Topic Author Topic
Posted: Sunday Feb 26th, 2012 at 8:37 pm #6487

I’ve already looked at http://www.primothemes.com/forums/viewtopic.php?f=4&t=6213 But I have spent over an hour and still can get s2member to work.

My wordpress installation is at http://localhost/bbs/ and I am using WAMP. I just don’t know how to get s2member to run access rules, etc.

So far, I’ve tried these other topics without succes.
http://www.primothemes.com/forums/viewtopic.php?f=4&t=6213
http://www.primothemes.com/forums/viewtopic.php?f=36&t=1066
http://www.primothemes.com/forums/viewtopic.php?f=4&t=3145&p=9683#p9990

List Of Topic Replies

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Sunday Feb 26th, 2012 at 9:32 pm #6490
Eduan
Username: Eduan
Moderator

Hello Angie, thanks for your inquiry.

Have you looked under Dashboard -› s2Member® -› General Options -› Localhost WAMP/MAMP Developers and followed the instructions there?

Let me know if this helps. :)

Posted: Sunday Feb 26th, 2012 at 11:36 pm #6496

Yes, I have seen those instructions, read it several times and they are not clear:

“in cases where your localhost installation runs on something other than 127.0.0.1/localhost, you need to tell s2Member definitively, by adding that line to your /wp-config.php file”

ok, so we know my instalation runs on localhost/bbs/

What line needs to be added? Where and how?

I’ve been guessing and trying different lines for than 3 hours. Any ideas?

Posted: Monday Feb 27th, 2012 at 7:37 am #6509
Eduan
Username: Eduan
Moderator

Hi, thanks for the follow-up.

Could you please try adding this line of code:
define("LOCALHOST", true);

Into the following file:
wp-config.php
Which is found at the root of your WordPress installation, so it would be like:
www folder (WAMP installation) -> WordPress folder -> wp-config.php

Please tell us how it goes. :)

Posted: Monday Feb 27th, 2012 at 8:54 pm #6614

Ok, I’ve tried that again and its PARTIALLY working. Registration and Page Level restrictions work.

What is STILL NOT working is S2MEMBER CONDITIONAL SHORTCODES.

Any Ideas?

Posted: Tuesday Feb 28th, 2012 at 2:01 am #6644
Staff Member

Hi Angie. Thanks for your inquiry.

The LOCALHOST configuration option should have no impact on s2Member conditionals. It sounds like you have define("LOCALHOST", true) in your /wp-config.php file now, so you’re good there.

Let’s take a look now at the conditionals that you’re using please.
~ Please post a code sample that is causing you trouble, and we’ll help by reviewing that with you.

Posted: Thursday Mar 1st, 2012 at 11:58 pm #6947

Below is an example of the conditionals that are not working (in shortcode form). Both images are appearing in my localhost installation when I am on the page that contains them, and the [shortcode] text is showings {seems like the code is not running at all}. This happens if I’m logged out or logged in. Fair to say that on my live site they work fine.

[s2If current_user_can(access_s2member_level1)]
<a href="http://localhost/bbs/cursos/lenguaje-de-senas-para-bebe/modulo-1-introduccion/"><img class="size-full wp-image-1390 alignnone" title="Módulo Introducción" src="http://localhost/bbs/wp-content/uploads/2011/11/member-Modulo-Intro.jpg" alt="Módulo Introducción" width="204" height="115" /></a>
[/s2If]

[s2If !current_user_can(access_s2member_level1)]
<a href="http://localhost/bbs/cursos/lenguaje-de-senas-para-bebe/modulo-1-introduccion/"><img class="alignnone size-full wp-image-810" title="Módulo 1 Introducción" src="http://localhost/bbs/wp-content/uploads/2011/11/Modulo-Intro.jpg" alt="Módulo 1 Introducción" width="204" height="115" /></a>
[/s2If]
Posted: Friday Mar 2nd, 2012 at 5:12 am #7034

Hi Angie.

Are the shortcodes being used in pages served by WordPress or another script? They’ll only work in WordPress.

Posted: Saturday Mar 3rd, 2012 at 3:47 pm #7186

They are being served by WordPress. The exact same pages will work on my online server, but not on my WAMP localhost server.

Posted: Saturday Mar 3rd, 2012 at 9:55 pm #7203

I see. Could you compare the plugins you’re using in the local server that you aren’t using in the online one, and deactivate them? One of them may be causing a shortcode parsing problem. If not, try changing the theme to the default one. All this as a test, of course, just to find where the problem is so you can then figure out how to fix or replace it.

Viewing 9 replies - 1 through 9 (of 9 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.