Post by Guruud » Thu Apr 21, 2016 3:59 pm

Hi All,

I moved our OpenCart 2.2 installation from a folder on an existing server (http://www.website.nl/folder) to a stand-alone server (http://www.newwebsite.nl). I encounter some problems after the move.

I editted the config.php and admin/config.php as well as exporting and importing the database to the new server.

The front end is working properly, but the back-end has some issues.
In the attachment af this post is a visualisation of the problem. THe images from the admin page will not show.

There is probably an instance that points to the old folder, but i don't know where.
Any advice?

Attachments

Schermafbeelding 2016-04-21 om 09.52.34.png

Schermafbeelding 2016-04-21 om 09.52.34.png (57.44 KiB) Viewed 1965 times


Newbie

Posts

Joined
Thu Apr 21, 2016 3:54 pm

Post by paulfeakins » Thu Apr 21, 2016 5:32 pm

Hi Guruud,

Interesting issue. It should only be /config.php and /admin/config.php that could affect this.

Firstly you should double-check everything in those files.

Next you could right-click those funny icons and that should tell you if it's a path to a missing image or something else.

Paul

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Active Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by Guruud » Thu Apr 21, 2016 6:15 pm

I checked the config.php and admin/config.php on any errors, but none found.

I'm not able to right click on the icons, no information is shown.
What i found is that the codes 'F03C etc.' correspond to a specific image.

I also get some errors when trying to save the store settings.
Can both have to do anything with permissions? (btw, i checked it in user groups and all are set)

Newbie

Posts

Joined
Thu Apr 21, 2016 3:54 pm

Post by Guruud » Thu Apr 21, 2016 6:21 pm

This is my admin/config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.mysite.nl/admin/');
define('HTTP_CATALOG', 'http://www.mysite.nl/');

// HTTPS
define('HTTPS_SERVER', 'https://www.mysite.nl/admin/');
define('HTTPS_CATALOG', 'https://www.mysite.nl/');

// DIR
define('DIR_APPLICATION', '/home/vhosts/mysite.nl/httpdocs/admin/');
define('DIR_SYSTEM', '/home/vhosts/mysite.nl/httpdocs/system/');
define('DIR_IMAGE', '/home/vhosts/mysite.nl/httpdocs/image/');
define('DIR_LANGUAGE', '/home/vhosts/mysite.nl/httpdocs/admin/language/');
define('DIR_TEMPLATE', '/home/vhosts/mysite.nl/httpdocs/admin/view/template/');
define('DIR_CONFIG', '/home/vhosts/mysite.nl/httpdocs/system/config/');
define('DIR_CACHE', '/home/vhosts/mysite.nl/httpdocs/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/vhosts/mysite.nl/httpdocs/system/storage/download/');
define('DIR_LOGS', '/home/vhosts/mysite.nl/httpdocs/system/storage/logs/');
define('DIR_MODIFICATION', '/home/vhosts/mysite.nl/httpdocs/system/storage/modification/');
define('DIR_UPLOAD', '/home/vhosts/mysite.nl/httpdocs/system/storage/upload/');
define('DIR_CATALOG', '/home/vhosts/mysite.nl/httpdocs/catalog/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '*****');
define('DB_PASSWORD', '*****');
define('DB_DATABASE', '*****');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
This is my config.php

Code: Select all

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

// HTTPS
define('HTTPS_SERVER', 'https://www.mysite.nl/');

// DIR
define('DIR_APPLICATION', '/home/vhosts/mysite.nl/httpdocs/catalog/');
define('DIR_SYSTEM', '/home/vhosts/mysite.nl/httpdocs/system/');
define('DIR_IMAGE', '/home/vhosts/mysite.nl/httpdocs/image/');
define('DIR_LANGUAGE', '/home/vhosts/mysite.nl/httpdocs/catalog/language/');
define('DIR_TEMPLATE', '/home/vhosts/mysite.nl/httpdocs/catalog/view/theme/');
define('DIR_CONFIG', '/home/vhosts/mysite.nl/httpdocs/system/config/');
define('DIR_CACHE', '/home/vhosts/mysite.nl/httpdocs/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/vhosts/mysite.nl/httpdocs/system/storage/download/');
define('DIR_LOGS', '/home/vhosts/mysite.nl/httpdocs/system/storage/logs/');
define('DIR_MODIFICATION', '/home/vhosts/mysite.nl/httpdocs/system/storage/modification/');
define('DIR_UPLOAD', '/home/vhosts/mysite.nl/httpdocs/system/storage/upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '*****');
define('DB_PASSWORD', '*****');
define('DB_DATABASE', '*****');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

Newbie

Posts

Joined
Thu Apr 21, 2016 3:54 pm

Post by Guruud » Thu Apr 21, 2016 8:30 pm

Solved

Weird icons show up only when URL is typed in without www.
When i put www. in front, everything works fine.

CHange this in htaccess

Newbie

Posts

Joined
Thu Apr 21, 2016 3:54 pm

Post by paulfeakins » Fri Apr 22, 2016 6:33 pm

Ah ha, glad you found it.

It reminds me of this:
http://www.antropy.co.uk/blog/always-use-www/

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Active Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom
Who is online

Users browsing this forum: No registered users and 5 guests