Witte667, on 21 February 2007 - 09:37 AM, said:
Hi Code Red,
Try this:
Line 67 in catalog/includes/classes/split_page_results.php must be changed from:
$this->sql_query .= " limit " . $offset . ", " . $this->number_of_rows_per_page;
to:
$this->sql_query .= " limit " . max($offset, 0) . ", " . $this->number_of_rows_per_page;
Line 38 in catalog/admin/includes/classes/split_page_results.php must be changed from:
$sql_query .= " limit " . $offset . ", " . $max_rows_per_page;
to:
$sql_query .= " limit " . max($offset, 0) . ", " . $max_rows_per_page;
Code Red, on 21 February 2007 - 09:23 AM, said:
Hi,
I've just installed this contrib but I'm getting the following error in admin/customers.php -
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1
select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_id, c.customers_group_ra, a.entry_country_id, a.entry_company, cg.customers_group_name from customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id left join customers_groups cg on c.customers_group_id = cg.customers_group_id order by c.customers_id DESC limit -20, 20
Any ideas?
Code Red, on 21 February 2007 - 09:23 AM, said:
Hi,
I've just installed this contrib but I'm getting the following error in admin/customers.php -
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1
select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_id, c.customers_group_ra, a.entry_country_id, a.entry_company, cg.customers_group_name from customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id left join customers_groups cg on c.customers_group_id = cg.customers_group_id order by c.customers_id DESC limit -20, 20
Any ideas?
My Error
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where c.customers_lastname like '%lucas%' or c.customers_firstname like '%lucas%' at line 1
select count(*) as total from customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id, customers_groups cg where c.customers_group_id = cg.customers_group_id where c.customers_lastname like '%lucas%' or c.customers_firstname like '%lucas%' or c.customers_email_address like '%lucas%'