Can not edit any post, page or can not load and admin setup screen

In my site admin I can not edit any post or even can not load any settings page. Nothing on my site will work, also when I go to any WPMUDEV Dashaboard pages it shows a message like
"Cannot load wpmudev-support." When I go to Posts > All Posts it shows "Invalid post type"
I have deactivated Defender but that did not fix the issue.

  • Sohag Ronjon Dey

    Hi Sam,

    Hope you are having a beautiful day :slight_smile:

    I have checked the debug log again after the chat and found the following warning

    PHP Warning: preg_replace(): Compilation failed: nothing to repeat at offset 0 in XXXXXX/public_html/wp-includes/vars.php on line 33

    I have checked the vars.php with the default vars.php and it seems regular expression in the vars.php file is changed. I have uploaded the default file and now it is working.

    Please check the admin and let us know if you need any further help.

    Cheers,
    Sohag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.