There is an issue in mini panels:
Undefined variable: current_page in panels_mini_block_list_alter()
This does not throw an error but rather a notice in PHP.
The culprit code is here:
if (module_exists('page_manager')) {
$current_page = page_manager_get_current_page();
}
Which throws the notice here:
if (!$current_page || empty($current_page['contexts'])) {
Where the variable should still be instantiated even if page_manager doesn't get picked up by module_exists().
A possible fix:
$current_page = false;
if (module_exists('page_manager')) {
$current_page = page_manager_get_current_page();
}
Comments
Comment #2
totipotek commentedComment #3
totipotek commentedComment #4
totipotek commentedThis patch is ready. Needs to be reviewed by the community for inclusion in next release.
Comment #5
heykarthikwithuhi @totipotek, i tried to reproduce the bug, but was not able to..
please provide the steps to reproduce the bug.
Comment #6
jacob.embree commentedTo reproduce this page_manager needs to be disabled. I am not sure of all conditions or steps to reproduce.
This patch uses an all-capital "FALSE".
Comment #7
joelpittetThanks I've committed this to the dev branch.