Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

[Warning] Missing argument 3 for ComplexTableField_Item::__construct() ...


Go to End


5 Posts   2552 Views

Avatar
Avalon

Community Member, 6 Posts

10 April 2010 at 4:45am

Hi All,

I am having a bit of a problem with DataObjectManager.
I am getting this error message after attempting to add an item and refreshing the admin. After I close out the cms popup, the list does not reflect the new items added.

[Warning] Missing argument 3 for ComplexTableField_Item::__construct(), called in <local SS install path>\dataobject_manager\code\DataObjectManager.php on line 584 and defined

GET <server SS install path>/admin

Line 980 in <local SS install path>\sapphire\forms\ComplexTableField.php

Source:

971 * @package forms
972 * @subpackage fields-relational
973 */
974 class ComplexTableField_Item extends TableListField_Item {
975 /**
976 * Needed to transfer pagination-status from overview.
977 */
978 protected $start;
979
980 function __construct(DataObject $item, ComplexTableField $parent, $start) {
981 $this->start = $start;
982
983 parent::__construct($item, $parent);
984 }
985
986 function Link() {

Avatar
dhensby

Community Member, 253 Posts

10 April 2010 at 5:27am

I take it you are using SS 2.3 and the latest DOM?

If so, you need the 2.3 branch of DOM

Avatar
Avalon

Community Member, 6 Posts

10 April 2010 at 5:48am

The project that I am working on requires that I use the 2.4 (trunk) version of DOM.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

10 April 2010 at 7:48am

Sorry, if you're on 2.3, you need to use the 2.3 branch of DOM. If you need the trunk version, you're going to need to upgrade your Silverstripe version.

Avatar
Avalon

Community Member, 6 Posts

13 April 2010 at 1:25am

That works. Thanks!