Ed Crotty
asked 10 years ago

Looks like there may be a duplicate captcha function in Unyson:

When I try to activate the Question and Answer plugin with the DW Store theme, I see this in my error log:

2015/09/10 14:48:12 [error] 14060#0: *94 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot redeclare class ReCaptchaResponse in /var/www/htdocs/wp-content/plugins/unyson/framework/extensions/forms/includes/option-types/form-builder/items/recaptcha/includes/ReCaptcha/Response.php on line 30" while reading response header from upstream, client: 50.77.19.14, server: , request: "GET /wp-admin/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "

(For anyone else stuck reading this, just get at the shell level and rename the questions plugin to -disabled to get back in the admin panel.)

1 Answers
DominicStaff
answered 10 years ago

Hi,
Please open the \wp-content\plugins\dw-question-answer\dw-question-answer.php file, remove lines 52 to 53

if( ! defined('RECAPTCHA_VERIFY_SERVER') ) {
 require_once DWQA_DIR . 'inc/lib/recaptcha-php/recaptchalib.php';
}

At the moment, the DW Store and DW Q&A plugin 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.
Hope this helps !

ecrotty
replied 10 years ago

Completely understood!

Thanks!

I just wanted to make you aware of it (and others looking to do the same).

dominic Staff
replied 10 years ago

We will discuss about it in the next version, thank for your feedback, my friend

Powered by DW Question & Answer Pro