Post by bigjohnnc » Wed Oct 03, 2018 8:17 am

So I built my online store and thought I was ready to go and realized I had not installed and enabled SSL. Hosting with Bluehost, got on tech support with them and they installed SSL. I then went into OpenCart admin and clicked "enable SSL".

So now when I go to www.diggsfishing.com, everything looks great.
When I go to https://diggsfishing.com, everything looks crummy.

Any ideas? Please tell me I'm not going to have to redo this thing.

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by MarketInSG » Wed Oct 03, 2018 8:36 am

In admin/config.php and your main config.php file, you will need to update the URL to reflect https accordingly.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by ostechnologies » Wed Oct 03, 2018 5:04 pm

Open your config.php file and check whether HTTPS_SERVER is defined or not.
Similarly, open admin/config.php file and check whether HTTPS_SERVER & HTTPS_CATALOG is defined or not.

Note: HTTPS_SERVER and HTTPS_CATALOG is defined as “https://” instead of “http://”

Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt

Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company


User avatar
Active Member

Posts

Joined
Mon Apr 06, 2015 1:30 pm

Post by bigjohnnc » Thu Oct 04, 2018 5:06 am

Well now I get this error:
Notice: Use of undefined constant HTTP_SERVER - assumed 'HTTP_SERVER' in /home2/santeero/public_html/diggsfishing/store/catalog/controller/startup/startup.php on line 20Notice: Use of undefined constant HTTPS_SERVER - assumed 'HTTPS_SERVER' in /home2/santeero/public_html/diggsfishing/store/catalog/controller/startup/startup.php on line 21

I peeked at that file but not sure what exactly I should change--the line numbers aren't matching up (I'm viewing in Notepad++)

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by bigjohnnc » Thu Oct 04, 2018 5:19 am

Also causing major images on the admin side as well.

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by bigjohnnc » Thu Oct 04, 2018 5:26 am

This is what I get when I try to log in to admin

Notice: Use of undefined constant HTTP_SERVER - assumed 'HTTP_SERVER' in /home2/santeero/public_html/diggsfishing/store/admin/controller/common/header.php on line 9

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by paulfeakins » Thu Oct 04, 2018 5:31 pm

bigjohnnc wrote:
Thu Oct 04, 2018 5:06 am
Well now I get this error:
Did you copy the contents of one config.php over the other?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by bigjohnnc » Thu Oct 04, 2018 6:22 pm

I'm not sure what you're asking, but I think yes.
I downloaded the original config file, made those changes, and uploaded it back up (via ftp).

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by Elevate » Fri Oct 05, 2018 2:58 am

bigjohnnc wrote:
Thu Oct 04, 2018 6:22 pm
I'm not sure what you're asking, but I think yes.
I downloaded the original config file, made those changes, and uploaded it back up (via ftp).
It's very likely that your config.php files aren't quite correct. If you want, you can email either your files or a temporary FTP login to hello@elev8your.com and we can take a quick look for you.
JL

ELEV8TE Website Development
Available for hire - please contact me at https://www.elev8your.com/contact
https://www.elev8your.com


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2018 12:40 am
Location - Denver, Colorado, USA

Post by bigjohnnc » Fri Oct 05, 2018 8:12 am

Sent you an email--thanks!

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by bigjohnnc » Sat Oct 06, 2018 8:21 pm

Elevate your email bounced back.

Any other ideas anyone?

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by Elevate » Sat Oct 06, 2018 9:52 pm

bigjohnnc wrote:
Fri Oct 05, 2018 8:12 am
Sent you an email--thanks!
I just checked and we don't have an email from you. Please try to forward it again and we will check it on Monday when we are back in the office. Have a great weekend!

ELEV8TE Website Development
Available for hire - please contact me at https://www.elev8your.com/contact
https://www.elev8your.com


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2018 12:40 am
Location - Denver, Colorado, USA

Post by bigjohnnc » Sun Oct 07, 2018 7:40 pm

Tried emailing you and it bounced back again.

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by xxvirusxx » Sun Oct 07, 2018 7:58 pm

For wordpress is a plugin SSL insecure fixer...and I think another for redirect...

Post config.php content without user,database name and pass

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by bigjohnnc » Mon Oct 08, 2018 2:44 am

<?php
// HTTP
define('HTTP_SERVER', 'http://www.santeerodholders.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.santeerodholders.com/');

// DIR
define('DIR_APPLICATION', '/home1/santeero/public_html/catalog/');
define('DIR_SYSTEM', '/home1/santeero/public_html/system/');
define('DIR_LANGUAGE', '/home1/santeero/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home1/santeero/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home1/santeero/public_html/system/config/');
define('DIR_IMAGE', '/home1/santeero/public_html/image/');
define('DIR_CACHE', '/home1/santeero/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/home1/santeero/public_html/system/storage/download/');
define('DIR_LOGS', '/home1/santeero/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/home1/santeero/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/home1/santeero/public_html/system/storage/upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxxxxxxxxxx');
define('DB_PASSWORD', 'xxxxxxxxxxxxxxxx');
define('DB_DATABASE', 'xxxxxxxxxxxxxx');
define('DB_PORT', '3306');
define('DB_PREFIX', 'wyd_');

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by xxvirusxx » Mon Oct 08, 2018 4:57 am

On first message you posted an URL, in last post you posted another URL.

First URL is an wordpress website....second not opencart.

Where Opencart is installed? in subdirectory?
If yes, then in config you should have

you_url/opencart_directory

And If I guess... and you store is here: https://diggsfishing.com/store/

Then yo config should be like this:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'https://diggsfishing.com/store/');

// HTTPS
define('HTTPS_SERVER', https://diggsfishing.com/store/');

// DIR
define('DIR_APPLICATION', '/home2/santeero/public_html/diggsfishing/store/catalog/');
define('DIR_SYSTEM', '/home2/santeero/public_html/diggsfishing/store/system/');
define('DIR_LANGUAGE', '/home2/santeero/public_html/diggsfishing/store/catalog/language/');
define('DIR_TEMPLATE', '/home2/santeero/public_html/diggsfishing/store/catalog/view/theme/');
define('DIR_CONFIG', '/home2/santeero/public_html/diggsfishing/store/system/config/');
define('DIR_IMAGE', '/home2/santeero/public_html/diggsfishing/store/image/');
define('DIR_CACHE', '/home2/santeero/public_html/diggsfishing/store/system/storage/cache/');
define('DIR_DOWNLOAD', '/home2/santeero/public_html/diggsfishing/store/system/storage/download/');
define('DIR_LOGS', '/home2/santeero/public_html/diggsfishing/store/system/storage/logs/');
define('DIR_MODIFICATION', '/home2/santeero/public_html/diggsfishing/store/system/storage/modification/');
define('DIR_UPLOAD', '/home2/santeero/public_html/diggsfishing/store/system/storage/upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxxxxxxxxxx');
define('DB_PASSWORD', 'xxxxxxxxxxxxxxxx');
define('DB_DATABASE', 'xxxxxxxxxxxxxx');
define('DB_PORT', '3306');
define('DB_PREFIX', 'wyd_');

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by bigjohnnc » Mon Oct 08, 2018 6:36 am

Made that change and now I'm getting this:

www.diggsfishing.com is currently unable to handle this request.

I get this when I try https://www.diggsfishing.com/store
or
https://www.diggsfishing.com/store/admin

My homepage www.diggsfishing.com comes up fine.

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by bigjohnnc » Mon Oct 08, 2018 6:38 am

Not sure what the "home1" and "home2" folders are as well?

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by bigjohnnc » Mon Oct 08, 2018 6:46 am

Ok I can get into admin now.... so I'm guessing my issue has to be with the config file and not the admin/config file?

New member

Posts

Joined
Mon Mar 13, 2017 5:36 am

Post by Elevate » Tue Oct 09, 2018 1:22 am

bigjohnnc wrote:
Sun Oct 07, 2018 7:40 pm
Tried emailing you and it bounced back again.
Can you PM me and also copy and paste the bounce back message? Thanks!

ELEV8TE Website Development
Available for hire - please contact me at https://www.elev8your.com/contact
https://www.elev8your.com


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2018 12:40 am
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: Semrush [Bot] and 555 guests