• I installed a local copy of WordPress 2.2.1 so that I could start creating a WordPress theme.

    After a while I noticed that Options > Permalink… was not displaying properly, and there was a JavaScript error. The JavaScript error came about because the DOM was not fully loaded (the page was halting output).

    Anyway, I dug around in /wp-admin/options-permalink.php and found the problem at line 114. Which is not only some very ugly code, but anyway, it seemed to allow page execution from there, after I commented it out.

    The code was:
    if ( ! got_mod_rewrite() )
    $prefix = ‘/index.php’;

    So, after doing this, I decided to go ahead and click the options for um… date-style permalinks I believe, as in yyyy/mm/dd/post-name or whatnot.

    I added the pertinent mod_rewrite code to an .htaccess file and the permalinks work swimmingly.

    HOWEVER, the options-permalink.php page will *not* load now. It prompts me to save the file, as if a rogue header was being issued. I thought, “Could the database have written something funky as to make a page load oddly?” I didn’t think so, so I put die(‘Nope.’); inside the options-permalink.php file and it then, does not prompt me for a download. Just in case I tried restarting both the server and the MySQL daemon, to no avail.

    So, in lieu of all my rambling on, and recalling everything to the best of my recollection, can anyone tell me what is wrong?

    I would just drop everything and reinstall, but I still had the problem of the options-permalink.php not showing up correctly, so… ?

    Anyone? Thanks for any pointers/tips/et cetera.

    Whilst reasonably competent, the nuances of WordPress have me stumped.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter toebot

    (@toebot)

    If it helps any, I have been tinkering with /wp-admin/option-permalink.php again and noticed if I comment out:

    $wp_rewrite->flush_rules(); on line 90 or so, it does not prompt me to download option-permalink.php.

    And then of course, commenting out that:

    if ( ! got_mod_rewrite() )
    $prefix = ‘/index.php’;

    Allows it to display fully.

    And a final note… and this is perhaps the scariest part. It works *seemingly* flawlessly! Come on WordPress gurus, tell me what’s going on in those two code areas, please.

    I feel like I have fixed my own car trouble, yet I have tons of parts leftover.

    Thread Starter toebot

    (@toebot)

    Wow. Not a single soul has any idea what’s going on with my problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalink page not displaying properly.’ is closed to new replies.