PHP 7 compatibility
Permalink Browser Info Environment
This addon does not work on PHP 7: viewing the block results in this error:
To solve this issue, I modified the blocks/whale_elastic_slider/controller.php file by changing from
to
Declaration of Concrete\Package\WhaleElasticSlider\Block\WhaleElasticSlider\Controller::validate() should be compatible with Concrete\Core\Block\BlockController::validate($args)
To solve this issue, I modified the blocks/whale_elastic_slider/controller.php file by changing from
public function validate() { $e = Core::make('helper/validation/error'); if((int)$this->post('sliderID')==0) {
to
public function validate($args) { $e = Core::make('helper/validation/error'); if((int)$args['sliderID']==0) {
Type: | Discussion |
---|---|
Status: | In Progress |
We will fix this issue on all our add-ons master copies, and it will be available on next update.
Thanx anyway for the hint.
Cheers,