Fatal error: Call to a member function add_cap()

Here's the "full" error (minus my server's directory structure):

Fatal error: Call to a member function add_cap() on a non-object in /wp-content/plugins/custompress/core/content-types.php on line 357

I migrated this site from one URL to another. I deleted the .htaccess file from the site root (because it was forwarding to the old site) and now when I try to load the site I get this error.

  • Sajid
    • DEV MAN’s Sidekick

    Hi itsnotrocketsurgery,
    Hope you are doing good today :slight_smile:

    I am unable to replicate this issue on my own website. It mostly probably issue that is causing to some missing files while migration.

    Please delete this plugin from your new website, install this plugin via WPMU DEV Dashboard plugin and then check again.

    Hope that helps! Feel free to post a reply if you need further assistance :slight_smile:

    Kind Regards,
    Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.