We will be doing some site maintenance and need to take the site down for 10 minutes.

Site will go down at 19:00 UTC

Forums / Upgrading from 1.3.x to 1.3.9 / Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

Locked

Started by petek on 19 May 2010, 9:29 AM · Views: 2,780

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
19 May 2010, 9:29 AM
#1
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

I upgraded yesterday to 1.3.9b (and today to 1.3.9c !) and have noticed that the customer details have vanished. The orders are ok, names, addresses emails etc. but returning customers details have disappeared ! How can I retrieve the details from the old database (and without deleting new customers details) ?

Pete
zc 1.3.9h
www.gardenserre.fr

19 May 2010, 9:55 AM
#2
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

This is weird, I've looked in the database and the "customers" and "address_book" tables show the customers details. But they aren't being picked up by the back office. Why ?

Pete
zc 1.3.9h
www.gardenserre.fr

19 May 2010, 12:51 PM
#3
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

I should perhaps be more specific. When in Admin > Customers > Customers, I get the list of the customers but if I click on "edit" of a particular one, all the fields are empty. However, customers added since the upgrade have all their fields filled in. I hope this will help someone to identify the problem.

I had a call from a returning customer this morning who couldn't order because according to the database, he lives in the Aaland Islands (!) so I told him to create a new account, which he couldn't because his email address already existed in the database. So the info is there, its just not getting as far as my store !

Pete
zc 1.3.9h
www.gardenserre.fr

19 May 2010, 1:05 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

What was your upgrade process?
ie: what have you done since the time when it worked vs when it suddenly no longer worked as expected.

It sounds like you've done something to damage the database somehow, but without knowing what you've done to get to where you're at, its hard to help you sort it out.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 May 2010, 1:32 PM
#5
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

DrByte:

What was your upgrade process?
ie: what have you done since the time when it worked vs when it suddenly no longer worked as expected.

It sounds like you've done something to damage the database somehow, but without knowing what you've done to get to where you're at, its hard to help you sort it out.

