Welcome, Guest
Username: Password: Remember me
JO Vertical Slideshow

TOPIC: PHP error

PHP error 9 years 3 months ago #1557

Dear Joomcore-Team,
I used your slider very successful on my website but since the last update to JOOMLA 3.3.6 (and PHP 5.5) I got the following error message in the frontend above the slider.

>>>
Warn­ing: Cre­at­ing default object from empty value in /var/www/vhosts/raumpfeffer.de/httpdocs/modules/mod_jo_vertical_slideshowimages/helper.php on line 41 Warn­ing: Cre­at­ing default object from empty value in /var/www/vhosts/raumpfeffer.de/httpdocs/modules/mod_jo_vertical_slideshowimages/helper.php on line 41 Warn­ing: Cre­at­ing default object from empty value in /var/www/vhosts/raumpfeffer.de/httpdocs/modules/mod_jo_vertical_slideshowimages/helper.php on line 41
<<<

You can see it on my website e.g.: www.raumpfeffer.de/component/k2/item/22-...e-laerche-gebuerstet

What can I do to eliminate this error. It's on every page! I have the newest version of Joomla, PHP and of you slider module.

Best regards and thanks in advance,
Dennis
The administrator has disabled public write access.

PHP error 9 years 3 months ago #1559

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Dennis
Find and open file modules/mod_jo_vertical_slideshowimages/helper.php go to line 41 and changed
$images[$i]->name = $img;
To
$images[$i]->name = @$img;
Best regards
Bach Pham
The administrator has disabled public write access.

PHP error 9 years 3 months ago #1560

Thanks for the tip.
Unfortunately it didn't help.

But I found another solution at stackoverflow.com/questions/13115021/war...-while-upgrading-php

and added
$images[$i] = new stdClass();

before line 41. That helped! :)
The administrator has disabled public write access.

PHP error 9 years 3 months ago #1561

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Dennis
Great solution :D
Best regards
Bach Pham
The administrator has disabled public write access.
Time to create page: 0.052 seconds