lxc022 Posted November 14, 2010 Share Posted November 14, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/218661-fatal-error-class-wp_rewrite-not-found/ Share on other sites More sharing options...
andrewgauger Posted December 19, 2010 Share Posted December 19, 2010 Have you tried: include_once "../directory/rewrite.php"; Quote Link to comment https://forums.phpfreaks.com/topic/218661-fatal-error-class-wp_rewrite-not-found/#findComment-1149137 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.