I have literally spent all day & numerous database versions (each time I've copied the latest database to a new version so I'm always working on a copy, so thankfully haven't touched any live data) attempting to import a user database from a different cms (e107) into Zen. I have read the forums here and there and elsewhere to come up with a method of getting what limited data I have from the e107 database into the new zen database.
When I browse the database through phpmyadmin, I can see the fields I have data for (basically customers_id/addressbook_id/info_id all match and are in each of those seperate tables as well; nickname and password) and all of the automatic fields (null, etc). I do not have data for address, gender, phone, etc.
So, when I try to login and/or retrieve a customer password it tells me that email address doesn't exist. When I go into the admin screen and click customers I get this error:
1054 Unknown column 'ci.customers_info_id' in 'on clause'
in:
[select count(*) as total from zen_customers c left join zen_customers_info ci on c.customers_id= ci.customers_info_id left join zen_address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
So, based on a post here, I popped that into the dev toolkit and get this:
/var/www/html/store/admin/customers.php
Line #985 : $customers_query_raw = "select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created " . $new_fields . " from " . TABLE_CUSTOMERS . " c left join " . TABLE_CUSTOMERS_INFO . " ci on c.customers_id= ci.customers_info_id left join " . TABLE_ADDRESS_BOOK . " a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id " . $search . " order by $disp_order";
/var/www/html/store/admin/includes/modules/newsletters/product_notification.php
Line #212 : where c.customers_id = ci.customers_info_id
Line #242 : where c.customers_id = ci.customers_info_id
For what its worth, I'm running MySQL 4.1.12, Zen Cart 1.3.0.2, Database Patch Level: 1.3.0.2
In all honesty, I really don't know what to do with this information. Its late and I'm tired and braindead, so sorry if this doesn't make much sense. I give up for tonight. Anyone have some insight?
TIA~
~Vicki
Bookmarks