Post by pm-netti » Wed Apr 27, 2016 2:32 pm

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.

Image
- - - OpenCart Upgrade Service - - -


User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä-Finland

Post by daniel2008 » Wed Apr 27, 2016 11:00 pm

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

http://www.smartebuy.com.au/ http://www.myleathers.com.au/ http://www.cctv4oz.com.au/ http://www.origreen.com.au/


Active Member

Posts

Joined
Wed Jul 07, 2010 8:54 pm


Post by pm-netti » Thu Apr 28, 2016 2:02 am

daniel2008 wrote:the last question?
You can do as you please. Support is found this forum in necessary.

Image
- - - OpenCart Upgrade Service - - -


User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä-Finland

Post by pm-netti » Thu Apr 28, 2016 2:10 am

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.
Last edited by pm-netti on Thu Apr 28, 2016 4:47 am, edited 2 times in total.

Image
- - - OpenCart Upgrade Service - - -


User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä-Finland

Post by Qphoria » Thu Apr 28, 2016 2:34 am

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.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Thu Apr 28, 2016 2:36 am

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.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by pm-netti » Thu Apr 28, 2016 3:36 am

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.

Image
- - - OpenCart Upgrade Service - - -


User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä-Finland

Post by Qphoria » Thu Apr 28, 2016 3:42 am

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.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by pm-netti » Thu Apr 28, 2016 3:49 am

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?

Image
- - - OpenCart Upgrade Service - - -


User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä-Finland

Post by Qphoria » Thu Apr 28, 2016 3:58 am

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.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by pm-netti » Thu Apr 28, 2016 4:08 am

1006.php line 31:

Code: Select all

if ($upgrade) {
This need be true in versions 1.4.x - 2.0.3.1?

Image
- - - OpenCart Upgrade Service - - -


User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä-Finland

Post by Qphoria » Thu Apr 28, 2016 4:10 am

But upgrade will be true if DB_PORT doesn't exist.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by pm-netti » Thu Apr 28, 2016 4:19 am

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.

Image
- - - OpenCart Upgrade Service - - -


User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä-Finland

Post by Qphoria » Thu Apr 28, 2016 4:28 am

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

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Thu Apr 28, 2016 4:51 am

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.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by pm-netti » Thu Apr 28, 2016 7:32 pm

I did test in versions 1.5.6.4 and 2.0.3.1. This works fine now. :)

Image
- - - OpenCart Upgrade Service - - -


User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä-Finland

Post by dmsims » Thu Apr 28, 2016 8:07 pm

Q - When will v7 go into the core?

People are still coming on here (virtually every day) with a failed upgrade

Active Member

Posts

Joined
Sat Apr 13, 2013 6:05 pm

Post by spirit » Fri Apr 29, 2016 3:58 am

dmsims wrote:Q - When will v7 go into the core?

People are still coming on here (virtually every day) with a failed upgrade
+1 :)

Active Member

Posts

Joined
Sat Oct 02, 2010 7:40 am

Post by neddon » Fri Apr 29, 2016 5:42 am

It is shameful! Opencart will be the best shopping cart system,
But not until it have a working Upgrade Script!

Newbie

Posts

Joined
Sun Mar 27, 2016 7:58 am

Post by discoverytdi » Fri Apr 29, 2016 6:21 pm

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 ::)

https://www.rvsolar.co.uk/


User avatar
New member

Posts

Joined
Fri Feb 17, 2012 6:43 am
Location - sunny lancashire UK
Who is online

Users browsing this forum: No registered users and 7 guests