WordPress.org

Forums

"Pages" all give 404 errors (32 posts)

  1. ajkessel
    Member
    Posted 6 years ago #

    Using 2.6.1, serving from my own Debian server. At some point, all of my "pages" (i.e., not the posts) stopped working. Instead I get a 404 error for all of them. The posts and everything else seem fine. I've tried creating new pages and following the links to them and still I get a 404. I have a standard .htaccess file aside from some extra stuff for Gallery/wpg2 that doesn't seem to have anything to do with this issue. I'm not even sure how to begin troubleshooting. Apache error log offers no insight. Any recommendations?

  2. ajkessel
    Member
    Posted 6 years ago #

    Just pinging this group again. I can't for the life of me figure out why none of my "pages" work.

  3. Ripose
    Member
    Posted 6 years ago #

    Check in Dashboard > Settings > General . Are the 2 URL's correct?
    Check wp-config.php are the // ** MySQL settings ** // settings at the top correct?

    Hope this helps. Have a great day!

  4. Lorelle
    Member
    Posted 6 years ago #

  5. ajkessel
    Member
    Posted 6 years ago #

    Thanks for your responses. The URLs in the dashboard are correct and the MySQL settings in wp-config.php are also correct. Note that everything works in the installation (i.e., posts, RSS feeds, the dashboard, etc.) except pages.

    I checked out the bug report at http://wordpress.org/support/topic/189058 and fixes discussed there. First, it appears the problem was fixed in 2.6.1, and I'm using 2.6.2. I also tried moving index.php out of the way but that disabled the entire blog (even though I'm using a linux server). I also added category and tag bases, and that didn't help either.

    I'm still stumped.

  6. ajkessel
    Member
    Posted 6 years ago #

    By the way, here's the debug output for a broken page (with the parent path removed). Does this help anyone?

    Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in (PATH HERE)/wp-includes/functions.php on line 2146

    Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in (PATH HERE)/wp-includes/functions.php on line 2146

    Warning: Cannot modify header information - headers already sent by (output started at (PATH HERE)/wp-includes/functions.php:2146) in (PATH HERE)/wp-content/plugins/bad-behavior/bad-behavior/screener.inc.php on line 8

    Notice: Use of undefined constant livecal_spinner - assumed 'livecal_spinner' in (PATH HERE)/wp-content/plugins/livecalendar.php on line 36

    Notice: Use of undefined constant livecal_labeltype - assumed 'livecal_labeltype' in (PATH HERE)/wp-content/plugins/livecalendar.php on line 50

    Notice: Use of undefined constant livecal_dir - assumed 'livecal_dir' in (PATH HERE)/wp-content/plugins/livecalendar.php on line 57

    Notice: Undefined index: g2_validated in (PATH HERE)/wp-content/plugins/wpg2/wpg2.php on line 89

    Notice: Undefined index: g2_validated in (PATH HERE)/wp-content/plugins/wpg2/wpg2.php on line 101

    Notice: Undefined index: g2_validated in (PATH HERE)/wp-content/plugins/wpg2/wpg2.php on line 163

    Notice: Undefined index: cat in (PATH HERE)/wp-includes/query.php on line 525

    Notice: Only variable references should be returned by reference in (PATH HERE)/wp-includes/taxonomy.php on line 710

    Notice: Only variable references should be returned by reference in (PATH HERE)/wp-includes/taxonomy.php on line 609

    Notice: Undefined index: port in (PATH HERE)/wp-includes/canonical.php on line 187

    Notice: Undefined index: query in (PATH HERE)/wp-includes/canonical.php on line 187

    Notice: Undefined index: port in (PATH HERE)/wp-includes/canonical.php on line 187

    Notice: Undefined index: query in (PATH HERE)/wp-includes/canonical.php on line 187

    Warning: Cannot modify header information - headers already sent by (output started at (PATH HERE)/wp-includes/functions.php:2146) in (PATH HERE)/wp-content/themes/water-10/404.php on line 1

    Warning: Cannot modify header information - headers already sent by (output started at (PATH HERE)/wp-includes/functions.php:2146) in (PATH HERE)/wp-content/themes/water-10/header.php on line 1

    Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in (PATH HERE)/wp-includes/functions.php on line 2146

    Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in (PATH HERE)/wp-includes/functions.php on line 2146

  7. Ripose
    Member
    Posted 6 years ago #

    This should explain part of the problem: Documentation Link

    Also check your Server Error logs.

    Mobile 1 Pet Wombat Landing Platform: Signing off...

  8. ajkessel
    Member
    Posted 6 years ago #

    Nothing useful in server error logs.

    I don't think the "cannot modify header information" is relevant here. The reason we're seeing that error is with WP_DEBUG on, deprecated functions are triggering error messages. Those error messages are what is causing the "cannot modify header information," at least in the first several instances. If I silence the deprecated function warning and turn WP_DEBUG on, I get a lot fewer errors. Still not sure if any of these are the clue to my problem of pages all giving 404 errors. Maybe it is the canonical.php issue?

    Notice: Use of undefined constant livecal_spinner - assumed 'livecal_spinner' in (PATH HERE)/wp-content/plugins/livecalendar.php on line 36

    Notice: Use of undefined constant livecal_labeltype - assumed 'livecal_labeltype' in (PATH HERE)/wp-content/plugins/livecalendar.php on line 50

    Notice: Use of undefined constant livecal_dir - assumed 'livecal_dir' in (PATH HERE)/wp-content/plugins/livecalendar.php on line 57

    Notice: Undefined index: g2_validated in (PATH HERE)/wp-content/plugins/wpg2/wpg2.php on line 89

    Notice: Undefined index: g2_validated in (PATH HERE)/wp-content/plugins/wpg2/wpg2.php on line 101

    Notice: Undefined index: g2_validated in (PATH HERE)/wp-content/plugins/wpg2/wpg2.php on line 163

    Notice: Undefined index: cat in (PATH HERE)/wp-includes/query.php on line 525

    Notice: Only variable references should be returned by reference in (PATH HERE)/wp-includes/taxonomy.php on line 710

    Notice: Only variable references should be returned by reference in (PATH HERE)/wp-includes/taxonomy.php on line 609

    Notice: Undefined index: port in (PATH HERE)/wp-includes/canonical.php on line 187

    Notice: Undefined index: query in (PATH HERE)/wp-includes/canonical.php on line 187

    Notice: Undefined index: port in (PATH HERE)/wp-includes/canonical.php on line 187

    Notice: Undefined index: query in (PATH HERE)/wp-includes/canonical.php on line 187

    Warning: Cannot modify header information - headers already sent by (output started at (PATH HERE)/wp-content/plugins/livecalendar.php:36) in (PATH HERE)/wp-content/themes/water-10/404.php on line 1

    Warning: Cannot modify header information - headers already sent by (output started at (PATH HERE)/wp-content/plugins/livecalendar.php:36) in (PATH HERE)/wp-content/themes/water-10/header.php on line 1

  9. ajkessel
    Member
    Posted 6 years ago #

    By the way, I'm pretty sure the last two "cannot modify header information" warnings are also caused by the insertion of the debug errors immediately above them. I'm also thinking the canonical.php errors are not real issues, since here there is no specified port or query string in the URL.

  10. Ripose
    Member
    Posted 6 years ago #

    Hmm, perplexing.

    I do have one (or two) obvious question(s) though.

    Did you update your site in the past, from 2.1 > 2.6 or anything similar?
    If so did you delete your old WP files first?

    If not than the only places "deprecated" error messages could be coming from is plugins or themes.
    Using old plugins/themes?

    This assumes of course, that your server is using the correct versions of Apache/MySQL and that your database is not corrupt.

  11. ajkessel
    Member
    Posted 6 years ago #

    I've update many times -- I've been using WordPress for several years. The updates were generally continuous, though, so I wouldn't have jumped from 2.1 to 2.6.

    I believe all the deprecated errors are in fact coming from plugins or themes. I did test disabling all plugins and still no "pages" can be displayed. I don't think there is any reason to think the "deprecated" warnings relate to the "pages" problem, is there?

    Using apache 1.3, PHP 5.2.0, MySQL 5.0.

    Also no sign the database is corrupt. Everything works except pages. If I create a brand new page, it doesn't work either.

  12. Ripose
    Member
    Posted 6 years ago #

    Error messages don't always point out WHERE the error occurred, sometimes they may display another line that is affected by the error. I'm not sure if WP debug does this.

    I found that conflicting settings in some SEO plugins created the missing pages problem. Have you been using All In One SEO or something similar?

    BTW - All In One SEO works great, unless the settings are wrong (go figure).

  13. ajkessel
    Member
    Posted 6 years ago #

    No SEO plugins.

    Active plugins:

    Advanced Permalinks
    Akismet
    Bad Behavior
    Batch Categories
    Blosxom Rewrite
    CountPosts
    Edit Comments
    Google Code Prettify
    Interlinks
    LiveCalendar
    Markdown
    Search & Replace
    ShareThis
    SimpleTags
    Twitter widget
    Update Manager
    Viper's Video Quicktags

    But, again, disabling all plugins doesn't seem to fix the problem.

  14. Ripose
    Member
    Posted 6 years ago #

    Thanks for the list, it helps.
    It would be helpful if you included links to your site.

    Don't forget that disabling a plugin does not necessarily undo changes it may have made to your code.
    You need to update plugins and themes to have the old stuff rewritten. But even then they may still leave crap behind, it's a start though.

    Once again, assuming your site URLs are correct, and settings are correct and that you don't have different folders than the defaults, than post some of your code for pages that don't display.

    You could also check for nested folders, there is a plugin for this.

  15. ajkessel
    Member
    Posted 6 years ago #

    My site is <http://adam.rosi-kessel.org>.

    All of the pages in the righthand column are broken. E.g. <http://adam.rosi-kessel.org/weblog/about>.

  16. ajkessel
    Member
    Posted 6 years ago #

    Sorry, as links: main site; broken link that used to work.

    I'm pretty sure I don't have any nested folders. I'm still puzzled at how a plugin or theme could affect only pages and not posts. What I'd really like to see is some sort of trace of how it's trying to resolve the pages and where the breakage is happening.

  17. ajkessel
    Member
    Posted 6 years ago #

    I just inserted a debug command in build_query_string() in classes.php to see the query_string as it's being built. When I request the page "about", the query_string is category_name=about. This seems like possibly the problem -- it should be (I believe) name=about, since the page has no category. Does this help at all?

  18. ajkessel
    Member
    Posted 6 years ago #

    Another interesting data point -- if I navigate right to the page_id, e.g.,

    http://adam.rosi-kessel.org/weblog/page_id=2, it actually redirects to the correct page (which is /about), but then goes to the 404.

  19. Ripose
    Member
    Posted 6 years ago #

    Although I will see what I can find, a Moderator's perspective would definitely be helpful here. Otto42 are you there?

    Please don't say "Just reinstall everything". We know that is an option, but we are trying to learn as well.

    I'm off to see the wizard! The wonderful wizard of awes!

  20. Ripose
    Member
    Posted 6 years ago #

    Did you notice that the pages you can get to are in this format:
    http://adam.rosi-kessel.org/weblog/2005/12/15/winter_sunset

    And the pages you cannot get to are in this format:
    http://adam.rosi-kessel.org/weblog/about/

    So somewhere you have dates enabled, but they were not applied to all pages. Did you switch settings in WP when this problem occurred?

  21. dpw134
    Member
    Posted 6 years ago #

    I had a similar problem with an SEF rewrite in Joomla.

    Maybe you should research that?

  22. ajkessel
    Member
    Posted 6 years ago #

    I am not aware of having switched any settings. Obviously something happened because the pages were working before and are not working now; I suspect it was an upgrade, either of the main package or a plugin, but I didn't notice for a while that the problem was happening, so I haven't been able to trace it back.

    I agree the date thing might be related, but the reason the "about" page doesn't have a date is that it's a page, not a post. If I insert the published date for the "about" page:

    http://adam.rosi-kessel.org/weblog/2007/01/22/about/

    It automatically redirects back to http://adam.rosi-kessel.org/weblog/about/, which is broken.

    I do have a permalink migration setting defined for migrating from a pre-WordPress version of my blog; it is '%category%/%postname%.html'. As I understand it, this should only be redirected URLs with '.html' at the end, so should not have any effect for the problem discussed here.

  23. ajkessel
    Member
    Posted 6 years ago #

    I finally found a URL form that works with my current setup:

    http://adam.rosi-kessel.org/weblog/index.php?pagename=about

    So it seems like what's happening is http://adam.rosi-kessel.org/weblog/about is getting mapped to category_name=about, where it should really get mapped to pagename=about. I've identified the problem but not the solution. Below is the output of my advanced permalinks debug -- unfortunately the Advanced Permalinks author provides no support. Any advice here?

    Array
    (
    [robots.txt$] => index.php?robots=1
    [.*wp-atom.php$] => index.php?feed=atom
    [.*wp-rdf.php$] => index.php?feed=rdf
    [.*wp-rss.php$] => index.php?feed=rss
    [.*wp-rss2.php$] => index.php?feed=rss2
    [.*wp-feed.php$] => index.php?feed=feed
    [.*wp-commentsrss2.php$] => index.php?feed=rss2&withcomments=1
    [feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
    [(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
    [page/?([0-9]{1,})/?$] => index.php?&paged=$matches[1]
    [comments/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
    [comments/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
    [comments/page/?([0-9]{1,})/?$] => index.php?&paged=$matches[1]
    [search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
    [search/(.+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
    [search/(.+)/page/?([0-9]{1,})/?$] => index.php?s=$matches[1]&paged=$matches[2]
    [search/(.+)/?$] => index.php?s=$matches[1]
    [tag/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
    [tag/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
    [tag/(.+?)/page/?([0-9]{1,})/?$] => index.php?tag=$matches[1]&paged=$matches[2]
    [tag/(.+?)/?$] => index.php?tag=$matches[1]
    [author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
    [author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
    [author/([^/]+)/page/?([0-9]{1,})/?$] => index.php?author_name=$matches[1]&paged=$matches[2]
    [author/([^/]+)/?$] => index.php?author_name=$matches[1]
    [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
    [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
    [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&paged=$matches[4]
    [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]
    [([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
    [([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
    [([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]
    [([0-9]{4})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]
    [([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
    [([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
    [([0-9]{4})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&paged=$matches[2]
    [([0-9]{4})/?$] => index.php?year=$matches[1]
    [[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
    [[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    [[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/trackback/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&name=$matches[4]&tb=1
    [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&name=$matches[4]&feed=$matches[5]
    [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&name=$matches[4]&feed=$matches[5]
    [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&name=$matches[4]&paged=$matches[5]
    [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&name=$matches[4]&page=$matches[5]
    [[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
    [[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    [[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [.+?/[^/]+.html/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
    [.+?/[^/]+.html/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    [.+?/[^/]+.html/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [.+?/[^/]+.html/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [(.+?)/([^/]+).html/trackback/?$] => index.php?category_name=$matches[1]&name=$matches[2]&tb=1
    [(.+?)/([^/]+).html(/[0-9]+)?/?$] => index.php?category_name=$matches[1]&name=$matches[2]&page=$matches[3]
    [.+?/[^/]+.html/([^/]+)/?$] => index.php?attachment=$matches[1]
    [.+?/[^/]+.html/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    [.+?/[^/]+.html/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [.+?/[^/]+.html/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [(.+?)/?$] => index.php?category_name=$matches[1]
    [.+?/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
    [.+?/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    [.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    [(.+?)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
    [(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    [(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    [(.+?)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
    [(.+?)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
    [(.+?)/([^/]+).html/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&name=$matches[2]&feed=$matches[3]
    [(.+?)/([^/]+).html/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&name=$matches[2]&feed=$matches[3]
    [(.+?)/([^/]+).html/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&name=$matches[2]&paged=$matches[3]
    [category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    [category/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    [category/(.+?)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
    [category/(.+?)/?$] => index.php?category_name=$matches[1]
    )

  24. ajkessel
    Member
    Posted 6 years ago #

    I've temporarily fixed the problem by inserting these rewrites before everything else:

    RewriteRule ^about index.php?pagename=about [L]
    RewriteRule ^pgp-key index.php?pagename=pgp-key [L]
    RewriteRule ^randomplay index.php?pagename=randomplay [L]

    Not ideal but at least the pages are back up.

  25. moshu
    Member
    Posted 6 years ago #

    I am a late comer to this thread and while browsing the pretty long posts... I noticed this:

    When I request the page "about", the query_string is category_name=about.

    So, my question is: are you trying to use any kind of trick that would remove the word "category (aka "category base") from the categories permalinks?

  26. ajkessel
    Member
    Posted 6 years ago #

    Moshu: I'm not trying to do that. Whether I specify a "category base" or not (leave it blank) under Permalinks options, my "pages" still don't work. It does seem like the problem is WordPress is improperly detecting the page names as category names, but not sure why.

  27. moshu
    Member
    Posted 6 years ago #

    That, usually happens, when people use a plugin or a hack to remove the word "category" form the URL, e.g. to have
    example.com/gizmos
    instead of the standard
    example.com/category/gizmos

    (N.B. If you don't put there anything, WP still adds the word "category"!)

    Some people are unhappy with the URL that includes "category" (or any word as category base) and hacking WP to remove it they end up exactly with the problem that WP cannot differentiate between Pages and categories... That was the reason for my question.

  28. ajkessel
    Member
    Posted 6 years ago #

    I'm not aware of any plugin or hack to remove category; although, testing it now, it does seem to work if I do example.com/gizmos (i.e., it maps to a category). But I don't know what setting would do that. Any tip for how to trace down the problem?

  29. moshu
    Member
    Posted 6 years ago #

    If it does - you might found the solution. Because on a normal setting it doesn't:
    http://moshublog.com/wordpress-101/ = error
    http://moshublog.com/section/wordpress-101/ = works
    (on my blog "section" is the category base)

  30. ajkessel
    Member
    Posted 6 years ago #

    Well, I've found my problem, but not my solution. How do I track down why the /category/ base is not necessary?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags