PHP 7 - Fatal error

Permalink Browser Info Environment
i just want to let you know that PHP 7 requires a small modification in controller.php of the EasyImageGallery (1.3.1) block, in oder to avoid fatal errors:


public function registerViewAssets()

should be:
public function registerViewAssets($outputContent = '')

Best regards,

Type: Discussion
Status: In Progress
View Replies:
delusioninabox replied on at Permalink Reply
Thank you!!!! You're a lifesaver!
okapi replied on at Permalink Reply
You're welcome!
There are even more pitfalls with arguments of some functions in controller.php of some add-ons, when C5 is running on PHP7. Fortunately, the error messages are descriptive enough to let even non-programmers know what has to be changed.
trimmeri replied on at Permalink Reply
This is still an issue, not a big thing to correct to code.

I used two hours of my life finding out the problem, just before spending 20 bucks.

Please fix.
weyboat replied on at Permalink Reply
I gave up on this addon for the above error that still gets generated several months after it was reported! (NOT FIXED)
I also noted that every time the gallery was edited, every image in the gallery was assigned a new file version!
For a site with in excess of 100 users each editing their own gallery with up to 150 images per gallery, the FileVersions table in the database would soon bloat the database..

concrete5 Environment Information


Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.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.