Permalink page not displaying properly.
-
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.
- The topic ‘Permalink page not displaying properly.’ is closed to new replies.