PHP7 - Error because of public function validate()

Permalink Browser Info Environment
Hi shahroq,

i just want to let you know - and customers who are running PHP7 - that there is a small modification of an argument to be done in whale_grid_gallery/blocks\whale_grid_gallery/controller.php to avoid the following errror message on Concrete5 and PHP7:

Declaration of Concrete\Package\WhaleGridGallery\Block\WhaleGridGallery\Controller::validate() should be compatible with Concrete\Core\Block\BlockController::validate($args)

The solution is, in whale_grid_gallery/blocks\whale_grid_gallery/controller.php, change:
public function validate()

public function validate($args)


Type: Discussion
Status: In Progress
View Replies:
shahroq replied on at Permalink Reply
Hi Michael,
ThanX for the hint, i changed that to all related add-on on our master copies, that will be available on next update of each add-on.
okapi replied on at Permalink Reply
Thank you!
Just a note, in case you are also using:
public function registerViewAssets()

in one of your add-ons,
it should be:
public function registerViewAssets($outputContent = '')

for PHP7.
At least these are the two that i know of.
shahroq replied on at Permalink Reply
Thank you, i will check that too.

concrete5 Environment Information


Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:46.0) Gecko/20100101 Firefox/46.0

Hide Post Content

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

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.