Title: PHP Fatal Error wp_rewrite_rules()
Last modified: September 1, 2016

---

# PHP Fatal Error wp_rewrite_rules()

 *  Resolved [LordDunvegan](https://wordpress.org/support/users/lorddunvegan/)
 * (@lorddunvegan)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-wp_rewrite_rules/)
 * I have seen other people mention this, but cannot match the circumstances. I 
   am not a PHP programmer, but just noticed I am generating enormous error logs.
   
   All plug-in are up to date and am using BuddyBoss theme.
 * Full error is
    PHP Fatal error: Call to a member function wp_rewrite_rules() 
   on a non-object in /var/www/html/wp-includes/rewrite.php on line 510, referer:
   [https://explore.scimednet.org/wp-admin/post.php?post=7$](https://explore.scimednet.org/wp-admin/post.php?post=7$)
 * This looks like core code and is happening several times each minute.
 * Can anyone help please?
 * Thanks
 * Richard

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-wp_rewrite_rules/#post-7572696)
 * disable all plugins and change your theme to twentysixteen. If the problem goes
   away, re-enable things one at a time until you see it return. Then, we have something
   to talk about.
 *  Thread Starter [LordDunvegan](https://wordpress.org/support/users/lorddunvegan/)
 * (@lorddunvegan)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-wp_rewrite_rules/#post-7572697)
 * Thank you. Will try this on my test server. I cannot do it on the live one.
    
   Richard
 *  Thread Starter [LordDunvegan](https://wordpress.org/support/users/lorddunvegan/)
 * (@lorddunvegan)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-wp_rewrite_rules/#post-7572710)
 * Well that was interesting. When I looked at the error log on the test server,
   the error was not there. I then did a comparison of active plug-ins and discovered
   PhpSword Google Analytics was not installed. After installing it the errors appeared.
   I have now deactivated it on the live site and the errors have stopped as far
   as I can tell.
 * Thank you for pointing me in the right direction
 * Richard

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Fatal Error wp_rewrite_rules()’ is closed to new replies.

## Tags

 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [LordDunvegan](https://wordpress.org/support/users/lorddunvegan/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-wp_rewrite_rules/#post-7572710)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
