Pagina 1 di 1

Errore! Aiutooooo.

Inviato: 13/07/2007, 18:26
da sersac
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

Re: Errore! Aiutooooo.

Inviato: 23/08/2007, 23:03
da Simona67
sersac 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
Ciao

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;
a così

Codice: Seleziona tutto

$this->sql_query .= " limit " . max($offset, 0) . ", " . $this->number_of_rows_per_page;
ora apri questo file
catalog/admin/includes/classes/split_page_results.php Line 38

da così

Codice: Seleziona tutto

$sql_query .= " limit " . $offset . ", " . $max_rows_per_page;
a così

Codice: Seleziona tutto

$sql_query .= " limit " . max($offset, 0) . ", " . $max_rows_per_page;
se non erro il problema è la versione del php5

Prova e fammi sapere.

Ciao Simona