Ho installato osCommerce 2.2-MS2 versione Magnino su IIS + PHP5; ma in amministrazione sulla maggior parte delle funzioni mi restituisce questo errore:
Warning: Division by zero in C:\Inetpub\wwwroot\pippo.it\admin\includes\classes\split_page_results.php on line 33
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 'MAX_DISPLAY_SEARCH_RESULTS' at line 1
select currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, last_updated, value from sac_currencies order by title limit 0, MAX_DISPLAY_SEARCH_RESULTS
Errore! Aiutooooo.
Moderatore: mod Generali
Re: Errore! Aiutooooo.
Ciaosersac ha scritto:Ho installato osCommerce 2.2-MS2 versione Magnino su IIS + PHP5; ma in amministrazione sulla maggior parte delle funzioni mi restituisce questo errore:
Warning: Division by zero in C:\Inetpub\wwwroot\pippo.it\admin\includes\classes\split_page_results.php on line 33
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 'MAX_DISPLAY_SEARCH_RESULTS' at line 1
select currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, last_updated, value from sac_currencies order by title limit 0, MAX_DISPLAY_SEARCH_RESULTS
Prova a fare queste modifiche:
in catalog/includes/classes/split_page_results.php Linea 67
da così
Codice: Seleziona tutto
$this->sql_query .= " limit " . $offset . ", " . $this->number_of_rows_per_page;
Codice: Seleziona tutto
$this->sql_query .= " limit " . max($offset, 0) . ", " . $this->number_of_rows_per_page;
catalog/admin/includes/classes/split_page_results.php Line 38
da così
Codice: Seleziona tutto
$sql_query .= " limit " . $offset . ", " . $max_rows_per_page;
Codice: Seleziona tutto
$sql_query .= " limit " . max($offset, 0) . ", " . $max_rows_per_page;
Prova e fammi sapere.
Ciao Simona