Error with PHP7
Permalink Browser Info Environment
We had this error on our installation after chaning to php 7:
[code]
Declaration of Concrete\Package\VividThumbGallery\Block\VividThumbGallery\Controller::registerViewAssets() should be compatible with Concrete\Core\Block\BlockController::registerViewAssets($outputContent = '')
[\code]
This could be fixed by changing one line of code in this file:
vivid_thumb_gallery/blocks/vivid_thumb_gallery/controller.php
Line 141
Change:
[code]
public function registerViewAssets()
[\code]
To:
[code]
public function registerViewAssets($outputContent = '')
[\code]
Should work again.
[code]
Declaration of Concrete\Package\VividThumbGallery\Block\VividThumbGallery\Controller::registerViewAssets() should be compatible with Concrete\Core\Block\BlockController::registerViewAssets($outputContent = '')
[\code]
This could be fixed by changing one line of code in this file:
vivid_thumb_gallery/blocks/vivid_thumb_gallery/controller.php
Line 141
Change:
[code]
public function registerViewAssets()
[\code]
To:
[code]
public function registerViewAssets($outputContent = '')
[\code]
Should work again.
Type: | Discussion |
---|---|
Status: | In Progress |
Indeed this fixed the error after moving site to a sandbox updated to php 7.
I love it when people have taken the time to post their fixes and it works!
Thank you.
Thank you.
I posted a description (and the solution) of this problem here:https://www.concrete5.org/community/forums/block_requests/block-zoom...
THANKS!
Thank you SOOO much for sharing the fix!
Hello,
Thanks so much for sharing this information but the error still appears on my page after changing the code on line 141. Pls what am i missing
Thanks so much for sharing this information but the error still appears on my page after changing the code on line 141. Pls what am i missing