• I have a strange issue that has appeared since 3.2, and persisted in 3.2.1. In my page navigation a URL domain.com/page/2/ redirects to domain.com/2/

    I have reset the permalinks by setting default, and then reverting to a non-custom permalink structure without any success.

    I am operating 3.2.1 in a multipress environment.

    Anyone have a similar problem or offer any suggestions. My site was working perfectly prior to 3.2

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter jameswilliams90

    (@jameswilliams90)

    that should read 3.2.1 in a multiuser environment.

    Thread Starter jameswilliams90

    (@jameswilliams90)

    Discovered Plugin conflict with BuddyPress Activity Plus from WPMUDEV.ORG – lodged with WPMU.

    I’m having this problem too, or at least something very similar–If I manually enter domain.com/?page=2 it works and I get the correct pagination, but using “pretty” permalinks domain.com/page/2 gives me a 404 error.

    I’m in WordPress 3.1.3, am about to upgrade to 3.2.1 in hopes that solves the problem, though I fear from the comments above it will not.

    Upgrade to 3.2.1 didn’t solve it. I also have deactivated all plugins and the problem persists.

    I should say that this only happens when using my site’s home page template, wherein I am paginating based on a custom query, like this:

    $wp_query = new WP_Query();
    $wp_query->query(array('cat' => '-268', 'post__not_in' => $posts_used, 'showposts'=> '24', 'paged' => $paged)); ?>

    I also have a bit of code to work around the change in pagination that was made in WordPress 3.0.2:

    global $paged; // wp 3.0.2 $paged workaround
    	$my_page = get_query_var('paged');
    	if (!$my_page) $my_page = get_query_var('page');
    	if (!$my_page) $my_page = 1;
    	set_query_var( 'paged', $my_page );
    	set_query_var( 'page', $my_page );
    	$paged = $my_page;
    	$page = $my_page;

    Thanks in advance for any ideas/suggestions.

    I got excited for a minute, but I still haven’t solved it. I thought I had encountered this problem:

    https://www.kriesi.at/support/topic/pagination-doesnt-work-using-a-static-page-as-frontpage

    Apparently it’s now impossible to perform a custom query and paginate the results from a static front page, which is exactly what I was trying to do. To verify, I turned off the static front page in the settings, and lo and behold, i was able to page through results again. I then renamed the custom page template I had been using for the static front page to index.php so it would still be loaded from the homepage. Unfortunately, my custom pagination is still returning a 404.

    I did notice something new though. When I enter the url for the second page of pagination, either https://domain.com/page/2/ OR https://domain.com/?paged=2, it redirects to https://domain.com/2/. At which point, according to the query object which I’m printing from my 404 page template, [category_name] => 2, [paged] => 0 and [page] doesn’t even exist. Not sure how that happened or what it means, but somehow it’s turning the paged variable into a category name.

    I have now spent way too much time on this.

    An interesting wrinkle: now that I switched to having the front page display my latest posts and using index.php as my homepage template, the pagination 404 error only occurs on pages 2 through 4 out of 12 total pages. Here, look on my testing site:

    https://weightless.joskinandlob.com/
    https://weightless.joskinandlob.com/page/2/
    https://weightless.joskinandlob.com/page/3/
    https://weightless.joskinandlob.com/page/4/
    https://weightless.joskinandlob.com/page/5/

    The first and last links (and all the other numbered pages) will work. 2 through 4 will show my 404 page.

    Why would this happen?

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Esmi,

    Thanks very much for the reply–but I think (fingers crossed) the index.php switch actually did solve the problem. I should have deleted my browser cache sooner. ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Since 3.2 upgrade domain.com /page/2/ redirects to domain.com/2/ causing 404’ is closed to new replies.