Forums

[resolved] Upgraded to 2.5, now pages don't display...WTF? (104 posts)

  1. Latintop
    Member
    Posted 3 months ago #

    I'm investigating and had found that if I change my permalink wp works.
    Right now I'm using: /index.php/%postname%/%year%/%monthnum%/%day% that doesn't works. Default works, also /index.php/%year%/%monthnum%/%day%/%postname%
    I think that WP 2.5 can't differenciate a page from a post if %postname% follows index.php/ anyone knows where WP 2.5 checks the url to apply permalink?
    Can you post your permalinks that doesn't works so I can confirms my thoughts?
    Thanks

  2. Wanda22
    Member
    Posted 3 months ago #

    I'm experiencing a similar problem. At first I thought its the template (I made it and its my first). But changed themes and the same thing. Some posts are shown, about 10%. Takes the header, shows the title, ratings and all and jumps straight to entries navigation. No content!
    I'm so confused! I'm really bad at all this WP stuff, all I did was based on guess and a lot of reading.

    And I checked the content code it is in the single.php file. :(

    Any advices for a girl new to this? :D

    Thanks in advance,
    Wanda.

  3. Wanda22
    Member
    Posted 3 months ago #

    Guess what? I just deactivated 'WP lightbox 2' and 'Add Lightbox' plugins and my content its showing to all!
    Yay! Hope this information is useful. :)

  4. c0y0te
    Member
    Posted 3 months ago #

    Unfortunately I don't have those plugins, but I did deactivate all my plugins while testing this issue and it made no difference.

  5. Pitchslap
    Member
    Posted 3 months ago #

    I deactivated my plugins too, nothing changed. I'm running Adsense manager, all-in-one seo, cystats, democracy, democracy widget, feedburner feedsmith, google adsense widget, sociable zyblog edition, vipers video tags, wordpress.com stats, wordpress video plugin, wp captcha free. Does anyone know if one of those plugins causes the problem?

    I've contacted my host and after a bit of begging and pleading they say they'll switch me over to a linux package free of charge.
    Will this definitely solve my problems? Did this work for you coyote?

  6. c0y0te
    Member
    Posted 3 months ago #

    I'm still waiting on some helpful advice Pitchslap about the best way to migrate over. See the following link for more info:-

    http://wordpress.org/support/topic/165228?replies=3

    I've bought the hosting contract, secured the new domains for testing purposes and all that remains is for me to figure out how to migrate across with the differing permalinks and categories.

    All help greatly appreciated. I don't want to waste a weekend doing it the wrong way, so if anyone can advise me, then please do so. Thanks.

  7. Latintop
    Member
    Posted 3 months ago #

    In my case page is loading with post template (single.php) not page template (page.php)
    It looks like WP 2.5 is thinking that a page is a post. Maybe because it create a match for every level? %page%/%year/%monthnum% is converted to %page% and %page%/%year% and %page%/%year%/%monthnum% ? Any WP programmer here? In previus versions this works!
    Thanks,
    Jorge

  8. danbutcher
    Member
    Posted 3 months ago #

    I've been reading about how WP rewrites URLs and came across this post from Mark Jaquith (http://markjaquith.wordpress.com/2007/09/25/wordpress-23-canonical-urls/); he concludes with a link to a simple plugin that solved my problem. Hope it helps some of you as well.

  9. Latintop
    Member
    Posted 3 months ago #

    Hello.
    I fixed this error on my website. In my case the problem was that wp2.5 was not able to recongnize a page because my permalink started with %postname% so I modified wp-includes/query.php
    I added:

    } elseif ( ('' != $qv['name']) && ('' == $qv['year']) ) {
    			$this->is_single = false;
    			$this->is_page = true;

    Before:

    } elseif ( '' != $qv['name'] ) {
    			$this->is_single = true;

    Now wp looks if the file also had a year (it could be monthnum or day) so it can recognize a page as a page index.php/page-name
    This only fix the case when you use index.php/%postname%/%other-variables%
    Hope this help you. Sorry for my English :/

  10. c0y0te
    Member
    Posted 3 months ago #

    Latintop,

    I tried updating my query.php file with that code and reloaded it up to my site but it made no difference. I still can't see my pages.

  11. shafeng
    Member
    Posted 3 months ago #

    thank you Latintop.

    I fix this problem too by modified wp-includes/query.php.

    Now my page is work.

    you are all right.

    my blog:

    http://shafeng.cn

  12. shafeng
    Member
    Posted 3 months ago #

    oh

    I find the page is work.
    but the post is not work.

    this code is not right all.

    :(

  13. Latintop
    Member
    Posted 2 months ago #

    Shafeng.
    My fix only works if your permalink is different than page link. In my case page is /index.php/<page-name> and post is index.php/<post-name>/%year%/%monthnum%/%day% this way wp can distinguish between post and page.
    c0y0te, can you post your permalink?

  14. c0y0te
    Member
    Posted 2 months ago #

    Latintop,

    my permalink currently is /index.php/%category%/%postname%/

    Right now I can see posts, but can cannot see any pages, even though they are in the DB.

    If you're a wiz with permalinks maybe you can also help me out with an even bigger question? Check out the link below. Thanks

    http://wordpress.org/support/topic/165228?replies=7

  15. shafeng
    Member
    Posted 2 months ago #

    ??

    my permalink is:
    http://shafeng.cn/index.php/%postname%
    ===============================================
    In my case page is /index.php/<page-name> and post is index.php/<post-name>/%year%/%monthnum%/%day%
    ===============================================
    how set this permalink ??
    can permalink set to different?

  16. gjensen
    Member
    Posted 2 months ago #

    I tried changing the permalinks but it had no impact.

    When I tried to write a post it didn't post and now it shows a blank page for "write"

    In "manage" only some files open and it will not let me edit anything--and after I attempted the edit, all I get is blank page for "manage"

    Any help appreciated!

  17. saeednajafi22
    Member
    Posted 2 months ago #

    I think we should wait for WP 2.5.1
    ...

  18. takeabreak
    Member
    Posted 2 months ago #

    Is that all we can do?? Come on Wordpress - help.. I'm not changing my hosting !!

  19. c0y0te
    Member
    Posted 2 months ago #

    Unfortunately there has been nothing but silence from the WP team on this issue, even though I logged a defect and posted here about it, and even though there are many of us who have experienced the issue.

    The silence is deafening :(

  20. thewidelens
    Member
    Posted 2 months ago #

    Hi good people,

    I encountered the same problem and got 404 instead of category pages which was bad.
    I had the "advanced permalinks" plugin installed- I deactivated it and now using the default WP2.5 permalinks option and it works fine so far.

    I'm still digging around my website looking for problems, will report if I find any.

    If it helps you in anyway to take a look this is where http://www.thewidelens.com

    I hope this helps at least some of you- it was very frustrating indeed.

    Tal

  21. hannamyluv
    Member
    Posted 2 months ago #

    I am having the same problem. We are on Apache and were using custom permalinks.

    Every page returns the 404 not found page.

    It is also not listing the categories (though oddly it will list the number of posts per cat, go figure)

    I can say that we had upgraded from 2.3 to 2.5 so I don't know if that makes a diff.

    I do recall a slight hicup when I upgraded in that the upgrading database page popped up twice. I thought it had to do with skipping a few upgrades, but now I am not so sure...

  22. ojrask
    Member
    Posted 2 months ago #

    I've been getting this same thing with my development version (local hosting) on which I create themes and test various things. Haven't dared to upgrade my online version after noticing this behaviour.

    This began after upgrading to 2.5, and I did everything said on the upgrade guide(s).

    But I can see it definetly is something caused by the permalinks. When using “(possible /index.php/) category > postname”, no pages display. But when switching to “year > month > day > postname”, pages work flawlessly. Tried with two databases, and the other database was a backup before the 2.5 upgrade.

    It's good that it works with some kind of a permalink structure, but I'd prefer the “category > bla” instead of a “date > bla”. :/

  23. jpmachanov
    Member
    Posted 2 months ago #

    Hi,

    I am experiencing the same problem with my blog http://www.alain-bazot.fr/

    As you can see, all the posts work fine, but all the pages deliver a 404 error message !

    Like you, I have just upgraded my WP from 2.3.3 to 2.5.

    I used the "almost pretty permalink" (/index.php/%postname%/) structure and it worked properly when I blogged with WP-2.3.3 !

    My config : Apache/1.3.34 (Debian) PHP/5.2.0-8+etch4

    Is WP2.5.1 coming soon? lol

    Goog night ;-)

  24. Jacorre
    Member
    Posted 2 months ago #

    Hey everyone, same issue here. I upgraded from 2.3.3 to 2.5 and now my pages are returning a 404 error page. My posts were working fine, it was just an issue with the pages. I am using a custom permalink /index.php/%category%/%postname%/.

    Once I changed the permalink to the default, the pages were working again.

    This wasn't an issue with the previous version so I'm not sure why it's an issue now?

  25. dlo
    Member
    Posted 2 months ago #

    I found a solution and posted it in the bug tracking tool of WordPress.

    May be you can test it and use it before WordPress gurus include it in the next version...

    Hope it can help!

    Best regards

  26. user99
    Member
    Posted 2 months ago #

    Hi everybody,

    just writing to let others know that this fix worked for me.
    The permalink structure I'm using is:
    /index.php/%postname%/

    Good work dlo!

  27. jpmachanov
    Member
    Posted 2 months ago #

    Hi there,

    This fix worked for me too !

    • The permalink structure I'm using is also: /index.php/%postname%/
    • I use the new version "2.5" of WP upgraded from 2.3.3
    • I use Apache/1.3.34 (Debian) PHP/5.2.0-8+etch4

    Thx a lot Master Chief dlo ;-)

    PS: post your results pals!

  28. c0y0te
    Member
    Posted 2 months ago #

    I copied down the new 'rewrite.php', uploaded it to my site and tested, but it made no difference. I've still got the issue where I cannot see any pages displayed.

  29. dlo
    Member
    Posted 2 months ago #

    @cOyOte:
    After you upload the new rewrite.php, you have to turn your permalinks to the default, save this option, then turn on your custom permalinks and save it again. By doing so, WordPress is forced to regenerate its rewrite rules completely. And you'll get a chance to see it working...

    Best regards

  30. c0y0te
    Member
    Posted 2 months ago #

    @dlo,

    YOU'RE A FREAKIN' GENIUS :)

    Thanks for that additional bit of info, my pages are now viewable again.

Reply »

You must log in to post.

About this Topic