You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2018. It is now read-only.
Brand new site (tested on D8.2 and 8.3), new subtheme of stable with basically nothing in it, got the following on enabling the module:
AH01071: Got error 'PHP message: Error: Cannot use string offset as an array in /var/www/ama-d8.local/web/modules/contrib/workbench_tabs/src/Element/LocalTasks.php on line 59 #0 [internal function]: Drupal\\workbench_tabs\\Element\\LocalTasks::preRenderLocalTasks(Array)
...
Commenting out that line $element[$key][$tab_key]['#theme'] = 'workbench_tabs_menu_local_task'; makes the site load again.
Dumping out $element before that gives the following:
for some elements, and somehow $elements[#primary] is getting a string "A" instead of being empty, which is causing the exception when the string is trying to be overridden by an array.
Adding
if (!is_array($element[$key])) {
$element[$key] = [];
}
fixes things up, but I'm not sure if that's a solution to why there's that random "A" in there in the first place...
The text was updated successfully, but these errors were encountered:
froboy
changed the title
WSOD on Drupal 8.2
WSOD when module is enabled
Aug 1, 2017
Brand new site (tested on D8.2 and 8.3), new subtheme of stable with basically nothing in it, got the following on enabling the module:
Commenting out that line
$element[$key][$tab_key]['#theme'] = 'workbench_tabs_menu_local_task';
makes the site load again.Dumping out $element before that gives the following:
for some elements, and somehow
$elements[#primary]
is getting a string "A" instead of being empty, which is causing the exception when the string is trying to be overridden by an array.Adding
fixes things up, but I'm not sure if that's a solution to why there's that random "A" in there in the first place...
The text was updated successfully, but these errors were encountered: