I'm getting the following error when opening the file picker in a Matrix field. It's broken the keyword search box and pagination within the file picker.
EE v2.7.3 Matrix v2.6.1
It seems the error is caused by the following PHP error:
A PHP Error was encountered Severity: Notice Message: Undefined offset: 0 Filename: libraries/Filemanager.php Line Number: 882
Here's the line responsible for the error:
$dirs = $this->directories(FALSE, TRUE); $dir = $dirs[$params['dir_id']]; // error occurs here
The definition of $this->directories is as follows:
function directories($ajax = FALSE, $return_all = FALSE, $ignore_site_id = FALSE)
Seems odd that it's passing $ajax as FALSE when it's being called by ajax. Could this be the problem?