Blue Presley
asked 9 years ago

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/ in /var/www/vhosts/ on line 55, referer:

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!

Blue Presley
replied 9 years ago

“bug” not “but” (Sorry, I can’t see how to edit my question to fix that in the title.)

1 Answers
answered 9 years ago

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. 

Sidharth Bansal
replied 9 years ago

I am also facing the same problem.
Can you fix it asap please?

Powered by DW Question & Answer Pro