config issue and 500's instead of 404's
Posted: Sat Apr 09, 2016 9:49 pm
I have two issues.
Yesterday I pointed my domain (let's call it mydomain.com) to a subfolder (public_html/store/) where the opencart installation is located.
I removed the .txt for htaccess and adjusted the config.php and admin/config.php to point to the subfolder.
The only additional change I made was in the config.php I added a second line as the images were not showing (on another host account I have a domain with 1.5.6.4 which has a similar set-up and there is the second line for images in my config which I where I got the idea) :
All seemed good except broken links or non existing pages get a 500 error page and not a 404 (I was so happy the site was working!!!). I checked wih my host for the 500 error pages and missing 404 and they said they "have verified your error logs of your account and confirmed due to syntax error with the template is causing the issue. So I would suggest you to contact OpenCart application support and they will further investigate on this issue". I have a feeling there is an error or somthing I did wrong in either my config or the htaccess? Does that make sense?
Then this morning I also got the following error on my site:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hermes/bosweb25a/b72/nf.mydomain/public_html/store/config.php:2) in /hermes/bosweb25a/b72/nf.mydomain/public_html/store/system/library/session.php on line 21
Yesterday I pointed my domain (let's call it mydomain.com) to a subfolder (public_html/store/) where the opencart installation is located.
I removed the .txt for htaccess and adjusted the config.php and admin/config.php to point to the subfolder.
The only additional change I made was in the config.php I added a second line as the images were not showing (on another host account I have a domain with 1.5.6.4 which has a similar set-up and there is the second line for images in my config which I where I got the idea) :
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.mydomain.com/');
define('HTTP_IMAGE', 'http://www.mydomain.com/image/');
// HTTPS
define('HTTPS_SERVER', 'http://www.mydomain.com/');
Then this morning I also got the following error on my site:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hermes/bosweb25a/b72/nf.mydomain/public_html/store/config.php:2) in /hermes/bosweb25a/b72/nf.mydomain/public_html/store/system/library/session.php on line 21