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.

TypeError: Cannot read property 'rows' of null

EE v2.7.3 Matrix v2.6.1

Update #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

Update #2

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?

1 Answer 1


Have you tried updating to the latest version of Matrix? Perhaps it's a compatibility issue. https://docs.pixelandtonic.com/matrix/changelog.html

  • Good suggestion. I updated Matrix but still no luck. I'm putting off updating EE because it's such a hassle but it looks like I might have to.
    – Patrick64
    Apr 1, 2016 at 8:25
  • 1
    I updated EE and that seems to have fixed it.
    – Patrick64
    Apr 1, 2016 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.