When editing a page that contains a Repeater Matrix field I get an error in the Page Files panel:
ErrorException: Invalid argument supplied for foreach() in D:\_Websites\_www\1testing\site\assets\cache\FileCompiler\site\modules\TracyDebugger\panels\PageFilesPanel.php:232
I did some quick debugging and the issue seems to relate to files/images fields that are allowed for one matrix type but not another matrix type.
...which would be fine normally because a field that is an instance of FieldtypeFile (sidenote: you might want to search Tracy for occurrences of "FieldType" which is the wrong capitalisation) will normally return a WireArray when output formatting is off. But Repeater Matrix returns null for fields that exist in the matrix template but do not exist in the matrix type of a given matrix page. Refer to RepeaterMatrixPage::getField()
So maybe add an extra check that the field value is truthy?
When editing a page that contains a Repeater Matrix field I get an error in the Page Files panel:
I did some quick debugging and the issue seems to relate to files/images fields that are allowed for one matrix type but not another matrix type.
In PageFilesPanel.php you have...
...which would be fine normally because a field that is an instance of FieldtypeFile (sidenote: you might want to search Tracy for occurrences of "FieldType" which is the wrong capitalisation) will normally return a WireArray when output formatting is off. But Repeater Matrix returns null for fields that exist in the matrix template but do not exist in the matrix type of a given matrix page. Refer to
RepeaterMatrixPage::getField()
So maybe add an extra check that the field value is truthy?