Post by vsdev » Wed Jun 17, 2015 8:13 am

Hey there, Let me give some background on what I'm trying to do.

My end goal is to upgrade from 1.5.6.1 to 2.0.3.1
What i've done so far.
I tried doing the basic upgrade by copying it over the install.
I encountered lots of problems given that I'm using a third party theme. as well as lots of modules
So what I did was is I replicated the site to a subdirectory on my server, and pointed it a 2nd mysql database as to not affect my current running site.
The directory migration worked on the admin side. I however cannot access the index page.
The backup site that im working with is in the subdirectory /tester
Here is the error I get on the /tester/index.php
Warning: require_once(/home/hostinguser/public_html/tester/tester/system/startup.php): failed to open stream: No such file or directory in /home/hostinguser/public_html/tester/index.php on line 23

Fatal error: require_once(): Failed opening required '/home/hostinguser/public_html/tester/tester/system/startup.php' (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in /home/hostinguser/public_html/tester/index.php on line 23
here is my /tester/config.php file with mysql details removed

Code: Select all

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

// HTTPS
define('HTTPS_SERVER', 'http://www.website.com/tester/');

// DIR
define('DIR_APPLICATION', '/home/hostinguser/public_html/tester/catalog/');
define('DIR_SYSTEM', '/home/hostinguser/public_html/tester/tester/system/');
define('DIR_DATABASE', '/home/hostinguser/public_html/tester/system/database/');
define('DIR_LANGUAGE', '/home/hostinguser/public_html/tester/catalog/language/');
define('DIR_TEMPLATE', '/home/hostinguser/public_html/tester/catalog/view/theme/');
define('DIR_CONFIG', '/home/hostinguser/public_html/tester/system/config/');
define('DIR_IMAGE', '/home/hostinguser/public_html/tester/image/');
define('DIR_CACHE', '/home/hostinguser/public_html/tester/system/cache/');
define('DIR_DOWNLOAD', '/home/hostinguser/public_html/tester/download/');
define('DIR_LOGS', '/home/hostinguser/public_html/tester/system/logs/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '*****');
define('DB_PASSWORD', '******');
define('DB_DATABASE', '*****');
define('DB_PREFIX', 'oc_');
?>
here is my /tester/admin/config.php file with mysql details removed

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.website.com/tester/admin/');
define('HTTP_CATALOG', 'http://www.website.com/tester/');

// HTTPS
define('HTTPS_SERVER', 'https://www.website.com/tester/admin/');
define('HTTPS_CATALOG', 'https://www.website.com/tester/');

// DIR
define('DIR_APPLICATION', '/home/hostinguser/public_html/tester/admin/');
define('DIR_SYSTEM', '/home/hostinguser/public_html/tester/system/');
define('DIR_DATABASE', '/home/hostinguser/public_html/tester/system/database/');
define('DIR_LANGUAGE', '/home/hostinguser/public_html/tester/admin/language/');
define('DIR_TEMPLATE', '/home/hostinguser/public_html/tester/admin/view/template/');
define('DIR_CONFIG', '/home/hostinguser/public_html/tester/system/config/');
define('DIR_IMAGE', '/home/hostinguser/public_html/tester/image/');
define('DIR_CACHE', '/home/hostinguser/public_html/tester/system/cache/');
define('DIR_DOWNLOAD', '/home/hostinguser/public_html/tester/download/');
define('DIR_LOGS', '/home/hostinguser/public_html/tester/system/logs/');
define('DIR_CATALOG', '/home/hostinguser/public_html/tester/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '*****');
define('DB_PASSWORD', '*****');
define('DB_DATABASE', '*****');
define('DB_PREFIX', 'oc_');
?>

My plan was to replicate the site. Remove all VQmods, restore the default theme. then do the upgrade.
Any advice would be appreciated.

Thanks!

New member

Posts

Joined
Tue Jan 21, 2014 2:45 am

Post by deepvision » Wed Jun 17, 2015 11:47 am

You should replace

Code: Select all

define('DIR_SYSTEM', '/home/hostinguser/public_html/tester/tester/system/');
with the

Code: Select all

define('DIR_SYSTEM', '/home/hostinguser/public_html/tester/system/');

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by mdhafen » Thu Jun 18, 2015 3:53 am

Hello,
I'm in the same boat you are, I'm trying to upgrade from 1.5.6.4 to 2.0.3.1. Luckly I have the default theme and no 3rd party modules, so it's gone pretty easy for me.
I found the instruction on the forum to add a couple new settings to the config.php files too. The DIR_MODIFICATION and DIR_UPLOAD settings need to be added to the config files apparently. Your's will probably look like:

define('DIR_MODIFICATION', '/home/hostinguser/public_html/tester/system/modification/');
define('DIR_UPLOAD', '/home/hostinguser/public_html/tester/system/upload/');

I've just finished rebuilding the layouts, and now I have two problems. I'm hoping that together we can figure out some solutions. Or at least I can make you aware of potential problems.
First thing is that all the product images, which were in images/data, are gone. I copied them from a backup, and they seem to have moved to images/catalog. So I can see them in the image manager now. Still don't like the idea of resetting the image data for more then 800 products. That would be painfully tedious. I'm hoping there is some automated way to fix this, like a script or something. I've tried coping the images before and after running the upgrade, and that doesn't seem to help.
The other problem is the Latest module, which I put in the right column. It looks bad there. It insists on having four columns even in the right column, so the items get squished down to about 50px. That will probably require some serious modifications to fix though, or maybe a 3rd party module, or a vQmod (or whatever they are moving to in the near future).

User avatar
Newbie

Posts

Joined
Tue Apr 19, 2011 5:47 am

Post by deepvision » Thu Jun 18, 2015 2:39 pm

The images are in image/data folder, not in images/data
No need to rebuild anything, just put them there.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by mdhafen » Tue Jun 23, 2015 1:08 am

deepvision wrote:The images are in image/data folder, not in images/data
No need to rebuild anything, just put them there.
Yes, that was a typo, sorry.

I've gone back and tried it again, and the images came through just fine. This is on a test server, so I must have messed up somewhere when I copied OpenCart from the production server. Probably missed changing something in the configs.

That just leaves the, in my opinion, horrible look of the latest module in the right column. I can fix that in the code though, so it's not a big deal.

Thanks for your reply, it got me to go back and try again.

User avatar
Newbie

Posts

Joined
Tue Apr 19, 2011 5:47 am
Who is online

Users browsing this forum: No registered users and 7 guests