7911 Posts in 1354 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » [Warning] Missing argument 3 for ComplexTableField_Item::__construct() ...
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1603 Views |
-
[Warning] Missing argument 3 for ComplexTableField_Item::__construct() ...

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() { -
Re: [Warning] Missing argument 3 for ComplexTableField_Item::__construct() ...

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
-
Re: [Warning] Missing argument 3 for ComplexTableField_Item::__construct() ...

10 April 2010 at 5:48am
The project that I am working on requires that I use the 2.4 (trunk) version of DOM.
-
Re: [Warning] Missing argument 3 for ComplexTableField_Item::__construct() ...

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.
-
Re: [Warning] Missing argument 3 for ComplexTableField_Item::__construct() ...

13 April 2010 at 1:25am
That works. Thanks!
| 1603 Views | ||
|
Page:
1
|
Go to Top |


