1
goffy
Module upgrade for xoops 2.5.8
  • 2016/7/22 16:29

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


Hi

I'm trying to upgrade an old module to xoops 2.5.8

no I get following message Quote:
Should call parent::__construct in /modules/xcomp/class/starterliste.php line 53, in Datei /kernel/object.php Zeile 125


how can I solve this?

maybe someone can help

2
goffy
Re: Module upgrade for xoops 2.5.8
  • 2016/7/22 19:48

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


PS:

the module was originally created with tdmcreate 1.39

Quote:
...
48: class xcomp_starterliste extends XoopsObject
49: {
50: //Constructor
51: function __construct()
52: {
53: $this->XoopsObject();
54: $this->initVar("starterliste_id",XOBJ_DTYPE_INT,null,false,10);
...


if I remove this line, the message doesn't come, but I am not sure, whether I can remove this line without any substitute.

3
zyspec
Re: Module upgrade for xoops 2.5.8
  • 2016/7/22 20:05

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Line 53 should be changed from:
$this->XoopsObject();

to:
parent::__construct();

4
goffy
Re: Module upgrade for xoops 2.5.8
  • 2016/7/22 20:20

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


thumb up

thanks

Login

Who's Online

436 user(s) are online (326 user(s) are browsing Support Forums)


Members: 0


Guests: 436


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits