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™

how can I block people from seeing sidebar on 404 page

s2Member Plugin. A Membership plugin for WordPress®.

how can I block people from seeing sidebar on 404 page

Postby Lesley » December 30th, 2011, 9:23 pm

Hello,
I've just published an informational page about my private membership blog that I hope to launch in a week or so. I've discovered that my site is showing up in Google searches and some people have visited the google link, gotten the 404 page message, but they can see all that is in my sidebar and the header and such.

My theme doesn't allow me to change the template for that page, and I don't know how to change code to do it (I've made all my tweaks by adding CSS in the custom includes box). I really don't want anyone to be able to see the sidebar as it shows so much of what is on the site. And I've got alot of work in the week ahead and don't want to be worrying about this. I've got all the restriction settings to all pages and posts.

Can you please help?
Last edited by Lesley on January 15th, 2012, 5:48 pm, edited 1 time in total.
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Cristián Lávaque » December 31st, 2011, 6:56 am

Lesley, have you checked the alternative views protection? WP Admin -> s2Member -> Restriction Options -> Alternative View

And what URL is giving you the 404? Have you chosen a Membership Options page? WP Admin -> s2Member -> General Options -> Membership Options Page

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » December 31st, 2011, 11:03 am

Hello Cristian,
The URL is a Google search result. I Googled *removed* and this came up on the second page:

*removed*

...and when clicked, it takes you to a page of mine with the sidebar and the message "Not Found

Sorry, but you are looking for something that isn't here"

tho' it just says "*removed*.com" in the browser bar...no page URL. I looked at the Alternative Views page and it is already checked.

Any more ideas?
Last edited by Lesley on January 21st, 2012, 9:22 pm, edited 1 time in total.
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Eduan » December 31st, 2011, 12:26 pm

Are the things in this post configured correctly?:
viewtopic.php?f=36&t=1066
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: how can I block people from seeing sidebar on 404 page

Postby Lesley » December 31st, 2011, 2:59 pm

Yes, under Settings, the URL is without the www. as is the URL in the Google search results that take you to that page and as all my settings have it.

I just tried typing in http://*removed* and it switched to the URL without the www.

I guess I don't know why the 404 page is so high in the Google search results since it shouldn't come up, right? The MOP should come up?
Last edited by Lesley on January 21st, 2012, 9:23 pm, edited 2 times in total.
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 2nd, 2012, 9:55 pm

Are you using a Static Page for the Front Page (WP Admin -> Settings -> Reading -> Front page displays)? If so, is that set to the same page as your Membership Options Page? (It probably should be... I assume the front page isn't supposed to be displaying a 404 page, right?)

If you're not using a Static Page, or if it's already set to the same page as your Membership Options page, then that tells me you have a problem with the PHP code in your theme's index.php file which is then generating a call to the 404 page.

The problem with the 404 page displaying the sidebar can be resolved by Creating an Error 404 Page and making sure that it doesn't include a call to the sidebar.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 3rd, 2012, 11:25 am

Thanks so much for trying to help. But I think I am just going to leave this for now. No one has visited via that Google search for a few days, so it is probably not worth spending time on. I have been ill with the flu for the past four days and am so behind with adding content to my new site...I think I shall focus on that when I am well enough to.

Thanks again!
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 3rd, 2012, 4:09 pm

I hope you get well soon! Let us know if you have any other questions.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 11th, 2012, 6:32 pm

Hello again,
All better and hoping to open my site to membership in a few days....still would like to get this sorted out. I noticed today (and a friend who is member already and helps me test also experiences this) that when we logout, we are redirected to this same page:

Error 404 - Not Found
Sorry, the page that you are looking for does not exist.

I suppose there is something configured wrong somewhere?

In answer to your previous questions, my front page is not a Static page, but a page of posts, to work with the magazine template and excerpts.

And do you mean that somewhere in the s2member settings I should have my front page set as my MOP?
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 12th, 2012, 5:26 pm

Can you tell us what URL appears in the address bar when you get the 404?

Also, I just tried visiting www.wisteriansunshine.com and I'm not able to access the site (it just doesn't load... as if the server is down).
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 12th, 2012, 5:43 pm

Hello there,
The URL is just http:/*removed*

And I am sorry that I seem to have added an unnecessary "n" when I first typed in my URL...that is fixed now.
Last edited by Lesley on January 21st, 2012, 9:24 pm, edited 1 time in total.
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 12th, 2012, 6:09 pm

Could you try activating the default TwentyTen theme? If it works with TwentyTen, then you have a problem with your theme configuration.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 12th, 2012, 6:27 pm

Same result....just a slightly different message:

Not Found
Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 12th, 2012, 6:34 pm

Do you have any blog posts published yet?
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 12th, 2012, 6:39 pm

Yes, I have alot of posts and pages published, but haven't "opened for business yet".
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 12th, 2012, 7:41 pm

If you disable s2Member, do you still have this problem? (Be sure that Deactivation Safeguards are turned on in WP Admin -> s2Member -> General Options so that you don't lose any of your settings when disabling s2Member.)
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 12th, 2012, 9:30 pm

That was a bit scary...someone could have seen the site in the fifteen seconds s2member was deactivated! : )

Ok....so when I deactivated the front page loaded up instead of the error page.
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 13th, 2012, 4:31 pm

Could you please tell me what settings are configured in all the panels in WP Admin -> s2Member -> Restriction Options (including Alternative View Protection)?
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 13th, 2012, 4:42 pm

posts, pages, tags, categories are "all" restricted, well, the first two levels anyway, since I don't have levels of membership

nothing in the URI boxes

the "protect alternate views" are all clicked

nothing in the specific page/post restrictions and the last two just have the default entries
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 13th, 2012, 7:50 pm

Hmm, if all the posts and pages are restricted, what are you expecting to show up on the front page? :)
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 13th, 2012, 8:18 pm

Now you are confusing me! : )

It means restricted until you are a member, right? Atleast no one who has joined (as a test) has had trouble seeing anything they want.
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 13th, 2012, 8:49 pm

Right, but if everything is restricted, then where do people go to sign up? Have you chosen a Membership Options page? WP Admin -> s2Member -> General Options -> Membership Options Page
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 13th, 2012, 9:01 pm

Yes...and my understanding is that is never restricted? There are Paypal buttons on there...but here we are back to where we started, because tho' the MOP should come up when someone tries to visit my website but isn't a member, the "not found" page comes up instead.
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Raam Dev » January 14th, 2012, 10:22 pm

What happens if you set the front page to be a static page and choose your Membership Options Page as the Front Page in WP Admin -> Settings -> Reading Settings?
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: how can I block people from seeing sidebar on 404 page

Postby Lesley » January 15th, 2012, 12:08 am

I don't know as I have to have it as "page of posts" to get the magazine template and excerpts to work..and now my site is live so I don't want to confuse all the new members there. It's a puzzle.
User avatar
Lesley
Registered User
Registered User
 
Posts: 45
Joined: June 23, 2011

Next

Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron