Post by mrblond » Wed May 09, 2018 12:28 am

I've just moved my site to a new host. The domain is also transferred and linked to the new server.

I started creating new category and products in it and they were successfully created but when I try to add images (Products>Image) from newly created folder in the new server, I can't see it. I feel as if the admin panel opens the folders of the old server which is still in operation.

How to update the paths so that to see the new folders?

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by sw!tch » Wed May 09, 2018 12:45 am

You need to edit your upload/config.php and upload/admin/config.php with the new paths.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by mrblond » Wed May 09, 2018 12:54 am

Where is the upload folder? I can't find it.

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by sw!tch » Wed May 09, 2018 1:12 am

If using cPanel check your public_html directory.

If there is no upload folder then look in your home (e.g public_html or www directory)

/public_html/config.php
/public_html/admin/config.php

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by mrblond » Wed May 09, 2018 1:24 am

I know the files config.php and admin/config.php in my Opencart folders. Do you mean these files or different ones in some folder named upload?

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by sw!tch » Wed May 09, 2018 1:36 am

It would be in your opencart installation directory. Yes, I mean those files, what you posted looks correct.

config.php
and
admin/config.php

For reference you can see the directory structure here.

https://github.com/opencart/opencart/tr ... 2.0/upload

Some people upload the entire upload folder which is why I mentioned that.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by mrblond » Wed May 09, 2018 1:39 am

Okay, what exactly to correct in these files? I've looked at them but didn't see something special that's why I posted a question here.

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by sw!tch » Wed May 09, 2018 2:03 am

Check the paths to ensure they match your new web host, you can get this information from your hosting company. If you have already done this then it could be the DNS is still propagating and you are still resolving the old server IP address to your previous host.

You can clear your browser cache or flush the DNS cache on you local machine to sometimes speed it up.

http://docs.opencart.com/en-gb/administ ... ng-server/

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by xxvirusxx » Wed May 09, 2018 2:24 am

Check both config files to see if have something like this:

Code: Select all

define('DIR_IMAGE', '/home/domainname/public_html/image/');
some servers has this...

Code: Select all

define('DIR_IMAGE', '/home2/domainname/public_html/image/');

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 mrblond » Wed May 09, 2018 4:24 am

Thanks everybody for answering here.
Flushing the DNS cache solved the problem.

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm
Who is online

Users browsing this forum: No registered users and 83 guests