Internal Server Error after submitting a form
If i then edit the form (e.g. turn captcha on and off) and save the form, everything is ok until the next time i reload apache.
Form results are saved to database in any case - but the email is only sent if the form works fine. So i suppose the error happens when concrete5 tries to send out the email.
This happens with sites that are running 188.8.131.52 as well as 184.108.40.206.
Any help would be appreciated...
Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 PHP/5.2.4-2ubuntu5.25 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.6(2007-09-24) mod_ssl/2.2.8 OpenSSL/0.9.8g
[Tue Jul 10 09:00:33 2012] [error] [client 220.127.116.11] Premature end of script headers: index.php
If you turn the mail option off on the form, does it still fail? How about if you leave CAPTCHAs off?
Check that your config/site.php does not have any blank or empty lines in it as this can sometimes cause errors.
I tried with Mail Option off - no problems at all.
Captcha turning off and on has no influence.
So i think the error happens trying to send the E-Mail. It's so strange that it works until apache reloads after i change something on the form and save...
The config/site.php looks like that:
<?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', '***'); define('DB_PASSWORD', '***'); define('DB_DATABASE', '***'); define('BASE_URL', 'http://www.smartquotes.ch'); define('DIR_REL', ''); define('PASSWORD_SALT', '***'); define('CACHE_FRONTEND_OPTIONS', serialize(array('automatic_cleaning_factor' => 0))); define('CACHE_LIBRARY', 'apc');?><?php ?><?php define('DIRNAME_APP_UPDATED', 'concrete18.104.22.168');?>
i just cleaned it up a bit (removed this unnecessary <?php ?> tags and just have one to open the file in the first line). but no luck either.
If you go to the dashboard, you should be able to see whether you're using Default PHP Mail Functions or External SMTP Server. Does it make a difference if you switch?
If it doesn't, I would consider copying /concrete/helpers/mail.php to /helpers and sticking some debug into that to see where it's breaking
Thank you for your kind help so far jero!
At least i found a kind of "solution". I'm now a bit unhappy with the page loading times - but prefer a working site to a fast one... :-)