• Hi,

    I’ve installed WordPress 3.04 on my fasthosts hosting service and it’s working fine apart from the pagination of the pages where the link is broken. I have 20 pages now, so the pagination page number buttons apppear in the top and bottom right ( [1] [2] etc), but when I click on them I’m taken to this page: /wp-admin/edit.php?paged=2 where the title is no longer ‘Pages’ but ‘Posts’ and the pages cannot be found. Can anyone help?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter JohnCooper

    (@johncooper)

    I’m still getting getting this error and I’ve looked high and low for solutions, it’s also affecting my ability to add images, as it only shows the last few. Any suggestions? I’m hosting on fasthosts.

    Thread Starter JohnCooper

    (@johncooper)

    OK, it’s been other a month and now I’ve spoken the two other people with exactly the same problem, which remains unresolved. So the conclusion I’ve come to is not to use fasthosts at all and move to another hosting service. AVOID FASTHOSTS!

    I have the same issue and I’m on a VPS, not Fasthosts.

    There is another thread with the same issue, still not solved.

    Thread Starter JohnCooper

    (@johncooper)

    Cheers Philpeter, I’m glad it’s not me going mad. Hopefully it will be addressed in a futture release, until then I’m having to move hosts ;(

    REBOOTTHAT

    (@rebootthat)

    Hi guys,

    I created my own little hack for this…

    In WordPress 3.1…

    Open WordPress/wp-admin/class-wp-list-table.php

    Just above extract( $this->_pagination_args ); add this code:

    =================

    $tempVar = '';
    if($_GET['post_type'] != ''){$tempVar = "&post_type=".$_GET['post_type'];}
    if($_GET['page'] != ''){$tempVar = "&page=".$_GET['page'];}

    =================

    There should be about four lines that have this code (495, 502, 522, 529):

    $page_links[] = sprintf( "<a title='%s' href='%s'>%s</a>",

    Change everyone to:

    =================
    $page_links[] = sprintf( "<a title='%s' href='%s".$tempVar."'>%s</a>",
    =================

    ************ ONLY FOR EARLIER VERSIONS ****************
    In earlier versions of WordPress you need to modify WordPress/wp-includes/general-template.php

    Add this to line 1978:

    =================

    $tempVar = '';
    if($_GET['post_type'] != ''){$tempVar = "&post_type=".$_GET['post_type'];}
    if($_GET['page'] != ''){$tempVar = "&page=".$_GET['page'];}

    =================

    And on these lines with (1989, 2003, 2017):

    esc_url( apply_filters( 'paginate_links', $link ) )

    Add .$tempVar. to the end … So

    $page_links[] = "<a>$prev_text</a>"; 
    
    $page_links[] = "<a>$n_display</a>";
    
    $page_links[] = "<a>$next_text</a>";

    Anyway was driving me nuts until I programmed the fix.

    I am also hosting on Fasthosts, but have suspicion that is could be something to with Windows hosting.

    Goodluck!

    REBOOTTHAT

    (@rebootthat)

    Guys, sorry.

    When I said:

    Open WordPress/wp-admin/class-wp-list-table.php

    I meant:

    Open WordPress/wp-admin/includes/class-wp-list-table.php

    😉

    I can only speak for 3.1.2 but the line you’re looking for that needs replacing 4 times is:
    $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",

    Comes in handy when using search/replace.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Admin Pages pagination broken – going to posts’ is closed to new replies.