Bonjour,
Je viens d’installer ce snippet, j’ai placer cette commande [!AnythingRating? &define=`1` &atrGrp=`grpName`!] en haut de ma page et celle ci dans mon contenu [!AnythingRating? &atrGrp=`visiteurs` &atrId=`[*id*]`!].
En résultat, j’obtiens un message d’erreur :
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Table ’XXXXXXXXXX.modx_atRating_visiteurs’ doesn’t exist »
SQL: SELECT rating_id as ’params’, rating as ’nbStars’, lastIP as ’atrTpl’, nbIP, voteDate as ’endDate’ FROM modx_atRating_visiteurs WHERE id = ’1’
Ou est le problème ?
EDIT : Si j’attribue un groupe a la valeur "&atrGrp" (&atrGrp=`visiteurs`)dans la commande en top, je n’ai plus d’erreur SQL, mais le snippet ne s’exécute pas :/
---------------------------------
I just installed this snippet, I put this command at the top of my page [!AnythingRating? &define=`1` &atrGrp=`grpName`!] and in my content [!AnythingRating? &atrGrp=`visiteurs` &atrId=`[*id*]`!].
As a result, I get an error message:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Table ’XXXXXXXXXX.modx_atRating_visiteurs’ doesn’t exist »
SQL: SELECT rating_id as ’params’, rating as ’nbStars’, lastIP as ’atrTpl’, nbIP, voteDate as ’endDate’ FROM modx_atRating_visiteurs WHERE id = ’1’
Where’s the problem ?
EDIT : If I put a group is set to "& atrGrp" (&atrGrp=`visiteurs`) in the top command, I have no SQL error, but the snippet is not running :/
it’s really hard to access the website today