Hello, I have found a bug in DW Q and A.
When adding DW QA to a site that already has reCaptcha technology, there is a conflict with the existing reCaptcha plugin. Here is the error code from the Apache Logs:
PHP Fatal error: Cannot redeclare _recaptcha_qsencode() (previously declared in /var/www/vhosts/gotoniseko.com/subdomains/dev/httpdocs/wp-content/plugins/dw-question-answer/inc/lib/recaptcha-php/recaptchalib.php:47) in /var/www/vhosts/gotoniseko.com/subdomains/dev/httpdocs/wp-content/plugins/wp-recaptcha/recaptchalib.php on line 55, referer: http://dev.gotoniseko.com/wp-admin/plugins.php
While I think it’s great that DW added this, perhaps this should be an additional add on / plugin so that people who already have a captcha solution won’t get the error?
BTW – Thanks for a great product. I just installed this thing and right out of the box was nothing but impressed with how well this works. I look forward to supporting DW as much as I can. Can’t not support work of this quality!
Thanks again!
blue928
Hi Blue Presley,
Thank you very much for your feedback, the problem was caused when you have two plugin that use the same recaptcha library. So we added a small fix like that:
if( ! defined('RECAPTCHA_VERIFY_SERVER') ) {
require_once DWQA_DIR . 'inc/lib/recaptcha-php/recaptchalib.php';
}
But like your feedback, this error still remains so we will make it become an option to enable or disable the recaptcha library in next update version of the plugin.
Thanks again, Blue.
I am also facing the same problem.
Can you fix it asap please?
Please login or Register to submit your answer
replied 9 years ago
“bug” not “but” (Sorry, I can’t see how to edit my question to fix that in the title.)