Blog

WordPress: Permalink page on admin interface appears blank

Tags: admin interfacepermalinkwordpress

Published on: August 20, 2014 by Vipin R.N

WordPress: Permalink page on admin interface appears blank

Scenario:

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 wordpress permalinks blank page can be fixed

Issue
The Permalinks page in WordPress Administration panel appears to be Blank

Screenshot+from+2013-01-10+13-19-41

Whereas it should be like 

Screenshot+from+2013-01-10+13-22-38

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 


functiongot_mod_rewrite() {
$got_rewrite = apache_mod_loaded('mod_rewrite', true); 
returnapply_filters('got_rewrite', $got_rewrite);
}

Edited

    functiongot_mod_rewrite() {
    $got_rewrite = true; 
    returnapply_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.

Category : Howtos, Linux, Troubleshooting

Vipin R.N

Vipin R.N

Vipin is a no-nonsense, disciplined guy who ensures that everything is carried out with the highest level of perfection. Apart from his great coding skills, he is quite interested in advanced server administration, issue analysis, documentation and training. In-depth knowledge in international politics, ammunition and automobiles makes this hard core Manchester United fan, one of the most referenced personalities in the entire team.

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Get new updates

Categories

$0.000 items