Joomla.it Forum
Non solo Joomla... => Database => : Npaquito 07 Sep 2012, 07:37:35
-
Hola
In un sito (funzionante in locale) in remoto ho un problema con un (solo) item di menu di sezione blog:
L'item originale é: index.php?option=com_content&Itemid=8&id=1&lang=es&layout=blog&view=section
ora cuando clicco (con sef urls disabilitate) mi redirige a index.php?option=com_content&task=view&id=3.
Invece con le sef url abilitate, se clicca un utente va a una pagina 403, se clicca un registrato va a ?task=view e se clicca il super va alla pagina che dovrebbe andare.
Il menu e l'item sono pubblici, cosi come la sezione, qualche idea?
"Restorato" il sito in locale lo fa anche.
-
Hola
Il debug dice:
500 - JDatabaseMySQL::query: 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 ') AND a.state = 1 ORDER BY a.hits DESC LIMIT 5' at line 1 SQL=SELECT a.id AS id, a.title AS title, a.created AS created, a.introtext AS intro, a.catid AS catid, a.sectionid AS sectionid, a.ordering AS ordering, b.title AS section, c.title AS cat, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END AS catslug FROM añg_content AS a LEFT JOIN añg_sections AS b ON b.id = a.sectionid LEFT JOIN añg_categories AS c ON c.id = a.catid WHERE a.id <> '32' AND a.sectionid <> '7' AND ( ( LOWER(a.created_by_alias) LIKE '%ga=%' AND LOWER(a.created_by_alias) LIKE '%federico-piccoli%' ) OR a.created_by = ) AND a.state = 1 ORDER BY a.hits DESC LIMIT 5
Da quale tabella comincio a cercare?
-
mmhhh sta facendo qualcosa di strano che potrebbe dipendere da caratteri inseriti
nn è che nn capisce qualche carattere spagnolo? .. butto lì
) AND a.state = 1 ORDER BY a.hits DESC LIMIT 5' at line 1
comunque l'errore 1064 è sintassi
M.
-
Dovrebbe essere l'apostrofo, mi ricordo che in una mia applicazione mi dava errore ogni volta che nella query c'era la corrispondenza di un nome con l'apostrofo (es. D'Angelo) ho modificato nel db la codifica e l'errore non è più ricomparso.