I got SSL certificate installed, and modified admin/config.php from http:// to https:// and enable SSL on admin/setting/server. However, when I refresh the page, all images are disappeared (I guess the links lost). There is something wrong when I enable the SSL? I have many images, and can not upload again for each products. Please give me advice.
Thanks
Thanks
Can you provide a URL so we can take a look?
Where are the images not showing? On the backend? On the front-end? Both?
Where are the images not showing? On the backend? On the front-end? Both?
Thanks for your reply. I am sorry I can not provide a URL because now the site is normal (but NOT SSL). I can not pause the site for a minute, so I turned off the SSL.
I tried on the backend (modified admin/config.php from http:// to https://), here is the screen shot. You will see the problem. I also tried on front-end for very shot time to check up, and it is the same (NO images shown). All other function are fine.
I think the links are broken, but I do not know the reason and how to fix it (it is impossible to change the products one-by-one. I have tons of products). Before solved the problem, I will disable the SSL.
Thanks for your advice.
I tried on the backend (modified admin/config.php from http:// to https://), here is the screen shot. You will see the problem. I also tried on front-end for very shot time to check up, and it is the same (NO images shown). All other function are fine.
I think the links are broken, but I do not know the reason and how to fix it (it is impossible to change the products one-by-one. I have tons of products). Before solved the problem, I will disable the SSL.
Thanks for your advice.
In the config.php file in the admin folder, do you have a couple lines of code similar to the following?
If not, try adding it.
Code: Select all
// HTTPS
define('HTTPS_SERVER', 'https://www.yourwebsite.com/admin/');
define('HTTPS_CATALOG', 'https://www.yourwebsite.com/');
Thanks tdaubs. Yes, I did it.
Right now, what I did on my site is:
1. SSL installed by godaddy
2. Enabled SSL on backend (admin/setting/server)
3. Keep config.php with http://
// HTTPS
define('HTTPS_SERVER', 'http://www.yourwebsite.com/admin/');
define('HTTPS_CATALOG', 'http://www.yourwebsite.com/');
If I change to https:// (which on your comments)
// HTTPS
define('HTTPS_SERVER', 'https://www.yourwebsite.com/admin/');
define('HTTPS_CATALOG', 'https://www.yourwebsite.com/');
Then all the imagines disappeared as above.
Right now, what I did on my site is:
1. SSL installed by godaddy
2. Enabled SSL on backend (admin/setting/server)
3. Keep config.php with http://
// HTTPS
define('HTTPS_SERVER', 'http://www.yourwebsite.com/admin/');
define('HTTPS_CATALOG', 'http://www.yourwebsite.com/');
If I change to https:// (which on your comments)
// HTTPS
define('HTTPS_SERVER', 'https://www.yourwebsite.com/admin/');
define('HTTPS_CATALOG', 'https://www.yourwebsite.com/');
Then all the imagines disappeared as above.
You should still have a config for non-ssl too.
Which version of Opencart are you using?
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.yourwebsite.com/admin/');
define('HTTP_CATALOG', 'http://www.yourwebsite.com/');
// HTTPS
define('HTTPS_SERVER', 'https://www.yourwebsite.com/admin/');
define('HTTPS_CATALOG', 'https://www.yourwebsite.com/');
I am using Opencart 1.5.6.4.
Here is the part of my admin/config.php for current setting. Please give me more advice.
<?php
// BACKEND CONFIG
// HTTP
define('HTTP_SERVER', 'http://yourwebsite.com/admin/');
define('HTTP_CATALOG', 'http://yourwebsite.com/');
define('HTTP_IMAGE', 'http://yourwebsite.com/image/');
define('HTTP_ADMIN', 'http://yourwebsite.com/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://yourwebsite.com/admin/');
define('HTTPS_IMAGE', 'http://yourwebsite.com/image/');
Here is the part of my admin/config.php for current setting. Please give me more advice.
<?php
// BACKEND CONFIG
// HTTP
define('HTTP_SERVER', 'http://yourwebsite.com/admin/');
define('HTTP_CATALOG', 'http://yourwebsite.com/');
define('HTTP_IMAGE', 'http://yourwebsite.com/image/');
define('HTTP_ADMIN', 'http://yourwebsite.com/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://yourwebsite.com/admin/');
define('HTTPS_IMAGE', 'http://yourwebsite.com/image/');
In the https section, try adding
Also, adjust the other values under https to go through https. 
Code: Select all
define('HTTPS_CATALOG', 'https://yourwebsite.com/');

Who is online
Users browsing this forum: No registered users and 12 guests