Jump to content

Fatal error: Class 'WP_Rewrite' not found


lxc022
 Share

Recommended Posts

Hello I'm having an error saying Fatal error: Class 'WP_Rewrite' not found in /home1/thewriw3/public_html/wp-settings.php on line 219. However there is no such file called WP_Rewrite. There is a file called rewrite.php located in another folder. The code looks like this, can you please tell me exactly in coding how to relocate the file to rewrite.php?

 

/**

* Holds the WordPress Rewrite object for creating pretty URLs

* @global object $wp_rewrite

* @since 1.5.0

*/

$wp_rewrite =& new WP_Rewrite();

 

That's what the current code looks like. Thanks for your help.

Link to comment
Share on other sites

  • 1 month later...
This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.