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.

Type: Discussion
Status: In Progress
webpresso
View Replies:
DevilDiva replied on at Permalink Reply
DevilDiva
Indeed this fixed the error after moving site to a sandbox updated to php 7.
tobyme replied on at Permalink Reply
tobyme
I love it when people have taken the time to post their fixes and it works!

Thank you.
mlocati replied on at Permalink Reply
mlocati
I posted a description (and the solution) of this problem here:https://www.concrete5.org/community/forums/block_requests/block-zoom...
thenine replied on at Permalink Reply
thenine
THANKS!
edsaxmoore replied on at Permalink Reply
edsaxmoore
Thank you SOOO much for sharing the fix!
abuumar replied on at Permalink Reply
abuumar
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

concrete5 Environment Information

Concrete5 7.5.6
PHP 7

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.