-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameter 'message' must be a string in FileValidator #12947
Comments
Not sure what happens here. Somehow you have false returned as message. Can you check what |
File :field exceeds the maximum file size |
Oh https://github.com/phalcon/cphalcon/blob/master/phalcon/validation/validator/file.zep#L114 there is no replacePairs defined, i guess when there is no replace pairs and those are not replaced there is false returned? @sergeyklay |
I will try to fix it later. |
I've also occured this bug |
Same problem happened to me. |
I've the exact same problem. My error messege: Call Stack |
Fixed in the |
Не работает. Проблема актуальна Warning: strtr(): The second argument is not an array in C:\OSPanel\domains\blog.test\app\controllers\DashboardController.php on line 209 Т.е ошибка здесь if (!$avatar->isValid($_FILES)) Что делать? Помимо файла передаются еще текстовые данные из формы. Валидатор:
Контроллер:
|
What version do you run? It has been fixxed 21 days ago.. |
Sorry. Phalcon version: 3.2.2 |
I can't go on while the problem is actually. I hope you'll decide it as soon as possible. |
@deadboy2 just use try..catch:
|
Its WORK! Thank you! |
When i try to validate file upload, and the file exceeds the 'maxSize' specified in the FileValidator i get "Parameter 'message' must be a string" exception.
Code
Output
Details
The text was updated successfully, but these errors were encountered: