Forums

500 Server Error after Form Submission

Pathana 21 Jan, 2016
Hello,

We recently had a couple of our Joomla sites upgraded from 2.5 to 3.x, and in the process of doing this, this broke our ChronoForms plugins. The sites are running ChronoForms V4, I had tried installing V5 to the sites but they end up not functioning properly, so we decided to stick with V4.

The problem was first realized when I had trying clicking on the component in one of the site's backend and I would automatically just get a 500 server error that comes up. So to fix this, I had uninstalled and reinstalled the component.

Now the only issue is that once the Submit button is clicked, the 500 server error comes up again, BUT I saw that the submission actually goes through to the backend, however no emails are sent out either.

I had error reporting turned out briefly, and when going in to recreate the issue, when I click the Submit button, the error that comes up is "Fatal error: Class 'JMail' not found in /var/www/vhosts/primaryflowsignal.com/libraries/joomla/factory.php on line 671". I had tried reimporting that factory.php file into the backend but that didn't do anything.

Could we get some help or insight on what might be going on here and what could be done to fix this?


Thank you!
GreyHead 21 Jan, 2016
1 Likes
Hi Pathana,

The JMail class should be loaded from /libraries/joomla/mail/mail.php - does that exist in your installation?

Bob
Pathana 21 Jan, 2016
Hi Bob,

Wow nice, thank you! No that was missing in that directory, I have imported mail.php into that directory and now the 500 server error is gone thank you!! What an easy fix!

However, the emails still aren't sending after submission. Any thoughts?

Thank you very much for your help!
Pathana 21 Jan, 2016
Also, one of our sites affected with the 500 server error is getting this error "Fatal error: Class 'PHPMailer' not found in /var/www/vhosts/mija.com/libraries/joomla/mail/mail.php on line 18".

Any ideas? Thank you!
GreyHead 21 Jan, 2016
Hi Pathana,

The PHP Mailer files are in /libraries/phpmailer - it sounds as though some of them may be missing too.

Bob
Pathana 21 Jan, 2016
All the files were there. Any thoughts?

Thanks!
GreyHead 22 Jan, 2016
Hi Pathana,

Well, if all the files are there then the class should load correctly. I can only suggest that you continue to debug the problems with your site :-( Look at line 18 and see exactly where it is trying to load the PHPMailer class from. These are Joomla! files not ChronoForms ones.

Bob
Pathana 22 Jan, 2016
Okay, thank you Bob. That leaves us with one last question, would you have any ideas on why emails are not being sent out upon submission? Thank you!
GreyHead 23 Jan, 2016
Hi Pathana,

Because the Joomla! Mailer files are missing or broken? All the errors you have reported are from those files.

I think that you could set up a separate SMTP mailer using the settings in the Forms Manager settings tab - but it's more important that you work out what is causing these error messages with the Joomla! mailer code.

Bob
This topic is locked and no more replies can be posted.