Zen Cart Logo
Forums / General Questions / Customers can not be edited

Customers can not be edited

Views: 1,915

Results 1 to 12 of 12
19 Sep 2014, 11:06 PM
#1
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Customers can not be edited

Hi,

I had to import customers from a different database. So I created a dummy customer first then downloaded the CSV file to match the fields. I have done this with two tables. ID's match on both tables. All imported new customers have data matching the zencart required fields.
zen_customers_info
zen_customers

I can open and edit mu dummy customer but I can not even select to open the imported customers.

Only strange thing is all the new customers have 'Account Created' and 'Last Login' fields with date >> 11/30/2036 . This happens regardless of leaving the CVS field blank or filled with another date before import.

What else I need to do?
Is there another table should I be editing?

20 Sep 2014, 12:21 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Customers can not be edited

Maybe check the information associated with customers in this thread, though the date issue may also play a factor.

http://www.zen-cart.com/wiki/index.php/Developers_-_Database_Schema#Customer_Information

The date(s) could be updated with a sQL command to change all dates in the future to perhaps one in the past, but it is somewhat surprising that the date doesn't "transfer" unless there is something wrong with the format.

20 Sep 2014, 1:09 AM
#3
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Customers can not be edited

Hi,

Yes thank you date was the factor. I have changed all the new customer fields in 'DOB' to one date in the pass and in 'Account Created' and 'Last Login' to same dates in the pass. What is happening now is very unusual.

Some customers can be selected with the blue 'ARROW' pointer but some can't. Additionally if I select any random customer, it paginates to some random page number and on the new page right hand INFO (EDIT/DELETE/EMAIL) panel disappears. Naturally since on that page I can't see the right pane I can not find out if I can edit ornot.

To make it work I made all the dates on the fields same. Customer that work and the ones do not work have all same fields. Information on the customer does varies of course.

I am totally baffled.

20 Sep 2014, 1:40 AM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Customers can not be edited

oavs:

Hi,

Yes thank you date was the factor. I have changed all the new customer fields in 'DOB' to one date in the pass and in 'Account Created' and 'Last Login' to same dates in the pass. What is happening now is very unusual.

Some customers can be selected with the blue 'ARROW' pointer but some can't. Additionally if I select any random customer, it paginates to some random page number and on the new page right hand INFO (EDIT/DELETE/EMAIL) panel disappears. Naturally since on that page I can't see the right pane I can not find out if I can edit ornot.

To make it work I made all the dates on the fields same. Customer that work and the ones do not work have all same fields. Information on the customer does varies of course.

I am totally baffled.

What error messages (logs folder) if any are you getting? (Information not displaying usually means anerror.)

20 Sep 2014, 2:07 AM
#5
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Customers can not be edited

That is it:

[19-Sep-2014 19:04:31 America/Chicago] PHP Warning: array_merge(): Argument #1 is not an array in /home/dogetrea/public_html/dog/nimda/customers.php on line 1106
[19-Sep-2014 19:04:31 America/Chicago] PHP Warning: array_merge(): Argument #2 is not an array in /home/dogetrea/public_html/dog/nimda/customers.php on line 1108
[19-Sep-2014 19:04:31 America/Chicago] PHP Warning: reset() expects parameter 1 to be array, null given in /home/dogetrea/public_html/dog/nimda/includes/classes/object_info.php on line 29
[19-Sep-2014 19:04:31 America/Chicago] PHP Warning: Variable passed to each() is not an array or object in /home/dogetrea/public_html/dog/nimda/includes/classes/object_info.php on line 30

20 Sep 2014, 2:11 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Customers can not be edited

If you need to gather more information about the error, then perhaps lat9's mydebug backtrace plugin: http://www.zen-cart.com/downloads.php?do=file&id=1879 would help. If not for this, probably will help with the other mods you seem likely to do. :)

20 Sep 2014, 2:16 AM
#7
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Customers can not be edited

I have deleted all the log files in order to re generate them. I repeated the same process in admin with same problem but system did not generate any log files ...??.. where else should I look now.

Log files were in /logs

20 Sep 2014, 3:40 AM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Customers can not be edited

oavs:

I have deleted all the log files in order to re generate them. I repeated the same process in admin with same problem but system did not generate any log files ...??.. where else should I look now.

Log files were in /logs

Well, was wondering about the data itself and if there was any type of checkon the buttons themselves. Then sort of like you wondering if they are displayed, but perhaps in some way not on screen. If you have a web site inspector such as firebug, then perhaps can find the button(s) and maybe bring them back onscreen or figure out why they are not present. Probably could tellthe same thing by looking at the source code to the page. Suggest of course first looking/inspecting one of the "working" ones then open a second and see what if anything specific seems different.

20 Sep 2014, 12:52 PM
#9
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Customers can not be edited

oavs:

Hi,

I had to import customers from a different database. So I created a dummy customer first then downloaded the CSV file to match the fields. I have done this with two tables. ID's match on both tables. All imported new customers have data matching the zencart required fields.
zen_customers_info
zen_customers

I can open and edit mu dummy customer but I can not even select to open the imported customers.

Only strange thing is all the new customers have 'Account Created' and 'Last Login' fields with date >> 11/30/2036 . This happens regardless of leaving the CVS field blank or filled with another date before import.

What else I need to do?
Is there another table should I be editing?

Did you also import the address_book table?

Thanks,

Anne

20 Sep 2014, 1:13 PM
#10
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,089
Plugin Contributions:
56

Re: Customers can not be edited

picaflor-azul:

Did you also import the address_book table?

Thanks,

Anne
:yes: Not having the address_book table would certainly explain the logs that oavs posted in post#5 -- note that only the first one is pertinent, the remaining issues identified are based on an empty country array.

6 Oct 2014, 10:00 PM
#11
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Customers can not be edited

This is now all working 100% based on your responses.

Thank you all.

6 Oct 2014, 10:05 PM
#12
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: Customers can not be edited

The only problem with customers now is this. If I select any random customer, screen 'jumps/refreshes' to the page where the customer is without the blue arrow pointer/selector. At the same time same ting happens with the right hand column despairing totally. On another random selection of a customer blue arrow pointer points to the correct customer and right hand column stays as normal.

Does this indicate some sort of customer details NOT been consistent? All the customers are there listed under the 'Customers' with identical field information.

Any ideas on this?