paulfeakins wrote: ↑Mon Dec 14, 2020 6:02 pm
Just make your whole site HTTPS.
"Use SSL" is enabled in settings.
I have changed these files:
config.php:
Code: Select all
// HTTP
define('HTTP_SERVER', 'https://domain.com/');
// HTTPS
define('HTTPS_SERVER', 'https://domain.com/');
admin/config.php:
Code: Select all
define('HTTP_SERVER', 'http://domain.com/admin/');
define('HTTP_CATALOG', 'http://domain.com/');
// HTTPS
define('HTTPS_SERVER', 'https://domain.com/admin/);
define('HTTPS_CATALOG', 'https://domain.com/');
Now I get this error:
This is the same error as I was getting before, with this issue:
viewtopic.php?f=190&t=221352&p=807236#p807236
This time though, the email is coming through. I have double checked that the change to contact.php is still in place.
And this time, Apache returns this error:
Code: Select all
[Mon Dec 14 05:44:20.977882 2020] [:error] [pid 13317] [client 172.68.141.167:21492] PHP Fatal error: Uncaught Exception: Error: Connection timed out (110) in /var/www/domain.com/public_html/system/library/mail.php:339\nStack trace:\n#0 /var/www/domain.com/public_html/catalog/controller/information/contact.php(51): Mail->send()\n#1 /var/www/domain.com/public_html/system/storage/modification/system/engine/action.php(51): ControllerInformationContact->index()\n#2 /var/www/domain.com/public_html/catalog/controller/startup/router.php(49): Action->execute(Object(Registry))\n#3 /var/www/domain.com/public_html/system/storage/modification/system/engine/action.php(51): ControllerStartupRouter->index()\n#4 /var/www/domain.com/public_html/system/engine/front.php(67): Action->execute(Object(Registry))\n#5 /var/www/domain.com/public_html/system/engine/front.php(57): Front->execute(Object(Action))\n#6 /var/www/domain.com/public_html/system/framework.php(205): Front->dispatch(Object(Action), Object(Action))\n#7 /var/www/domain.com/public_html/s in /var/www/domain.com/public_html/system/library/mail.php on line 339, referer: https://domain.com/index.php?route=information/contact
The "success" page (that returns the 500 error) is still served over HTTP, not HTTPS, despite the settings/config.php file changes/htaccess rewrite.