• I scrolled back a year and can’t find anything on this topic.

    I need to disable a plugin on one site while keeping it active on another site. It’s not network-enabled. I don’t have dashboard access to the subsite in question (the error blocks it). I have access to the rest of my network.

    I could bluntly delete the plugin, but I don’t want to, because it’s also active on another (much more important) site, and it has an API and other setup attached (it’s a payment plugin).

    I have Code Snippets. Is there some code to disable it on just that site so I can get into my dashboard again?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • You need access to the dashboard of the subsite if you want to use it.

    There are 2 other alternatives:

    a) Via WP CLI with: wp plugin deactivate woocommerce-paypal-payments --url=thesubsiteurl.com
    b) Via database. There should be a data record for active_plugins in the options table of the relevant subsite. You would have to edit its entry – but be careful: the content must still be valid.

    Thread Starter pattyjansen

    (@pattyjansen)

    Thanks.

    Hmmm. I deleted most plugins in the database, the paypal one, and even woocommerce itself (it’s a test site, fortunately) and all woocommerce-related plugins, and I cleared the site cache, but the error stays exactly the same. I’ve changed stuff in the database before and normally the changes are pretty immediate, or is this one that takes a while to populate? I didn’t think so. Strange…

    Is/was there a cache plugin? Maybe this is still an issue of this one.

    Thread Starter pattyjansen

    (@pattyjansen)

    There is one, but I emptied it. I have also deleted the rest of the plugins, disabled the theme and deleted all the options in the database that have something to do with payment. I can’t get in. I just can’t get in. The error message is still the same about the Woocommerce paypal plugin, but that plugin is not longer active and all its settings are deleted.

    Is there a way I can restore the database to the settings that it would have started with? There are 34 pages of options in this table. I don’t fancy having to manually disable them all.

    • This reply was modified 4 months, 2 weeks ago by pattyjansen.

    If you want to restore something, you must use a backup which you should have created beforehand. If not, you have to reactivate the plugins manually via the backend.

    Because of the problem, I would also recommend that you check the error log to see if it is still being logged there. If not, then you will see some cache that still exists OR the domain does not point to the hosting area you are currently looking in.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.