These should be fine regarding a virtual server and live server for the defined keys of the constants. Only the values aside the constant keys must be changed between those two servers.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
well you mentioned that the /config.php and admin/config.php do differ which in my case on the current live server they don't thats what I mean, so I couldnt identify what the potential issue would be ..straightlight wrote:These should be fine regarding a virtual server and live server for the defined keys of the constants. Only the values aside the constant keys must be changed between those two servers.
I surely rewrote the configuration to map against the current subdirectory layout and db setup ...
In this case, that part would be a problem, yes. Most slightly differs on those ends regarding the defined keys. What I was previously referring is between those differed two files, no constant changes are being done per every upgrade. Those might rather be pretty rare on that end.r4nd0m wrote:well you mentioned that the /config.php and admin/config.php do differ which in my case on the current live server they don't thats what I mean, so I couldnt identify what the potential issue would be ..straightlight wrote:These should be fine regarding a virtual server and live server for the defined keys of the constants. Only the values aside the constant keys must be changed between those two servers.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
ok I have found it and got it working ... rather than starting from scratch I did a clean install and compared the config.php and admin/config.php files ...
there were significant changes in the files and references which obviously dont seem to work no more or are obsolete ... I then copied the new details into the files on the test server and voila - everything seem to be working:
just as an example:
/// new /config.php ///
/// old /config.php /// v1.5.1.3
/// new admin/config.php
/// old admin/config.php
dont pay attention to the changed server directory as I did pay attention to it but that was changed as required ...
maybe this is helpful for someone ... thanks for the help though
there were significant changes in the files and references which obviously dont seem to work no more or are obsolete ... I then copied the new details into the files on the test server and voila - everything seem to be working:
just as an example:
/// new /config.php ///
///<?php
// HTTP
define('HTTP_SERVER', 'http://test.server.co.uk/');
// HTTPS
define('HTTPS_SERVER', 'http://test.server.co.uk/');
// DIR
define('DIR_APPLICATION', '/home/server/test.server.co.uk/catalog/');
define('DIR_SYSTEM', '/home/server/test.server.co.uk/system/');
define('DIR_IMAGE', '/home/server/test.server.co.uk/image/');
define('DIR_LANGUAGE', '/home/server/test.server.co.uk/catalog/language/');
define('DIR_TEMPLATE', '/home/server/test.server.co.uk/catalog/view/theme/');
define('DIR_CONFIG', '/home/server/test.server.co.uk/system/config/');
define('DIR_CACHE', '/home/server/test.server.co.uk/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/server/test.server.co.uk/system/storage/download/');
define('DIR_LOGS', '/home/server/test.server.co.uk/system/storage/logs/');
define('DIR_MODIFICATION', '/home/server/test.server.co.uk/system/storage/modification/');
define('DIR_UPLOAD', '/home/server/test.server.co.uk/system/storage/upload/');
/// old /config.php /// v1.5.1.3
////<?php
// HTTP
define('HTTP_SERVER', 'http://server.co.uk/');
define('HTTP_IMAGE', 'http://server.co.uk/image/');
define('HTTP_ADMIN', 'http://server.co.uk/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://server.co.uk/');
define('HTTPS_IMAGE', 'http://server.co.uk/image/');
// DIR
define('DIR_APPLICATION', '/home/server/server.co.uk/catalog/');
define('DIR_SYSTEM', '/home/server/server.co.uk/system/');
define('DIR_DATABASE', '/home/server/server.co.uk/system/database/');
define('DIR_LANGUAGE', '/home/server/server.co.uk/catalog/language/');
define('DIR_TEMPLATE', '/home/server/server.co.uk/catalog/view/theme/');
define('DIR_CONFIG', '/home/server/server.co.uk/system/config/');
define('DIR_IMAGE', '/home/server/server.co.uk/image/');
define('DIR_CACHE', '/home/server/server.co.uk/system/cache/');
define('DIR_DOWNLOAD', '/home/server/server.co.uk/download/');
define('DIR_LOGS', '/home/server/server.co.uk/system/logs/');
/// new admin/config.php
////<?php
// HTTP
define('HTTP_SERVER', 'http://test.server.co.uk/admin/');
define('HTTP_CATALOG', 'http://test.server.co.uk/');
// HTTPS
define('HTTPS_SERVER', 'http://test.server.co.uk/admin/');
define('HTTPS_CATALOG', 'http://test.server.co.uk/');
// DIR
define('DIR_APPLICATION', '/home/server/test.server.co.uk/admin/');
define('DIR_SYSTEM', '/home/server/test.server.co.uk/system/');
define('DIR_IMAGE', '/home/server/test.server.co.uk/image/');
define('DIR_LANGUAGE', '/home/server/test.server.co.uk/admin/language/');
define('DIR_TEMPLATE', '/home/server/test.server.co.uk/admin/view/template/');
define('DIR_CONFIG', '/home/server/test.server.co.uk/system/config/');
define('DIR_CACHE', '/home/server/test.server.co.uk/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/server/test.server.co.uk/system/storage/download/');
define('DIR_LOGS', '/home/server/test.server.co.uk/system/storage/logs/');
define('DIR_MODIFICATION', '/home/server/test.server.co.uk/system/storage/modification/');
define('DIR_UPLOAD', '/home/server/test.server.co.uk/system/storage/upload/');
define('DIR_CATALOG', '/home/server/test.server.co.uk/catalog/');
/// old admin/config.php
////<?php
// HTTP
define('HTTP_SERVER', 'http://server.co.uk/admin/');
define('HTTP_CATALOG', 'http://server.co.uk/');
define('HTTP_IMAGE', 'http://server.co.uk/image/');
// HTTPS
define('HTTPS_SERVER', 'http://server.co.uk/admin/');
define('HTTPS_IMAGE', 'http://server.co.uk/image/');
// DIR
define('DIR_APPLICATION', '/home/server/server.co.uk/admin/');
define('DIR_SYSTEM', '/home/server/server.co.uk/system/');
define('DIR_DATABASE', '/home/server/server.co.uk/system/database/');
define('DIR_LANGUAGE', '/home/server/server.co.uk/admin/language/');
define('DIR_TEMPLATE', '/home/server/server.co.uk/admin/view/template/');
define('DIR_CONFIG', '/home/server/server.co.uk/system/config/');
define('DIR_IMAGE', '/home/server/server.co.uk/image/');
define('DIR_CACHE', '/home/server/server.co.uk/system/cache/');
define('DIR_DOWNLOAD', '/home/server/server.co.uk/download/');
define('DIR_LOGS', '/home/server/server.co.uk/system/logs/');
define('DIR_CATALOG', '/home/server/server.co.uk/catalog/');
dont pay attention to the changed server directory as I did pay attention to it but that was changed as required ...
maybe this is helpful for someone ... thanks for the help though
Last edited by straightlight on Fri Aug 05, 2016 2:42 am, edited 1 time in total.
Reason: Added quote tags.
Reason: Added quote tags.
Please add the code tags when posting file content.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 10 guests