Showing posts with label Disable Active Plugins. Show all posts
Showing posts with label Disable Active Plugins. Show all posts

Monday, 2 July 2012

Wordpress - Feedwordpress - Will not activate!

This was a bit of a problem. My site, which relies on FeedWordPress (fwp) for updates, had crashed. The only way to get the site back up was to disable all active plugins via the database (see my other posts), and then re-activate the plugins one-by-one to find the culprit. Turns out that the culprit was FeedWordPress. FeedWordPress does this when there are a LOT of links to check. Like my site. The only way to fix this quickly is to edit the database directly using the hosting control panel. DO NOT edit the RSS links using the inbuilt links editor - it will chop the end off the links, destroying them. It will chop the affiliate bits off the end.. 1. Get the ID of the link category that fwp is looking at. To find out, you need to know it's name. I called mine "FWP". Yours may be "Blogroll". Use the wordpress links editor, but DO NOT edit any links. Now look in the WP-Terms table, and find the record with that name. Make a note of the link_category_id. 2. You are also going to need an empty link category. Use the wordpress link category editor to create one, (I called mine "FWP-DUMMY") or just select an existing link category with no links in it. Note down the link_category_id. 3. Open the wp-options table and look for the feedwordpress_category record. It probably will not be on the first page.. Edit it. The number in there should be the link_category_id for your existing category. Change it to the number for the empty link category. Save it. 4. In Wordpress, activate FeedWordPress. It should work OK now. That's because it's looking at an empty category and has nothing to check. 5. Go back to the wp-options table, and change the feedwordpress category back to the original value. Save it. Feedwordpress is now up and running. Finally, make a note of the link-category_ids for the FWP category and the Empty category, so you won't have to mess about next time.

Thursday, 26 January 2012

Login Blocked by misconfigured LDAP connector plugin

I manage a multi-site Wordpress installation for a client.
Before Christmas, they installed an LDAP connector plugin, but never got around to configuring or testing it.
Unfortunately, the default settings prevented using the Wordpress login as a fallback.
So everyone was locked out. So I tried the usual database>wp-settings>active-plugins workaround. There was nothing there!
So I tried the old faithful "rename the plugin folder" routine. Jackpot.
I was then able to get in.

Sorted.

Monday, 10 October 2011

WORDPRESS: How to disable all active plugins, without access to the dashboard..

See my earlier post as to why I needed to do this..

My site was down. Dead. No access to the admin functions. The problem was a plugin gone bad (when I tried to disable it).

So, I needed to disable plugins, but couldn't get into the admin panel.

The excellent support guys at Unlimited Web Hosting came up with this ingenious solution:

Here's what you do: use CPANEL or PLESK to access the Wordpress database of your site directly. It'll be something like phpmyadmin. Details vary with web hosting firms. If in doubt, ask yours.

Browse the WP_OPTIONS table. Look for a record called "active_plugins".
Copy the contents of this field into notepad, and save it, just in case.
Now go back to the database, and EMPTY the contents of "active plugins", and save it. (you can always restore it from the copy you made).

Now access your site. It should come back up, but with no plugins running, so it'll be weird. Now go into admin as usual, and re-enable all plugins one-by-one, EXCEPT the one that caused the problem.
I'd DELETE that one..


** DISCLAIMER. If you try this solution, and it messes things up, that's your problem. I take no responsibility for it. It worked for me. **

** If it all goes wrong, simply restore the database from your backup. You DO have a backup, right? **