Page 6 of 6

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 2:24 am
by Randem
Downgrade? You should have done a backup before starting the upgrade. All you need to do is to restore your backup...

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 3:29 am
by CostasL
I have a backup! The upgrade was not performed to the live system. It was cloned to another directory. So, no worries.

Downgrade to what? 1.5.5.1? I want opencart 2. Maybe you mean downgrade to opencart 2.1 which is more stable? If yes, how I can do that? Are there any documents or links to follow?

P.S. I have the suspicion that it is all about my default language (greek). When upgraded to 2.2, it seems that does not recognise the language (english was deleted in first place in 1.5.5.1).When I installed the respective greek language pack for opencart 2.2, I could not change language. I hardcoded the el-gr instead of el in db and now it has the language switcher enabled. When el, it shows everything. When el-gr (2.2) doesn't show anything.

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 3:39 am
by Randem
If your upgrade did not work then attempting a downgrade would be a big mistake. The best way would be to start over again with your 1.5.5.1 system and upgrade to 2.1.

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 3:51 am
by CostasL
Randem wrote:If your upgrade did not work then attempting a downgrade would be a big mistake. The best way would be to start over again with your 1.5.5.1 system and upgrade to 2.1.
2.1 is the most stable version in your opinion? Which exactly 2.1 version you suggest?

Thanks!

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 3:54 am
by Randem
We still use v2.1.1

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 4:17 am
by CostasL
Can I use the procedure described in your signature for doing an upgrade from 1.5.5.1 to 2.1.1 or it is strictly for 1.5.6 to 2.1.0.x?

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 4:37 am
by Randem
v2.1.x denotes any minor version of v2.1. So yes.

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 5:25 am
by EvolveWebHosting
CostasL wrote:Can I use the procedure described in your signature for doing an upgrade from 1.5.5.1 to 2.1.1 or it is strictly for 1.5.6 to 2.1.0.x?
I would highly suggest upgrading to 2.3.0.2 and use the install script that comes with the download. This is the most stable v2.x version, IMO. It's a really smooth process to upgrade now, not like it was early on.

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 6:05 am
by CostasL
EvolveWebHosting wrote:
CostasL wrote:Can I use the procedure described in your signature for doing an upgrade from 1.5.5.1 to 2.1.1 or it is strictly for 1.5.6 to 2.1.0.x?
I would highly suggest upgrading to 2.3.0.2 and use the install script that comes with the download. This is the most stable v2.x version, IMO. It's a really smooth process to upgrade now, not like it was early on.
I have done this the first time, a week ago. Although I have not disabled my custom modules, the upgrade did work. But unfortunately I decided to drop the installation as there are not enough modules for 2.3 yet and the greek language pack does not exist for now!

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 7:27 am
by CostasL
A question to Randem.
I followed your instructions to upgrade.
In step 10. Go to Extensions->Modules->Account. Choose Edit then enable this module then save it.
How you do that when you cannot login to the admin page?
And when trying to login to admin, I get the error

Code: Select all

Notice: Undefined index: en in /home/xxx/public_html/eshop/admin/index.php on line 119
Notice: Undefined index: en in /home/xxx/public_html/eshop/admin/index.php on line 122
Notice: Undefined index: en in /home/xxx/public_html/eshop/admin/index.php on line 123
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/eshop/admin/index.php:80) in /home/xxx/public_html/eshop/system/library/currency.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/eshop/admin/index.php:80) in /home/xxx/public_html/eshop/system/library/response.php on line 12

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 7:47 am
by Randem
What does your config.php files look like in the root and admin folder?

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 7:52 am
by CostasL

Code: Select all

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

Code: Select all

define('DIR_APPLICATION', '/home/xxx/public_html/eshop/admin/');
define('DIR_SYSTEM', '/home/xxx/public_html/eshop/system/');
define('DIR_LANGUAGE', '/home/xxx/public_html/eshop/admin/language/');
define('DIR_TEMPLATE', '/home/xxx/public_html/eshop/admin/view/template/');
define('DIR_CONFIG', '/home/xxx/public_html/eshop/system/config/');
define('DIR_IMAGE', '/home/xxx/public_html/eshop/image/');
define('DIR_CACHE', '/home/xxx/public_html/eshop/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/xxx/public_html/eshop/system/storage/download/');
define('DIR_LOGS', '/home/xxx/public_html/eshop/system/storage/logs/');
define('DIR_MODIFICATION', '/home/xxx/public_html/eshop/system/storage/modification/');
define('DIR_UPLOAD', '/home/xxx/public_html/eshop/system/storage/upload/');
define('DIR_CATALOG', '/home/xxx/public_html/eshop/catalog/');

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 8:38 am
by Randem
Now the part of the config files that show HTTP and HTTPS...

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Sun Oct 02, 2016 8:46 am
by CostasL
Randem wrote:Now the part of the config files that show HTTP and HTTPS...
It's not that! I have tried both http and https.

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Mon Oct 03, 2016 7:31 am
by CostasL
Hi again,

I am coming back with a new effort to upgrade and new errors.
I deleted all installation and I followed back again Randem's instructions to make a new installation and upgrade.
When running step 8. I get the following errors in a blank page:

Code: Select all

Notice: Undefined index: oc_customer_group in /home/xxx/public_html/eshop/install/model/upgrade.php on line 343

Warning: in_array() expects parameter 2 to be array, null given in /home/xxx/public_html/eshop/install/model/upgrade.php on line 343

Notice: Undefined index: oc_product_option in /home/xxx/public_html/eshop/install/model/upgrade.php on line 359

Warning: in_array() expects parameter 2 to be array, null given in /home/xxx/public_html/eshop/install/model/upgrade.php on line 359

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/eshop/install/model/upgrade.php:343) in /home/xxx/public_html/eshop/system/library/response.php on line 12
If I re-run the install, the opencart store is showing without a layout (like no css is there) and the following errors appear:

Code: Select all

Warning: fopen(/home/xxx/public_html/eshop/system/storage/logs/): failed to open stream: Is a directory in /home/xxx/public_html/eshop/system/library/log.php on line 6
.
.
.
.
.
.
Fatal error: Call to a member function get() on a non-object in /home/xxx/public_html/eshop/index.php on line 97
Note that I cannot login to admin panel.

Is my db exporting wrong so the data migration causes the problem?
Is there anyone who can help?
Is there anyone who have faced these errors before?

Thanks anyway

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Mon Oct 03, 2016 7:46 am
by Randem
What is the structure of your table oc_product_option?

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Mon Oct 03, 2016 3:10 pm
by CostasL
Randem wrote:What is the structure of your table oc_product_option?
You are right! they were empty. i don't know why these tables were not exported right...
So should I try the whole procedure again? Because I tried import these 2 tables but there was no luck. I get the fopen() errors again.

Re: OpenCart v2.2.0.0 Testing - What you need to know

Posted: Mon Oct 03, 2016 3:43 pm
by Randem
It looks like step 5 - 7 was not completed properly. The tables 'oc_product_option' and 'oc_customer_group' are created in those steps. It looks like the opencart.sql file provided was not copied to the proper location.

If you want you can create the empty database (step 5) then use the opencart.sql provided to create the new database tables then complete step 5 to see how that works.