I simply followed the upgrade instructions : created a new database, copied the old database into the new one and then used the update option in zc_install. I only noticed the customer details were empty this morning after the upgrade to 1.3.9c (I didn't look after the upgrade to 1.3.9b yesterday). Should I create a new database and reinstall from 1.3.8a ? If so, how to recover new orders and customers ?

The customer details are still there - if I login to my test account and click on "my account", my address, email etc. are still there. But if I attempt to place a new order, its as if the store had no info, apart from the fact that I apparently live in the Aaland Islands !

Pete
zc 1.3.9h
www.gardenserre.fr

19 May 2010, 1:36 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

Check your database tables to be sure they all contain valid data, esp the address_book, customers, and customers_info tables.
Maybe your database copying process damaged something.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 May 2010, 1:41 PM
#7
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

DrByte:

Check your database tables to be sure they all contain valid data, esp the address_book, customers, and customers_info tables.
Maybe your database copying process damaged something.

All 3 tables contain valid data - I've compared the old base to the new one and the info both contain appears to be the same.

Pete
zc 1.3.9h
www.gardenserre.fr

19 May 2010, 2:06 PM
#8
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

I should add that I used PHPMyAdmin to create a new database and then to copy the data from the existing database into it. Now, looking at the two db, I see the old one's size is 8.64 MB whereas the new one's is only 3.86 MB !

Pete
zc 1.3.9h
www.gardenserre.fr

19 May 2010, 2:48 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

Sounds like maybe you missed something. I suggest you dump both and compare them.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 May 2010, 2:57 PM
#10
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

I should add that I used PHPMyAdmin to create a new database and then to copy the data from the existing database into it. Now, looking at the two db, I see the old one's size is 8.64 MB whereas the new one's is only 3.86 MB !

Pete
zc 1.3.9h
www.gardenserre.fr

19 May 2010, 3:21 PM
#11
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

DrByte:

Sounds like maybe you missed something. I suggest you dump both and compare them.

Is there an easy way of doing this ? I can download the bases easily enough but how do I compare them ?

Pete
zc 1.3.9h
www.gardenserre.fr

19 May 2010, 3:36 PM
#12
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

petek:

Is there an easy way of doing this ? I can download the bases easily enough but how do I compare them ?

I've attempted to compare both databases with Beyond Compare but the task is huge for an inexperienced eye. It looks like I'm stuffed.:cry: Suppose I restore the old database and then upgrade. Would I then be able to able to insert the 4 or five new orders and customers I've received today ?

Pete
zc 1.3.9h
www.gardenserre.fr

19 May 2010, 6:59 PM
#13
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

I'm getting this message in my error logs :

[19-May-2010 13:40:07] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /home/XXXX/public_html/XXXX/customers.php on line 1099
[19-May-2010 13:40:07] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in /home/XXXX/public_html/XXXX/customers.php on line 1101
[19-May-2010 13:40:07] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/XXXX/public_html/XXXX/includes/classes/object_info.php on line 29
[19-May-2010 13:40:07] PHP Warning:  Variable passed to each() is not an array or object in /home/XXXX/public_html/XXXX/includes/classes/object_info.php on line 30
```.

This appears to generate itself when I access the customers' info page in the admin of the site.

In object_info.php, I see there is a line which is quoted out, ie ```html
//this line should be added, but should be tested first:
//if (!is_array($object_array)) return;

When I enable this line, ie I remove the "//", the error message relating to the object_info.php file disappears but the one relating to customers.php remains. I've checked versions 1.38a, 1.3.9b and 1.3.9c of the file in Beyond compare and nothing seems amiss. Any ideas ?

Pete
zc 1.3.9h
www.gardenserre.fr

20 May 2010, 5:06 AM
#14
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

I'm giving up on this. This morning, I've created a new database, copied the 1.3.8a database data into it and tested it on the site BEFORE upgrading. Apart from the fact that the site informed me that I needed to patch the database to the latest version, everything worked, ie all customer details were there no problem. Now, after upgrading, they've all disappeared again ! So I'm going back to 1.3.8a, perhaps I'll have better luck with version 2.

Pete
zc 1.3.9h
www.gardenserre.fr

20 May 2010, 1:19 PM
#15
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

petek:

I'm getting this message in my error logs :

[19-May-2010 13:40:07] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /home/XXXX/public_html/XXXX/customers.php on line 1099
[19-May-2010 13:40:07] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #2 is not an array in /home/XXXX/public_html/XXXX/customers.php on line 1101
[19-May-2010 13:40:07] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/XXXX/public_html/XXXX/includes/classes/object_info.php on line 29
[19-May-2010 13:40:07] PHP Warning: Variable passed to each() is not an array or object in /home/XXXX/public_html/XXXX/includes/classes/object_info.php on line 30


Well, I'm back onto 1.3.8a because I have to earn a living but I would like to upgrade one day. Does nobody have any idea why I get the above error message and why my client details are absent from the admin ? I carried out two new zc_installs today and both produced the same result. Its a bit depressing all of this.

Pete
zc 1.3.9h
www.gardenserre.fr

20 May 2010, 3:09 PM
#16
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

I've found the answer :clap:. What occurred is that the list of countries in the new database didn't match those of the old one. I created (in 1.3.8a) a new zone "Metropolitan France excluding Corsica" because I can't deliver by sea to Corsica. All of my clients live in that zone otherwise they can't be clients. When I created the new base and imported the data from the old, I didn't get the country error message when I tested it before upgrading the database. It was only after the upgrade that the problem occurred ie "Metropolitan France excluding Corsica" appears to have been deleted in the upgrade process so all my clients defaulted to the "Aaland Islands" which produced the error. It would be nice to know why this happened however. Anyway, onto more interesting things...

Pete
zc 1.3.9h
www.gardenserre.fr

20 May 2010, 3:16 PM
#17
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,188
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

Petek,
Dang those pesty little errors. Thanks for the fix on the feedback..

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

20 May 2010, 7:13 PM
#18
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

haredo:

Petek,
Dang those pesty little errors. Thanks for the fix on the feedback..

Yes, but why did it happen in the first place ? zc_install deleted my custom country zone : why ? Zat eez ze question !

Pete
zc 1.3.9h
www.gardenserre.fr

21 May 2010, 10:14 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

the zc_install upgrade process for 1.3.9 doesn't delete any custom zone data

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 May 2010, 9:54 AM
#20
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: Customer details lost afetr upgrade from 1.3.8a to 1.3.9b

DrByte:

the zc_install upgrade process for 1.3.9 doesn't delete any custom zone data

Never mind, all is well now.

Pete
zc 1.3.9h
www.gardenserre.fr