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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

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


Reply

5 Posts   1832 Views

Avatar
Avalon

10 April 2010 at 4:45am Community Member, 6 Posts

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
Pigeon

10 April 2010 at 5:27am Community Member, 243 Posts

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

If so, you need the [url=http://www.silverstripe.org/dataobjectmanager-module-forum/show/281680#post281680]2.3 branch of DOM[/url]

Avatar
Avalon

10 April 2010 at 5:48am Community Member, 6 Posts

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

Avatar
UncleCheese

10 April 2010 at 7:48am 4085 Posts

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

13 April 2010 at 1:25am Community Member, 6 Posts

That works. Thanks!