Hi
I have a form that send an email on submit. But I get the following error:
Fatal error: Cannot redeclare class phpmailerException in /home/.../libraries/cegcore/vendors/phpmailer/class.phpmailer.php on line 2532
Can anybody help me?
Hi khukhas,
Do you have something on the same site sending another email at the same time ? or maybe 2 forms on the same page ?
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
No, the page has only one form... http://cursos-dj.com/2014/escola/inscricao
In addition when I try to create the form table in the database, I get a 406 error... Maybe the problem is my server...
Is the a way to workarround this?
Thanks
Bug found and fixed, maybe you had the Joomla registration action + the email action running on form submit ?
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hello everyone! I have been trying to solve this but have not found what is causing it. It's this same error when chronoforms try to redeclare phpmailer class. So I post it here...
This is the only chronoegine component-module I'm using βI've found out that using both chronoforms and other chrono componen may cause itβ. Also, I've unistalled AcyMailing and Kunena because I found that this two components may have the same issue.
As I understand, but I'm not a programmer, this happens when chronoforms define the class but it is already defined by other component-module. Also, I've been using chronoforms in other sites but this is the first time I got the error, so I might think the problem may be the server ΒΏ?.
And, the important thing to know is that the form IS sent via email, regarding the error. When you hit send, it shows only the error, not the "thank you" message, but the email is correctly sent.
Any ideas what could be causing this?
Thank you!!π
PS. I forgot to say, I have not other action rather than a multipage send-by-email action. Not the joomla registration, not anything else :/
Thanksπ
Hi susipop,
I have fixed this issue, you can contact me using the contact us page to get the fixed patch installer!π
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thank you! I've already sent the message using the Contact us form.
π π
Hi Susi,
Please download and install the latest RC6 OVER yours, let me know if this doesn't fix it!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ok, thanks! will let you knowππ
Thank you so much, Max! I had the same issue, and the patch worked, perfectly! π
Hello Max! It's been a while again. I keep having the same issue "Fatal error: Cannot redeclare class phpmailerException in /home/usernameforserver/public_html/libraries/phpmailer/phpmailer.php on line 2951"
Now I feel I've been doing something wrong, I've installed the patch and then the RC6 over my instalation, but with no success. I have now the latest joomla version 3.3.1 and done the normal thing about fixing the database, clearing cache...
Have you solved this? thanks!!!
Sorry, the version I have installed OVER my existing component is v5.0.0π with no successπ
Thkns!
Hello! any idea on how to solve this yet? thank you!!π
Hello again, I'm trying to figure out what's causing this error and thanks to this article ->http://www.acyba.com/forum/2-acymailing-bug-report/54483-fatal-error-cannot-redeclare-class-phpmailerexception.html <- I understood that you are requesting phpMailer class twice.
I'm not a programer so I cannot find the way around this one, because I don't know how to tell Cegcore not to call this class again if it's already loaded.
After looking at "libraries> cegcore> vendors> phpmailer > class.phpmailer.php" it all makes sense as in this file you're redefining this class again, the samethat is being loaded in Joomla's "libraries> phpmailes >phpmailer.php".
I hope someone out there have any idea how to change thisπ
Thanks again
Me again, I've found out how to fix it: Just changed the phpmailer class name over the cegcore lib.
Hope this helps someone else!π
Here the new files.
Before doing ANY replacement, please backup first the two files you're gonna change.
You just replace:
"libraries>cegcore>libs> mailer.php" with mailer.php provided
and
"libraries>cegcore>vendors>phpmailer> class.phpmailer.php" with class.phpmailer.php provided
:)
Hi susipop,
The error should not happen, because v5 doesn't reload the phpmailer class if its already loaded, but maybe you have some Joomla extension/module which does this ?
It looks like you have changed the class name in your fix, that's not a good idea, we need to find why this issue happens.
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.