Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
ago in Q2A Core by
edited ago by

Getting the below error after submitting the question.

Fatal error: Cannot declare class phpmailerException, because the name is already in use in qa/qa-include/vendor/PHPMailer/class.phpmailer.php on line 4044

Although it displays the above error, still the question is getting submitted and added to the system successfully. However this error message is misleading to the users.  Check my site here.

1 Answer

0 votes
ago by

I think you must be including the PHPMailer files more than once somehow. Do you have any custom plugins? And what version of Q2A are you running?

Could you try changing this line in qa-include/vendor/PHPMailer/PHPMailerAutoload.php:

require $filename;

to this:

require_once $filename;