Support » Fixing WordPress » PHP Fatal Error wp_rewrite_rules()

  • Resolved LordDunvegan


    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:$

    This looks like core code and is happening several times each minute.

    Can anyone help please?



Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)


    Support Volunteer

    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.

    Thank you. Will try this on my test server. I cannot do it on the live one.

    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


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal Error wp_rewrite_rules()’ is closed to new replies.