Wordpress Blank page occuring when clicking on Permalinks


Officially, Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings. A permalink is what another weblogger will use to link to your article (or section), or how you might send a link to your story in an e-mail message. The URL to each post should be permanent, and never change — hence permalink.

Permalinks would help us to retrieve an article from a huge collection and its the most important significance of it.

In this article, I'm going to describe how an issue with the Blank Permalinks page can be resolved


Issue

The Permalinks page in Wordpress Administration panel appears to be Blank

Whereas it should be show more options





Analysis

Related discussions on Wordpress forums suggests that a function got_mod_rewrite would be corrupted in the file wp-admin/includes/misc.php . It seems that the function was returning a false negative to mod_rewrite being installed.

Solution
File to change : wp-admin/includes/misc.php (Make a copy before you edit)


Original
==============================================

function got_mod_rewrite() {
$got_rewrite = apache_mod_loaded('mod_rewrite', true);
return apply_filters('got_rewrite', $got_rewrite);
}
===============================================


Edited
===============================================

function got_mod_rewrite() {
$got_rewrite = true;
return apply_filters('got_rewrite', $got_rewrite);
}
===============================================


Check Line #2 for the difference. In the Edited version, we force the response to true as we know mod_rewrite is installed.







1 comment:

Unknown said...

Worked! Thank you very much