Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Error messages in helix ii mod_sp_smart_slider\helper.php on line 74,75,79 after upgrading t php 7.0.13

Featured Lock Resolved Issue
I did a XAMPP test before upgrade some online sites to php 7 and now i have to work on the folloeing issue:

Bitnami XAMPP 7.0.13
PHP Version 7.0.13
joomshaper template helix ii versions:


Helix V2 Shortcode Generator
Site Plugin 1.2 June 2014 JoomShaper.com editors-xtd 10159

shaper_helix_ii
Site Template 2.3 Feb 2013 JoomShaper.com Unbekannt 10013

System - Helix Framework
Site Plugin 2.3 March 2011 JoomShaper.com system 10014

issue:

Notice: Array to string conversion in E:\xampp\htdocs\palestra-tinos\modules\mod_sp_smart_slider\helper.php on line 74

Notice: Array to string conversion in E:\xampp\htdocs\palestra-tinos\modules\mod_sp_smart_slider\helper.php on line 75

Notice: Array to string conversion in E:\xampp\htdocs\palestra-tinos\modules\mod_sp_smart_slider\helper.php on line 79

..repeated several times ...
(according to number of pictures i imagine)

the lines 74..79 from helper.php are copied here, line number see my /* ..*/ comment


* Grab slider data, format it and return display
* @return array
*/
public function generate()
{

$data = array();
$params = $this->getParams($this->params->get('sliders'));
foreach((array) $params as $index=>$class)
{
$className = 'sp'.ucfirst($class['source']).'SliderHelper';
include_once 'helpers/'.$className.'.class.php';
/* line 74 */ $$class['source'] = new $className();
/* line 75 */ $$class['source']->params = $params[$index];

if( isset($params[$index]['state']) and $params[$index]['state']!='published' ) continue;

/* line 79 */ $data[]= $$class['source']->display($this);
}

return $data;
}

Question:

any idea?
do i have to upgrade to helix3?

best regards

Albrecht

4 Answers

Rifat Wahid Alif - Staff

More than a month ago #Permalink
I have tested in MAMP PHP 7.0.8 i am getting nothing here. could you please try by replace it:

/* line 74 */ $class['source'] = new $className();
/* line 75 */ $class['source']->params = $params[$index];

if( isset($params[$index]['state']) and $params[$index]['state']!='published' ) continue;

/* line 79 */ $data[]= $class['source']->display($this);

Albrecht

More than a month ago #Permalink
I applied your changes to helper.php and it worked without the former php notices!
Thanx, Albrecht

Rifat Wahid Alif - Staff

More than a month ago #Permalink
you are always welcome ;)


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 111
Toufiq

Toufiq

Total Accepted Answers: 86
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 70
Ofi Khan

Ofi Khan

Total Accepted Answers: 48
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 36

121

Templates

315216

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us