I get blank screen at pages like /node/[nid]/revisions/[vid]/revert (for any node type) with the error in log:

Error: Call to a member function bundle() on string in filebrowser_theme_suggestions_container_alter() (line 307 of modules/contrib/filebrowser/filebrowser.module).

Comments

Alex Bukach created an issue. See original summary.

alex.bukach’s picture

Assigned: alex.bukach » Unassigned
Status: Active » Needs review
StatusFileSize
new1.71 KB

It happens since \Drupal::routeMatch()->getParameter('node') might return not only node object, but also raw node ID depending on menu path (see e.g. https://drupal.stackexchange.com/questions/229100/convert-view-route-par...).

alex.bukach’s picture

StatusFileSize
new3.16 KB
new1.8 KB

Covered two more usages.

  • clivesj committed 52be04d on 8.x-2.x
    Issue #2878294 by Alex Bukach: Call to a member function bundle() on...
clivesj’s picture

Status: Needs review » Fixed

Thanks for the patch.
I have moved the helper function to filebrowser.common Service where the other helpers reside.
Commited to dev and released beta5

clivesj’s picture

Status: Fixed » Closed (fixed)