AGORA - Parse error

livorno71

Nuovo Utente
11 Gen 2010
2
0
0
Salve, sto realizzando un sito joomla su altervista; ho appena scaricato ed installato l'ultima versione di Agorà (3.0.08) e sto cominciando a fare qualche prova. Cliccando sulla gestione utenti mi compare il seguente messaggio:
Parse error: syntax error, unexpected '(', expecting '}' in /membri/miosito/components/com_agora/model/user.php on line 288

Come e cosa posso fare per risolvere?
Grazie in anticipo.

...

function getUserFullName($username)
{
//// We need it in PM // if we need real name from Joomla we will return to JOIN in future
$this->db->setQuery("SELECT name".
" FROM {$this->table} AS u".
" INNER JOIN #__users AS j".
" ON u.jos_id = j.id".
" WHERE LOWER(TRIM(j.username)) = LOWER({$this->db->Quote(trim($username))})");[/B][/B]
return $this->db->loadResult();
}

function moderateAny($user_id)
{
$this->db->bind('user_id',$user_id,'integer');
$this->db->bindList('roles',array(AGORA_ROLE_ADMIN,AGORA_ROLE_MODERATOR),'integer');
$this->db->setQuery('SELECT COUNT(*) FROM ##__user_group WHERE user_id=:user_id AND role_id IN :)roles)');
return $this->db->loadResult() > 0 ? true : false;
}
 
Ultima modifica:

Eliox

Utente Attivo
25 Feb 2005
4.390
3
0
che versione di PHP stai utilizzando? con PHP 4 Agora può dare qualche errore.
Comunque prova a sostituire:
PHP:
" WHERE LOWER(TRIM(j.username)) = LOWER({$this->db->Quote(trim($username))})");
con
PHP:
" WHERE LOWER(TRIM(j.username)) = LOWER(($this->db->Quote(trim($username))))");
e vedi se funziona
 

MarcoGrazia

Utente Attivo
15 Dic 2009
852
20
28
62
Udine
www.stilisticamente.com
E' su Altervista nella home principale è PHP4, per usare la versione 5 deve usare la directory apposita.
Non so perché si ostinano ancora a usare la 4 quando persino quelli del PHP hanno detto di buttarla alle ortiche.
 

Eliox

Utente Attivo
25 Feb 2005
4.390
3
0
Per questioni di retrocompatibilità con script "vetusti" credo
 
Discussioni simili
Autore Titolo Forum Risposte Data
W Parse error: syntax error, unexpected '$result' (T_VARIABLE) PHP 4
T [PHP] ...Parse error che non c'è... PHP 7
G [WordPress] [PHP] Parse error: syntax error, unexpected '$x332cbce1' WordPress 2
G Script Bash linux parse Programmazione 10
N [PHP] problema Parse error in file configurazione PHP 3
U [PHP] Parse error: syntax error, unexpected variabile (T_VARIABLE) PHP 8
G Parse error: syntax error, unexpected '=' PHP 2
gandalf1959 Parse error: syntax error, unexpected T_VARIABLE PHP 2
Z Parse error: syntax error, unexpected 'parts' (T_STRING), expecting ',' or ';' PHP 2
F Aiuto PHP : Parse error PHP 1
K Notifiche con parse.com Sviluppo app per Android 1
T Nuova installazione vB: Parse error: syntax error, unexpected T_STRING ... CMS (Content Management System) 0
neo996sps Non riesco a fare un parse XML con PHP PHP 1
K Parse error: syntax error, unexpected $end PHP 2
F inviare dati ottenuti da "parse script" PHP 5
H Parse error: syntax error, unexpected T_SL in /membri/sito/pagina.php... PHP 2
M parse error:syntax error,unexpected T_STRING PHP 2
P Parse error: syntax error, unexpected T_STRING on line 5 PHP 7
D Parse Error Login PHP 2
L responseXML -> xml parse error XML 2
B Parse error PHP 66
J Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in PHP 3
U Parse Error PHP 6
N Parse error: syntax error, unexpected T_VARIABLE Piccolo Aiutino :) PHP 0
L Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' PHP 1
W Area riservata: Parse error PHP 2
S 404 Error " Page not Find" Error SEO e Posizionamento 0
L Error Code: 1215. Cannot add foreign key constraint MySQL 3
M HTTP Status 500 - Internal Server Error. Java 0
A Uncaught Error: jQuery 1
F Uncaught (in promise) Error: 3000ms timeout exceeded Javascript 0
U Campo vuoto data errore Fatal error: PHP 2
W ADODB.Recordset error '800a0bb9' Classic ASP 2
D error text in table HTML e CSS 11
W Microsoft OLE DB Provider for Visual FoxPro error '80040e14' Function name is missing ). Classic ASP 0
W Errore di run-time di Microsoft VBScript error '800a0035' Impossibile trovare il file Classic ASP 0
I Fatal error: Query Failed! SQL: SELECT * INTO OUTFILE PHP 1
G Upload file error Apache 0
A Server Apache immagine not found (ERROR 404) Apache 5
L [PHP] Fatal error: Call to a member function prepare() on null in PHP 0
D [PHP] Fatal error: Class 'COM' not found in C:\..... PHP 6
T MySQL ERROR 1064 MySQL 1
T [PHP] aiuto....Fatal error: Uncaught Error:non riesco a capire PHP 1
C [PHP] Errore "Fatal error: Call to undefined function getTotalUsers()" PHP 2
V [MySQL] You have an error in your SQL syntax MySQL 1
G PHPMailer: SMTP error Gmail PHP 8
I [PHP] Login Facebook SDK returned an error: No URL set! PHP 0
bubino8 [PHP] Query syntax error PHP 6
J [PHP] Recoverable fatal error: PHP 4
momeraths [WordPress] cURL error: problema aggiornamento/installazione plugin WordPress 4

Discussioni simili