WordPress.org

Ready to get started?Download WordPress

Forums

Missing "Older posts"/"Newer posts" navigation links at bottom of page (12 posts)

  1. Suthurnbel
    Member
    Posted 2 years ago #

    Pardon me if this is a duplicate question but I've search through all the old posts looking for a solution and haven't had much luck. I recently upgraded my WP to 3.3.1 and have since noticed that my navigational links at the bottom of my home page are missing. I can't say for sure that this was indeed a result of the upgrade but that is the only change I can recall since the last time I noticed them there. My site is http://www.lorimercer.com. If you go to http://lorimercer.com/?paged=2 you see "newer posts" link but not the "older posts" link. If you go to a post's link - http://lorimercer.com/?p=2609 - you see both. If you search for a post it displays the posts names instead of "older" or "newer". This whole thing has got me totally baffled and several other techies that I've had help me look at this. I don't know exactly where to turn for help. Any ideas?!?

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    have you asked the theme author/seller - this seems to be a commercial theme, and contacting the seller should be the first thing to do if you have problems.

    without the free access to all theme fles, there is not much this forum can help.

    general:
    try to find the code for the page navi in the template for the front page (index.php ?)

  3. Suthurnbel
    Member
    Posted 2 years ago #

    Yes, I started there first and they determined the problem to be unrelated to the theme because when deactivated the same problem occurs. I've sought help from my web host but they are not versed in WP. I'm at a loss for where to go now.

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    because when deactivated the same problem occurs

    does this mean, you have switched themes to Twenty Eleven, and only the 'newer posts' link appears - no 'older posts' link?

    if the problem is not theme related, it might be caused by a plugin;

    try and deactivate all plugins to see if that solves the problem;
    then re-activate one plugin at a time to find out which one is causing the problem.

    you could also try to find the code of the links;
    possibly in index.php (difficult to tell without access to your theme files) somewhere after the 'endwhile' of the loop; something like:

    <p id="adjacent-posts-links" class="sc content-bg">
    	<span class="prev-post-link-wrap"><?php ??? ?></span>
    	<span class="next-post-link-wrap"><?php ??? ?></span>
    </p>
  5. Suthurnbel
    Member
    Posted 2 years ago #

    Yes, switched themes no luck, deactivated plugins with no luck. This is the response from research done by ProPhoto (developer of the theme I use):

    There's something happening wrong with a basic part of the WordPress initiation process, where it counts the number of posts that are in the database. Your site keeps returning 0.

    Can you contact your web-host tech support and have them help you? Tell them the problem is occurring no matter what WordPress theme. Tell them that the relevant script portion is in a file:

    wp-includes/query.php

    at approximately lines 2654 and following. In that chunk of code WordPress counts the number of posts and sets up two variables:

    $query->found_posts
    $query->max_num_pages

    the first one, in your case is returning 0, even though you have many posts. The actual database query is:

    SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') ORDER BY wp_posts.post_date DESC LIMIT 0, 5

    Anyway, have them look into this, there's something happening at the database/server level that they will need to sort out for you.

    My problem now is that my host has supposedly reinstalled WP and checked the database and said everything is fine. Period. ProPhoto said that it has nothing to do with their software. I'm stuck between two providers that say it is not them and in the end have a website that won't navigate past the first page.

  6. bfsmith
    Member
    Posted 2 years ago #

    Based on your site, it looks like you resolved the issue. How did you do it?

    I am having a similar issue--the "older posts" link is missing on a category page after upgrading to WP 3.3.1.

  7. Suthurnbel
    Member
    Posted 2 years ago #

    Unfortunately it is patched not fixed just yet. I ended up having to hire a software engineer to work on it and come to find out he just did a code change within the files of ProPhoto. ProPhoto said that is really just a band-aid for the problem and as soon as the next update comes out it will become a problem all over again. ProPhoto seems to think it is a problem on the server but my host denies there is a problem there. I'm caught between the two. It looks like I might have to change hosts to truly resolve the issue. :/ What a pain!

  8. Suthurnbel
    Member
    Posted 2 years ago #

    bfsmith - who is your host?

  9. bfsmith
    Member
    Posted 2 years ago #

    Network Solutions is the host.

    It ended up being a platform issue for us--we use Pagelines.

  10. Suthurnbel
    Member
    Posted 2 years ago #

    Interesting...can you elaborate? What is pagelines?

  11. bfsmith
    Member
    Posted 2 years ago #

    Since my issue was with a Category page, I had to add the "Post/Page Pagination" section back to the template for Category pages. I think this section was deactivated when I upgraded from the Platform Pro theme to the Pagelines Framework. The framework is similar to a theme, but provides some additional functionality which is why they give it a different name, I think.

  12. Suthurnbel
    Member
    Posted 2 years ago #

    Hmmm my problem seems to be happening regardless of the theme. It has been patched inside my current theme but the next time they upgrade it will likely be a problem again.

Topic Closed

This topic has been closed to new replies.

About this Topic