Page 5 of 13
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Wed Apr 27, 2016 2:32 pm
by pm-netti
daniel2008 wrote:pm-netti wrote:
There is read: "Default Items Per Page (Admin)"
You save settings, please.
Hi pm-netti,
I've finally found Default Items Per Page under Option after clicking the edit of the store.
However I can't change anything there as the only error coming from the set of Encryption Key.
I don't know how to set Encryption Key. I tried to unable SSL but still need Encryption Key!
Please give me some hints for that. Thanks,
Daniel
See the error below,
error.jpg
Your Admin Limit is wrong. You change Admin limit eg. 20, there is not caharacters a-z. Your encryption key need be at least 32 mark in length.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Wed Apr 27, 2016 11:00 pm
by daniel2008
Hi pm-netti,
Thank you so much for your supports.
Now it's all done and each admin list can be seen without any error.
Can I ask you the last question?
Since I've got my upgraded database for OC V2.200 now,
can I just apply it to a fresh V2.200 installed directly with only css and other modifications for my store?
In this way I may avoid any potential issues left from the previous OC version, I think.
Thanks again,
Daniel
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 2:02 am
by pm-netti
daniel2008 wrote:the last question?
You can do as you please. Support is found this forum in necessary.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 2:10 am
by pm-netti
In current 1006.php line 24 is not work in OC version 2.0.3.1:
Code: Select all
if (strpos(strtoupper($line), 'DB_PORT') !== false) {
This is work:
Code: Select all
if (strpos(strtoupper($line), 'DB_PORT') !== false && is_dir(DIR_MODIFICATION . 'system/')) {
This issue: if some in Oc version 2.1.x is not use Ocmod modification, this is not work in versions 2.1.x. But it is not do harm?
Other issue: vqmod cache also do issues after upgrade.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 2:34 am
by Qphoria
pm-netti wrote:
Other issue: vqmod cache also do issues after upgrade.
As this is the official opencart script, I left vqmod clearing out of it. That should technically still be a separate process as it is a 3rd party system.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 2:36 am
by Qphoria
pm-netti wrote:In current 1006.php line 24 is not work in OC version 2.0.3.1:
Code: Select all
if (strpos(strtoupper($line), 'DB_PORT') !== false) {
fixed.. thx, but your dir_modification/system thing still doesn't make a lot of sense.
It won't matter if DIR_MODIFICATION/system exists because I'm going to be deleting it.
Simply using
Code: Select all
if (strpos(strtoupper($line), 'DB_PORT') !== false && is_dir(DIR_MODIFICATION)) {
should be sufficient.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 3:36 am
by pm-netti
Qphoria wrote:pm-netti wrote:In current 1006.php line 24 is not work in OC version 2.0.3.1:
Code: Select all
if (strpos(strtoupper($line), 'DB_PORT') !== false) {
fixed.. thx, but your dir_modification/system thing still doesn't make a lot of sense.
It won't matter if DIR_MODIFICATION/system exists because I'm going to be deleting it.
Simply using
Code: Select all
if (strpos(strtoupper($line), 'DB_PORT') !== false && is_dir(DIR_MODIFICATION)) {
should be sufficient.
Hi Qphoria.
This is always false, also versions 1.5.x?
Directory DIR_MODIFICATION (system/storage/modification) is found always, beacuse it is version 2.2 folder.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 3:42 am
by Qphoria
pm-netti wrote:
This is always false, also versions 1.5.x?
Directory DIR_MODIFICATION (system/storage/modification) is found always, beacuse it is version 2.2 folder.
Ah ok I see what you mean. In any case, that really only affects adding the "/storage/" part to the config file which was a bad place for that. I've moved it to its own section now.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 3:49 am
by pm-netti
Qphoria wrote:pm-netti wrote:
This is always false, also versions 1.5.x?
Directory DIR_MODIFICATION (system/storage/modification) is found always, beacuse it is version 2.2 folder.
Ah ok I see what you mean. In any case, that really only affects adding the "/storage/" part to the config file which was a bad place for that. I've moved it to its own section now.
All foreach:
Code: Select all
$upgrade = true;
$lines = file($file);
foreach ($lines as $line) {
if (strpos(strtoupper($line), 'DB_PORT') !== false && is_dir(DIR_MODIFICATION)) {
$upgrade = false;
break;
}
}
If I use version 1.5.6.4 and upload version 2.2 files, that variable "upgrade" is false, it is not change config.php files. Are you checked this some other?
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 3:58 am
by Qphoria
pm-netti wrote:Qphoria wrote:pm-netti wrote:
This is always false, also versions 1.5.x?
Directory DIR_MODIFICATION (system/storage/modification) is found always, beacuse it is version 2.2 folder.
Ah ok I see what you mean. In any case, that really only affects adding the "/storage/" part to the config file which was a bad place for that. I've moved it to its own section now.
All foreach:
Code: Select all
$upgrade = true;
$lines = file($file);
foreach ($lines as $line) {
if (strpos(strtoupper($line), 'DB_PORT') !== false && is_dir(DIR_MODIFICATION)) {
$upgrade = false;
break;
}
}
If I use version 1.5.6.4 and upload version 2.2 files, that variable "upgrade" is false, it is not change config.php files. Are you checked this some other?
Right but I only need that because of the 4 lines of code:
Code: Select all
$output = str_replace('system/modification', 'system/storage/modification', $output);
$output = str_replace('system/upload', 'system/storage/upload', $output);
$output = str_replace('system/logs', 'system/storage/logs', $output);
$output = str_replace('system/cache', 'system/storage/cache', $output);
If I remove those then it would work fine the way it is since DB_PORT would already exist and I wouldn't need to enter that condition. So I moved those out to their own area.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 4:08 am
by pm-netti
1006.php line 31:
This need be true in versions 1.4.x - 2.0.3.1?
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 4:10 am
by Qphoria
But upgrade will be true if DB_PORT doesn't exist.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 4:19 am
by pm-netti
Qphoria wrote:But upgrade will be true if DB_PORT doesn't exist.
Yes, but folder system/storage/modification is found. Always.
My recommed
Code: Select all
is_dir(DIR_MODIFICATION . 'system')
This is not found always.
This fix false / true issue.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 4:28 am
by Qphoria
No... I removed that. That isn't needed at all now. It was only needed because of those other 4 lines.. so I moved those
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 4:51 am
by Qphoria
Ok I've updated the first post with v7. Please take a look when you get a chance.
Changes to 1006.php only:
1. Move the /storage/ path change to its own section so that we don't need to complicate the DB_PORT check with checks for DIR_MODIFICATION
2. Added moving download to storage/download as well
3. Generalize the old directory cleanup to allow cleaning the following old locations:
--- system/logs
--- system/modification
--- system/cache
--- system/storage/modification
That should satisfy all versions now.
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 7:32 pm
by pm-netti
I did test in versions 1.5.6.4 and 2.0.3.1. This works fine now.

Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Thu Apr 28, 2016 8:07 pm
by dmsims
Q - When will v7 go into the core?
People are still coming on here (virtually every day) with a failed upgrade
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Fri Apr 29, 2016 3:58 am
by spirit
dmsims wrote:Q - When will v7 go into the core?
People are still coming on here (virtually every day) with a failed upgrade
+1

Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Fri Apr 29, 2016 5:42 am
by neddon
It is shameful! Opencart will be the best shopping cart system,
But not until it have a working Upgrade Script!
Re: 2.2.0.0 Upgrade Script Improvements by Qphoria - TEST PL
Posted: Fri Apr 29, 2016 6:21 pm
by discoverytdi
Just ran your upgrade script and am getting the following error/blank page on the shop page
A theme has not been assigned to this store admin works fine
