Back to top

Autore Topic: Problema con item di menu  (Letto 1452 volte)

Offline Npaquito

  • Abituale
  • ****
  • Post: 1832
    • Mostra profilo
Problema con item di menu
« il: 07 Set 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.
web design, web mobile

Offline Npaquito

  • Abituale
  • ****
  • Post: 1832
    • Mostra profilo
Re:Problema con item di menu
« Risposta #1 il: 07 Set 2012, 09:02:59 »
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?
web design, web mobile

mau_develop

  • Visitatore
Re:Problema con item di menu
« Risposta #2 il: 07 Set 2012, 12:36:39 »
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.
« Ultima modifica: 07 Set 2012, 12:40:45 da mau_develop »

Offline tomtomeight

  • Global Moderator
  • Fuori controllo
  • ********
  • Post: 32046
  • Sesso: Maschio
  • Gli automatismi aiutano ma non insegnano nulla.
    • Mostra profilo
Re:Problema con item di menu
« Risposta #3 il: 07 Set 2012, 13:34:00 »
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.

 



Web Design Bolzano Kreatif