WordPress.org

Ready to get started?Download WordPress

Forums

Can't login to administrator side of website (5 posts)

  1. aimith
    Member
    Posted 2 months ago #

    Two days ago I added Google reCaptcha to the DW Question & Answer form on my website. Today when I went to login to update some things, I get no login button, but only the following error message:

    Fatal error: Cannot redeclare _recaptcha_qsencode() (previously declared in /home/content/93/5864193/html/prevailingword.org/wp-content/plugins/dw-question-answer/inc/lib/recaptcha-php/recaptchalib.php:47) in /home/content/93/5864193/html/prevailingword.org/wp-content/plugins/google-captcha/lib/recaptchalib.php on line 55

    Can someone please help me? How do I fix this so that I can get access to the admin page?

    Thanks!

  2. reneeinspired
    Member
    Posted 2 months ago #

    Hi!

    Do you have access to your hosting account?

    In the past when I have these type of issues I would go into the cpanel then file manager and rename the plugin so WP will ignore it.

    Here is a path once you are in file manager:

    WP Content
    Plugins

    Once there find the latest plugin that you installed and rename it. The steps on that will vary depending on the hosting company.

    Once you have renamed the file WP will ignore it and so try logging in. This will help you figure it out if that plugin is your problem.

    Let me know if this helps.

    -Renee'

  3. aimith
    Member
    Posted 2 months ago #

    Hi Renee,

    Thank you for your response. Our website is hosted by GoDaddy and I have login information to access the e-mail account that are set up there and to renew our subscription, etc. Is that where I would find the cpanel? I am relatively new at this and am learning as I go.

    Our website was initially launched by another individual and I have taken over the maintenance. I contacted him for assistance, but he is extremely busy right now and is not able to help me.

    I am fairly certain the last plugin I activated is the issue, because I searched that plugins website and found the following (I've included the whole transcript below):
    http://www.designwall.com/question/how-to-resolve-conflict-with-captcha/

    How to resolve conflict with Captcha
    Hi all, I installed DWQA on my test site, configured it to my satisfaction and started to load it onto my live site, all well and good so far and I’m very happy with the plugin.

    However, when I activated the plugin my on my live site, the site went down with the following message:

    Fatal error: Cannot redeclare _recaptcha_qsencode() (previously declared in /home/radbc803/public_html/wp-content/plugins/dw-question-answer/inc/lib/recaptcha-php/recaptchalib.php:47) in /home/radbc803/public_html/wp-content/plugins/wp-recaptcha/recaptchalib.php on line 55

    It looks to me as if there’s a conflict with a plugin which is already using recaptcha. For info I have WP-reCAPTCHA running on my live site already but not on my test site (a defect I will resolve)

    Incidentally, like most plug-in problems the site is quickly and easily restored to normal operation by going through cpanel and file manager to disable access to the plugin directory.

    Please advise how best to deal with this as I need recaptcha to block automated registrations.

    May 25, 2014
    Interestingly if I try to activate WP ReCaptcha on my test site (with DWQA already installed) the installation stops rather more gracefully with the message "Plugin could not be activated because it triggered a fatal error."

    Error details: "Fatal error: Cannot redeclare _recaptcha_qsencode() (previously declared in /home/andyn624/public_html/StRadDemo/wp-content/plugins/dw-question-answer/inc/lib/recaptcha-php/recaptchalib.php:47) in /home/andyn624/public_html"

    May 25, 2014
    Next attempt: Installed BWS Plugins Google ReCaptcha to replace WP ReCaptcha, installation and activation were successful but when I attempted to register with Google ReCAptcha enabled I got this error message in the registration dialogue:

    "Fatal error: Cannot redeclare _recaptcha_qsencode() (previously declared in /home/andyn624/public_html/StRadDemo/wp-content/plugins/dw-question-answer/inc/lib/recaptcha-php/recaptchalib.php:47) in /home/andyn624/public_html/StRadDemo/wp-content/plugins/google-captcha/lib/recaptchalib.php on line 55"

    So no joy there. And the irony is I don't even need the ReCaptcha feature on DWQA because I'm restricting access to members only.

    May 28, 2014

    Hi Andy,
    Please go to <plugin-folder>/dw-question-answer/dw-question-answer.php, remove lines 46 to 48
    if( ! defined('RECAPTCHA_VERIFY_SERVER') ) {
    require_once DWQA_DIR . 'inc/lib/recaptcha-php/recaptchalib.php';
    }

    Both plugins are using the same library for captcha and this causes the conflict, that’s why we remove the library from DWQA to make it work.
    Regards

    May 28, 2014
    Many thanks for this, it worked a treat. Line numbers differed for me, 39..41

    Which brings me to another question, will this break when an admin (not necessarily me) upgrades the DWQA plugin? Are there plans for a work-around, or at least a more graceful error report, which doesn't involve bringing the whole website down until the plugin can be disabled via Cpanel?

    Hi Andy,
    Apologize for my late reply. I have been busy with release schedule and did not follow your issue properly.
    I'm aware of the conflict issue of captcha library and working on a better solution for it. Since the version 1.2.8 was out, we will add the solution to version 1.2.9

    I had a different reCaptcha set up with our contact form, so I am guessing the situation with this plugin as described above is my problem, but now how to access the cpanel.

    Are you familiar with GoDaddy? Do you know if the login I have would give me access to the cpanel? I am really stuck here.

    Thanks!

    Amy

  4. esmi
    Forum Moderator
    Posted 2 months ago #

    FTP into your site (or use whatever file management application your host provides) & delete the wp-content/plugins/google-captcha folder.

  5. reneeinspired
    Member
    Posted 2 months ago #

    Amy,

    I would recommend jumping on the support chat with Go Daddy and asking them to help you. They are generally quite accommodating. Getting into Cpanel and moving around can be challenging even for the daily user.

    Let me know if they help.

    -Renee'

Reply

You must log in to post.

About this Topic