Deleted reCaptcha and cannot login to drupal website - drupal

I installed reCaptcha in the Drupal 7 module in hopes that it would work on the contact form, but it never did. So I did a really dumb thing and deleted the reCaptcha from Google and forgetting that connection to it was in the module.
It turns out that the reCaptcha did work but only on the admin login screen. Now that I am locked out, does anyone have a really brilliant idea for someone who made a really bad move?

I finally found the answer and I want to post it in case anyone else runs into a problem with any module in Drupal, not just with reCaptcha.
The main steps I used were found on this website: Disabling or enabling a module
All I did was make a backup of the db. Determined what the module name was that I was needing to disable:
SELECT name,status FROM system WHERE type='module' AND status='1'
Then change the status to '0' using of the actual module name I needed to disable:
UPDATE system SET status='0' WHERE name='module_name'
At this point I thought it was done, but because Drupal keeps a cached copy of it enabled in the db you still have to delete the cache:
DELETE FROM cache_bootstrap WHERE cid='system_list'

Related

wp admin user name has been changed by someone

As a Administrator of my website (Wordpress with Woocommerce), I am unable to logged in on my website's wp-admin panel. Then I tried to log in from another user name and it got successfully logged me in, then I saw the name of my admin user has been changed. I am amazed how it was happened? who did it? and why ?
Please suggest me what should i do ?
How to avoid such incident again ?
Incase the culprit who did it, In the next attempt, if he/she changes name of my second user of wordpress, what i should do ?
I am afraid if the culprit change the names of my all wp users then what should i do?
It seems a hacking attack.
So I suggest you first , upgrade your plugins and themes.
Then don't forget to scan your whole site with wordfence.
Then secure it with wordfence , I suggest to use it's pro version, I really feel it useful.
Then tell your hosting to scan and make sure no security issue there.
Note : Don't forget to remove your ftp and extra admin or change their password at least.
Your task is done ..
Still confusion, consult with an expert like me.
Block or delete the mentioned admin account
Install a security plugin like Wordfence
Scan your whole site (with the plugin), it's very likely a backdoor has been installed for future attacs
Change all passwords of admin-accounts and advice your users to do the same
Change the passwords of your FTP, database and possible webserver-interface (if the username was changed, it's likely done directly inside the database)

Sorry, you are not allowed to access this page

I realize there is other threads on this topic but there solutions and problems are different from mine.
Im able to login to wp-admin correctly
All seems normal but the abilty to (add plugin) or theme or anything has been wiped.
you can look at plugins but there is no way to add a new one.
Same goes for widgets, and themes.
Also.
You cant access things like update core.
you just get a default message
Sorry, you are not allowed to access this page.
Iv checked the mysql database and all seems fine.
With the user_meta and users
Iv deleted all plugins
Iv deleted all themes.
There is no issue with Wp memory
its basically just a default install of wordpress at this point.
Im not sure what could be causing this.
Any suggestions?

Wordpress login with true username & password failed

I am managing a wordpress site. Recently, I have trouble with the login system. Even though I give the right username and password, it give me the login page again and again, instead of redirect me to the dashboard.
The solution that I usually do is dropping all the tables in the database and import them again. It temporary fixes the problem. But the problem still have possibility to exist.
Anybody know what the problem exactly is?
WordPress login issue, when you have 100% correct username and password, and it does not give you username/password incorrect error, but it just takes you back to login form... it is mostly due to some security measure by some plugin or theme. Most probably a plugin, could by JetPack's security feature, or any other security plugin like Bulletproof Security Plugin & AIO Security (as was the case in OP's situation.)
To make sure if that is the plugin, or which plugin, I suggest a quick work around, ftp/ssh to your server and rename plugins folder as plugins-old, and create new blank folder plugins for now.. and try to login now... this time if you can login perfectly, then it is some plugin, most probably security related plugin, now you can go back to ftp and restore the plugins folder, and then you will have to activate/disable one by one to see which plugin might be the issue.
I have faced this issue many times in the past and above approach has always helped me get it fixed.

Updates in Drupal failed, now stuck in maintenance mode

I logged in to the company's Drupal (7.19) site and noticed a lot of recommended updates.
There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately!
See the available updates page for more information and to install your missing updates.
There are security updates available for one or more of your modules or themes. To ensure the security of your server, you should update immediately!
See the available updates page for more information and to install your missing updates.
I chose to download the updates. I then proceeded to update, Drupal suggested I'd do this in maintenance mode.
Upon proceeding I was greeted by a long message, telling me that all updates had failed because the directories could not be removed.
nodeaccesskeys
Error installing / updating
File Transfer failed, reason: Cannot remove directory
Your modules have been downloaded and updated.
Run database updates
When visiting:
admin/config/development/maintenance
the box that says “Put site into maintenance mode” is not checked, yet the site still remains in maintenance mode when I visit it in another browser (so that I’m not viewing it while being logged in as the administrator.)
I feel both things are related seeing as I had no issues before I tried to update the modules in question.
I'm not entirely sure what to do here. Is there a way to fix this preferably without resorting to code? I'm not too familiar with Drupal. I just wanted to update out of date modules.
At this point I don't really care about not being able to update, I'd just like the site to not be in maintenance mode anymore.
Thanks in advance.
You might need to clear the cache on /admin/config/development/performance

reCaptcha locked me out of my Drupal website. Unable to login

I am developing a website using Drupal 6 and I enable the reCaptcha module to check its functionality. It now redirects me to the google recaptaha page : https://www.google.com/recaptcha/admin/create
I am not sure of the exact process and I have not set the keys yet, which I can do only if I can get access to my site. I am not able to login and even disable the module. Based on the suggestion on Drupal forum, I accessed the database and disable the module from the system table but I still get the redirection. I cleared all the cache tables in the MySQL database but still the same. What should i do to get access and disable the module? Is there any good tutorial/video to set the reCapthca module?
Try the following:
1. Clear your browser cache and cookies
2. Check with different browser
backup the recaptcha row from the system table.
delete the recaptcha row in the system table.
That should disable the module.
if still give the same error please access your drupal website cron job url
the link will look like
http://www.yoursite.com/cron.php

Resources