WordPress.org

Ready to get started?Download WordPress

Forums

Archives not showing next/prev - windows only? crazy? (5 posts)

  1. anmari
    Member
    Posted 4 years ago #

    Hi I am going crazy here, so thought I'd post this just in case any one else has some ideas or can help m e see what I am not seeing.

    On my local windows apache server, the blog pages and the archives are not showing the next/prev posts, not matter how many posts I specify in the settings or how many posts I have.

    I have re downloaded and installed wp 3.0 manually. Deactivated all plugins, reinstalled twentyten 1.0 in case it was that, but it appears to be theme independent and still happens when no plugins - this is happening to all themes.

    I managed to track it down in includes>query.php to
    'found_posts' being 0 (although posts are displaying and not_found is false)
    which makes max_num_pages = 0, which means the "links" get skipped when loop.php checks it.

    This is not happening on my remote servers (also on 3.0 and 2010 theme).

    I have googled and tried checking the trac, but did not see anything that may explain or relate.

    I have to leave this a bit and somehow test my new plugin without this, but it is concerning. I had some weird query post behavior too where 'post_per_page' = -1 did not appear to work and was wondering if it is related?

    Anyone shed any light?

  2. koyder
    Member
    Posted 3 years ago #

    I'm having the exact same problem. See here:

    http://wordpress.org/support/topic/max_num_pages-is-0-but-subsequent-pages-exist?replies=1

    Did you manage to find a solution?

  3. notemper2x
    Member
    Posted 3 years ago #

    i fixed it just now.

    change the line php.ini:
    mysql.trace_mode = Off;

    restart apache

    it's ok :-D

  4. anmari
    Member
    Posted 3 years ago #

    Wow - thank you - that did it!

    I switched it back and off and that absolutely was it ...
    I normally test with all errors on, so would like to have left that switched On.

    For others info: the reason is a php bug apparently with no easy fix:
    http://bugs.php.net/bug.php?id=33021

    See also:
    http://www.codeunit.co.za/2010/03/16/why-does-found_rows-keep-returning-1/

    http://wordpress.org/support/topic/page-navi-not-working-with-mysql-5134-amp-php-529?replies=16

  5. koyder
    Member
    Posted 3 years ago #

    Thank you so much, notemper2x!

Topic Closed

This topic has been closed to new replies.

About this Topic