Bonjour à tous,
J’ai un problème lorsque je souhaite extraire un fichier POT avec la commande cake i18n.
En local sur Mac, j’obtiens :
Extracting...
---------------------------------------------------------------
Paths:
/Users/MyName/htdocs/MyProject/app/
Output Directory: /Users/MyName/htdocs/MyProject/app/Locale/
---------------------------------------------------------------
Error: Class UserNone does not exist
#0 /Users/MyName/htdocs/MyProject/lib/Cake/Console/Command/Task/ExtractTask.php(502): ReflectionClass->__construct('UserNone')
#1 /Users/MyName/htdocs/MyProject/lib/Cake/Console/Command/Task/ExtractTask.php(479): ExtractTask->_extractPluginValidationMessages(NULL)
#2 /Users/MyName/htdocs/MyProject/lib/Cake/Console/Command/Task/ExtractTask.php(292): ExtractTask->_extractValidationMessages()
#3 /Users/MyName/htdocs/MyProject/lib/Cake/Console/Command/Task/ExtractTask.php(237): ExtractTask->_extract()
#4 /Users/MyName/htdocs/MyProject/lib/Cake/Console/Command/I18nShell.php(76): ExtractTask->execute()
#5 /Users/MyName/htdocs/MyProject/lib/Cake/Console/Command/I18nShell.php(90): I18nShell->main()
#6 /Users/MyName/htdocs/MyProject/lib/Cake/Console/Shell.php(462): I18nShell->main()
#7 /Users/MyName/htdocs/MyProject/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand(NULL, Array)
#8 /Users/MyName/htdocs/MyProject/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#9 /Users/MyName/htdocs/MyProject/app/Console/cake.php(47): ShellDispatcher::run(Array)
#10 {main}
En ligne via SSH :
<br />
<b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/homepages/20/d683779766/htdocs/MyProject/lib/Cake/Console/ShellDispatcher.php</b> on line <b>31</b><br />
(uiserver):u89434999:~/MyProject/app$
Merci d’avance pour vos réponses.