Page 1 of 1

Pagenavi takes to a post instead of next page

PostPosted: November 18th, 2011, 4:00 am
by chaplin35
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.

Re: Pagenavi takes to a post instead of next page

PostPosted: November 19th, 2011, 10:31 am
by chaplin35
Any ideas guys?

Re: Pagenavi takes to a post instead of next page

PostPosted: November 19th, 2011, 9:12 pm
by Raam Dev
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.

Re: Pagenavi takes to a post instead of next page

PostPosted: November 20th, 2011, 6:28 am
by chaplin35
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

Re: Pagenavi takes to a post instead of next page

PostPosted: November 20th, 2011, 3:42 pm
by Raam Dev
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/".

Re: Pagenavi takes to a post instead of next page

PostPosted: November 20th, 2011, 5:06 pm
by chaplin35
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

Re: Pagenavi takes to a post instead of next page

PostPosted: November 20th, 2011, 5:20 pm
by chaplin35
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

Re: Pagenavi takes to a post instead of next page

PostPosted: November 21st, 2011, 12:45 pm
by chaplin35
What should I look for now?

Re: Pagenavi takes to a post instead of next page

PostPosted: November 25th, 2011, 1:19 am
by Jason Caldwell
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?

Re: Pagenavi takes to a post instead of next page

PostPosted: November 28th, 2011, 6:36 pm
by chaplin35
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

Re: Pagenavi takes to a post instead of next page

PostPosted: November 28th, 2011, 7:46 pm
by Raam Dev
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

Re: Pagenavi takes to a post instead of next page

PostPosted: November 28th, 2011, 8:01 pm
by chaplin35
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...

Re: Pagenavi takes to a post instead of next page

PostPosted: November 28th, 2011, 9:39 pm
by Raam Dev
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.

Re: Pagenavi takes to a post instead of next page

PostPosted: November 29th, 2011, 3:30 am
by chaplin35
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 :)

Re: Pagenavi takes to a post instead of next page

PostPosted: November 29th, 2011, 6:57 pm
by chaplin35
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 :)

Re: Pagenavi takes to a post instead of next page

PostPosted: December 1st, 2011, 12:52 am
by Raam Dev
Thanks for the update! Glad you were able to fix it. :)