
Originally Posted by
hrinfo
Hi Guys,
I downloaded the nickname module and it is great. It works fine everywhere except on one area. In admin when you login the first page that you see is the stats, new customers etc.
If you click on the new customers link then you get the following error:
Customers Reset Search:
Search Filter: Test
1054 Unknown column 'a.entry_nick' in 'where clause'
in:
[select count(*) as total from customers c left join customers_info ci on c.customers_id= ci.customers_info_id left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id left join coupon_gv_customer cgc on c.customers_id = cgc.customer_id where c.customers_lastname like '%Test%' or c.customers_firstname like '%Test%' or c.customers_email_address like '%Test%' or c.customers_telephone rlike 'Test' or a.entry_company rlike 'Test' or a.entry_street_address rlike 'Test' or a.entry_city rlike 'Test' or a.entry_postcode rlike 'Test' or a.entry_nick rlike 'Test']
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.
I could leave with it but I am worry that it may eventually break the DB. Any ideas?
Tassos
Looks like I missed one.. I'll have to see why it's there, but for now in admin/customers.php around line 1151 find..
Code:
$search = "where c.customers_lastname like '%" . $keywords . "%' or c.customers_firstname like '%" . $keywords . "%' or c.customers_email_address like '%" . $keywords . "%' or c.customers_telephone rlike '" . $keywords . "' or a.entry_company rlike '" . $keywords . "' or a.entry_street_address rlike '" . $keywords . "' or a.entry_city rlike '" . $keywords . "' or a.entry_postcode rlike '" . $keywords . "' or a.entry_nick rlike '" . $keywords . "'";
remove the a.entry_nick like this..
Code:
$search = "where c.customers_lastname like '%" . $keywords . "%' or c.customers_firstname like '%" . $keywords . "%' or c.customers_email_address like '%" . $keywords . "%' or c.customers_telephone rlike '" . $keywords . "' or a.entry_company rlike '" . $keywords . "' or a.entry_street_address rlike '" . $keywords . "' or a.entry_city rlike '" . $keywords . "' or a.entry_postcode rlike '" . $keywords . "'";
That will solve the problem for now. Let me know if you find any more. I found that not allot of folks like having to enter a nick name so i made mine a option and not required.