Menu

#18 File upload error in TRUNK

1.7
closed
nobody
trunk (1)
5
2017-02-23
2015-07-01
No

When uploading a file with the default filebrowser, the following error is reported (the file is uploaded nonetheless):

Unknow error type [4096]: Argument 2 passed to Filebrowser\View::success() must be of the type array, string given, called in C:\xampp\htdocs\xh\trunk\plugins\filebrowser\classes\Controller.php on line 521 and defined
C:\xampp\htdocs\xh\trunk\plugins\filebrowser\classes\View.php:465

It's possible to fix this issue by simply removing the array type hint from View::success(). However, I suggest to change View::translate() to expect always an array, what appears to be cleaner. There are only a few places where the calls would have to be adjusted.

Discussion

  • Christoph Michael Becker

    • summary: File upload error --> File upload error in TRUNK
     
  • Christoph Michael Becker

    Not only View::success() is affected, but also ::error(), ::message() and ::info().

     
  • Christoph Michael Becker

    • status: open --> closed