- 🇨🇦Canada joelpittet Vancouver
Let's close this due to age and it targeted a specific version and only 2 issue followers
After switching to PHP7 (in this specific case is PHP 7.2.19) we noticed that drush cc all
command would clog the output with many repeated warnings
Illegal string offset 'type' page.admin.inc:163 [warning]
Illegal string offset 'type' page.admin.inc:166 [warning]
[...]
this behaviour doesn't happen using PHP 5.6 (specifically PHP 5.6.40).
Issue presented itself in Unix/Linux shell environment (bash/zsh) using
We patched ctools page_manager/plugins/tasks/page.admin.inc
file adding some minimal check upon $menu
variable being an array (apparently, when loaded from a drush call it is not):
code
if (empty($menu['type'])) {
$menu['type'] = 'none';
}
became
if (is_array($menu) && empty($menu['type'])) {
$menu['type'] = 'none';
}
else if(!is_array($menu)) {
$menu = ['type' => 'none'];
}
else if(empty($menu['type'])) {
$menu['type'] = 'none';
}
Closed: outdated
1.0
Page Manager
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Let's close this due to age and it targeted a specific version and only 2 issue followers