Site broke after upgrading to 5.8
Permalink Browser Info Environment
I am trying to upgrade my concrete5 installation and am running into this error:
Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Declaration of Concrete\Package\PagePickerPlus\Block\PagePickerPlus\Controller::save(array $args) should be compatible with Concrete\Core\Block\BlockController::save($args)
/public_html/packages/page_picker_plus/blocks/page_picker_plus/controller.php
echo $output;
}else {
http_response_code(404);
}
exit();
}
}
I also cannot find how to download the most current version of PagePicker+ ... I think my install was still on v1 with no option to update the plugin via the dashboard.
Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Declaration of Concrete\Package\PagePickerPlus\Block\PagePickerPlus\Controller::save(array $args) should be compatible with Concrete\Core\Block\BlockController::save($args)
/public_html/packages/page_picker_plus/blocks/page_picker_plus/controller.php
echo $output;
}else {
http_response_code(404);
}
exit();
}
}
I also cannot find how to download the most current version of PagePicker+ ... I think my install was still on v1 with no option to update the plugin via the dashboard.
Type: | Pre-Sale |
---|---|
Status: | In Progress |
Thanks so much for your quick reply! Your fixed worked and I was able to finish my upgrade to Concrete 5.8 as well as update Page Picker+ to v 3.1.3.
Glad I could help and it all worked out. I'm double checking the older versions of the add-ons just to be sure. Do you know what version of the add-on you had?
I just figured out you were using version 1.2 of the add-on. The problem was fixed in 2.0. I just released 1.2.1 that fixes the bug for version 1.2 for anyone else that has that version.
My apologies for the inconvenience it caused and thanks for reporting the bug!
My apologies for the inconvenience it caused and thanks for reporting the bug!
I'm sorry to hear about the bug. It's caused by the typeasting of $args as array (array $args) that isn't compatible with the method it's overriding from Concrete that doesn't typecast $args. I fixed this bug and this was in version 2.0 according to my changelogs but when I browse through the files I still see the array typecast in my repository, which is strange.
I will sort things out as soon as I get back from work this evening and get back to you. For now just removing the array typecast should be enough to fix the bug and get your site working again. I'm not sure if you are familiar wiith code but all you have to do is open the file /packages/page_picker_plus/blocks/page_page_plus/controller.php and remove the 'array' keyword from the method.
So this:
Becomes this: