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™

Pagenavi takes to a post instead of next page

s2Member Plugin. A Membership plugin for WordPress®.

Pagenavi takes to a post instead of next page

Postby chaplin35 » November 18th, 2011, 4:00 am

Hi guys.

I have your wonderful free plugin installed on http://www.rabieswhitelabelz.com (well, had until I found a strange behaviour). When the plugin was activated, members and none members who scrolled to the bottom of the page to go to page 2 were redirected to a post "2 minutes later". When you clicked on Page 3 you got to "3.A.M." post, page 4 to "4 Flies on...", page 5 to "$5 a day" and so on. I have installed the same design and activated s2members on another website http://www.247computerhelp.com When you click on the Pagenavi there it just comes up with an error saying "Post not found" instead of taking you to Page 2
So as I said I've deactivated s2members on http://www.rabieswhitelabelz.com and will use 247computerhelp.com for testing.
Would anyone be able to help me out with this problem? Thanks in advance.
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby chaplin35 » November 19th, 2011, 10:31 am

Any ideas guys?
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby Raam Dev » November 19th, 2011, 9:12 pm

Hi chaplin35,

Can you copy and paste the contents of your .htaccess file here? It sounds like there might be something strange going on with your WordPress rewrite rules.

Do you have access to your web server error logs by any chance? Looking at what gets logged to the error log when you try to access Page 2 will also help diagnose this problem.

Also, have you tried disabling all other plugins except s2Member? It's possible another plugin is conflicting and causing problems.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Pagenavi takes to a post instead of next page

Postby chaplin35 » November 20th, 2011, 6:28 am

Thanks for yuor input.
My test site, the www.247computerhelp.com has no plugins activated so I don't think this is the problem. Anyway, I turned all the installed plugins on, including s2members and after that I couldn't navigate to Page 2. Then I turned all the other plugins off except s2members and still didn't work. Then I turned S2 off and all the others on and it worked. So I'm pretty sure some incompatibility there with my theme and S2.
This is .htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

I do have access to log files, what should I be looking for there? I can access it via the FTP
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby Raam Dev » November 20th, 2011, 3:42 pm

I just tried http://247computerhelp.com/page/2/ and it seems to be working now. Did you fix it?

If you're still having problems, download your Apache error_log and then open it with a text editor. Search for your IP address (get that here: http://whatismyip.com) and then look for any errors related to accessing "/page/2/".
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Pagenavi takes to a post instead of next page

Postby chaplin35 » November 20th, 2011, 5:06 pm

I had s2 members deactivated so I went in to reactivate it again. Go and have a look if you can. I'll see what I can find from the log file meanwhile.

Thanks
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby chaplin35 » November 20th, 2011, 5:20 pm

I can't find an error_log. There are access.log's, ftp.log's, mail.log's and then some traffic and info files. Additionally Traffic.html folder
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby chaplin35 » November 21st, 2011, 12:45 pm

What should I look for now?
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby Jason Caldwell » November 25th, 2011, 1:19 am

Thanks for the heads up on this thread.

Do you have any URI Restrictions configured on either of these sites?
See: Dashboard -> s2Member -> Restriction Options -> URI Restrictions.

If so, what are they?
If not, what other Restriction Options have you configured. Screenshots would be great, if possible.
Do you have s2Member -> Restriction Options -> Alternative View Restrictions enabled?
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Pagenavi takes to a post instead of next page

Postby chaplin35 » November 28th, 2011, 6:36 pm

Hi Jason

I've installed S2Member plugin on a brand new website with the same theme I've been struggling on my other sites. There is only WP 3.2.1 and S2Members plugin installed - nothing else has never been installed.
Website is here: http://www.iphonemechanic.co.uk
I've enabled member plugin, configured to protect ALL posts, no pages are protected. There are 2 pages on the Menu - DVD Labelz and TV Labelz. DVD Labelz is assigned as a Static homepage on WP Settings - Reading. I have assigned 1 post per page to get the pagenavi up with limited posts.
When on Homepage, there is pagenavi on the bottom of the page. Click on Page 2, shows that it's gonna go to: http://www.iphonemechanic.co.uk/page/2/ but instead takes you to http://www.iphonemechanic.co.uk/2/ which means 404 error.
But if you are on TV Labelz which isn't the home page it works perfect, clicking on Page 2 takes you to page 2.
If plugin is disabled Homepage works perfectly.
Any help would be really appreaciated.

P.S. Your previous questions:
Do you have any URI Restrictions configured on either of these sites?
See: Dashboard -> s2Member -> Restriction Options -> URI Restrictions. - Answer is NO
If not, what other Restriction Options have you configured. Screenshots would be great, if possible.
Do you have s2Member -> Restriction Options -> Alternative View Restrictions enabled? - Answer - Only restriction is ALL on Posts, nothing else is protected at all.

Thanks a lot
Last edited by chaplin35 on November 28th, 2011, 6:43 pm, edited 1 time in total.
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby Raam Dev » November 28th, 2011, 7:46 pm

chaplin35,

Could you try using the default TwentyTen theme? If everything works properly with the default theme, then the theme you're using might contain some incompatible JavaScript. In this case, this post may help: viewtopic.php?f=4&t=15824&p=52752#p52752
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Pagenavi takes to a post instead of next page

Postby chaplin35 » November 28th, 2011, 8:01 pm

Default TwentyTen doesn't allow me to use certain categories per page, like I had on my production theme, I had assined all dvd-labelz to DVD Labelz pages. So It's on TwentyTen now, but there are no posts on homepage...
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby Raam Dev » November 28th, 2011, 9:39 pm

Right, but with regards to s2Member, does using the TwentyTen theme appear to fix the Page Navi problems you were experiencing with the other theme?

We need to determine if the problem you're having with s2Member is related to the WordPress theme you're using, or if the problem is with a server configuration on your host.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Pagenavi takes to a post instead of next page

Postby chaplin35 » November 29th, 2011, 3:30 am

I do get Older and Newer Pages options at the bottom of the page and they work well.
I read from somewhere that someone had similar problem (not exactly though and not with your plugin) and it had something to do with having some code on the index.php regarding the fact that only certain categories were allowed on the front page - exactly my setup with my theme.
I have no idea about the code so I hope you're the man to help me out :)
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby chaplin35 » November 29th, 2011, 6:57 pm

OK, I got the solution - and it was soooo easy. I just had to change my Permalinks to /%category%/%postname%/ and problem solved. Thanks to Dan from ghostpool.com :)
User avatar
chaplin35
Registered User
Registered User
 
Posts: 12
Joined: November 18, 2011

Re: Pagenavi takes to a post instead of next page

Postby Raam Dev » December 1st, 2011, 12:52 am

Thanks for the update! Glad you were able to fix it. :)
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

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

cron