Errore! Aiutooooo.

Postate qui discussioni di carattere generale riguardo a problemi di installazione e configurazione di osCommerce

Moderatore: mod Generali

Rispondi
sersac
membro Junior
membro Junior
Messaggi: 9
Iscritto il: 24/02/2006, 20:26

Errore! Aiutooooo.

Messaggio 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
Avatar utente
Simona67
membro Veteran
membro Veteran
Messaggi: 786
Iscritto il: 10/11/2003, 1:00
Località: Milano
Contatta:

Re: Errore! Aiutooooo.

Messaggio 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
Rispondi