jose@myeasygest Posted November 24, 2016 Share Posted November 24, 2016 I am new is this module development for prestashop and I am very surprised by the Prestashop validation system. I developed the module, I tested it in debug mode, I passed the first validator without problems, but in the second validation phase, every week they send me an error, I repair it and the next week they send me another one. Is there no way to streamline the process and send all the errors in a single response? The last error is: "When configuring the module: Warning on line 290 in file /var/www/html/classes/Translate.php [2] vsprintf (): Too few arguments" I think this is error in your translation.php file because it does not reference to my path. Link to comment Share on other sites More sharing options...
jose@myeasygest Posted November 24, 2016 Author Share Posted November 24, 2016 I just do it, i put true in _PS_MODE_DEV_ of the file define.inc.php in the config directory, But I do not see the errors they send me, especially the latter that says: "When configuring the module: Warning on line 290 in file /var/www/html/classes/Translate.php [2] vsprintf (): Too few arguments " Link to comment Share on other sites More sharing options...
bellini13 Posted November 25, 2016 Share Posted November 25, 2016 Are you using any of the following functions from the Translate class ? checkAndReplaceArgs or getPdfTranslation or getAdminTranslation or getModuleTranslation Translate uses vsprintf in the checkAndReplaceArgs function, and expects to arguments. So you must be using one of the above functions in some way incorrectly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now