Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter Stef Verbeeck

    (@twizted)

    I get no results, when I run that exact query for wp_options (db selected, default prefix), this is what is returned:

    MySQL returned an empty result set (i.e. zero rows). (Query took 0.0004 sec)

    How can this be?

    By the way, when I manually browse the wp_options tables, there is no variable called “rewrite_rules” under “options_name”.

    Are you using a Linux server or a Windows server? If it’s a Windows server, that would explain the absence, as the rules operate differently under Windows.

    Thread Starter Stef Verbeeck

    (@twizted)

    Nope, Linux/Apache server.

    Ok, maybe i’m looking at this wrong, and maybe the rules aren’t stored there in 2.8.

    Let’s get a print of the rules another way… ??

    Go plonk this in one of your theme files, index, header, whatever you prefer, just load a page that calls whichever file you use and view the source.

    <?php if( !$wp_rewrite ) global $wp_rewrite; ?>
    <!--<pre>
    <?php print_r( $wp_rewrite->rules ); ?>
    </pre>-->

    You should .. hopefully! .. get a print out of the rewrite array in the source code of the page… ??

    Thread Starter Stef Verbeeck

    (@twizted)

    Success! This code returns a long array, I’ve posted it in a pastebin as requested.

    Rules look fine to me..

    Can you test under a different theme? If only for a few minutes, and see if the rules behave differently..

    It’s possible the regular feed rules are not working due to this..

    [feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
        [(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]

    Notice an ampersand after the question mark(i posted a ticket on trac about this very same thing – under 3.0) and it’s not actually been shown to cause any problems(my feeds work and they have malformed rules in the array like the above), so i’m hesitant to even point at that as a possible cause(i don’t think it’s likely).

    I’d say it’s more likely a theme or plugin issue at this point, as i can’t see any other possible causes.

    Maybe something to try(if you havn’t already) would be to reupload fresh copies of the /wp-admin/ and /wp-includes/ folders from a newly downloaded copy of WordPress(matching version), to see if that helps.

    Thread Starter Stef Verbeeck

    (@twizted)

    When I switch the theme to “default”, it returns the exact same array, with ampersand after the question mark.

    Crazy thing is, when I clicked the feed link in the footer of my site when in “default” theme, it showed a complete RSS feed without errors (which it didn’t before). Switching back to my own theme causes the RSS feed to return an empty feed once more.

    I didn’t change anything to the template files used for RSS, they are an exact copy of the default files used to create my own theme with. So where could this error be? The links are the same, and a few weeks back the default theme also returned a broken feed…

    I’m hessitant to overwrite my wp-admin and wp-includes folders, as I’ve modified some of the files within wp-includes over the course of the past few months.

    Well if the feeds work under the default theme then it’s quite clear where the problem lies..

    Maybe you have a function in the theme’s function file causing a problem? If you post the code into a pastebin i’ll happily take a look for you..

    Side question, what have you been modifying in the core files? I’m not asking you to undo those changes, just curious as to what it is you’ve been changing.

    Thread Starter Stef Verbeeck

    (@twizted)

    The thing is, it didn’t use to work under default theme, that was one of the first things I examined along with disabling all installed plugins.

    I’ve pasted the code for functions.php here. I’ve highlighted a change I made to prevent the category 626 (which are seminars, showed as modified posts) from showing in the queries on my homepage and blogpage between the “regular” posts.

    I’ve changed simple things, for instance the way the “read more…” link is displayed, or the way unordered lists are created for the sidebar. Come to think of it: the wp-admin folder may be unchanged.

    Last night I remembered playing around with some plugins for event management for our seminars-page. One of these plugins worked by reserving one specific category for events and keeping that category from being published elsewhere than in some sort of calendar. I removed the plugin after testing, but had to delete some MySQL manually after delete.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘RSS feed only works for categories’ is closed to new replies.