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 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

Bug Reports

Go to End

297 Posts   101996 Views


Forum Moderator, 4102 Posts

21 May 2009 at 2:50am

Edited: 21/05/2009 2:50am

Please use this thread to report existing bugs with DataObjectManager or ImageGallery. I have created this in an effort to keep my to-do list organized and in one place. It's getting to be a hassle to search through threads (even in only one forum) for what needs to be fixed.

Let's try to keep this to a punchlist format rather than a discussion. The hope is that I will be able to RSS this thread and have a workable list of tasks.

Before reporting a bug:

- Make sure you update your SVN

- Make sure you have Debug::email_errors_to(''); set in your _config.php.

- Have your PHP error reporting cranked up, if possible. White screens are not helpful.

Bug reports should include:

- A detailed description of the problem. "Upload doesn't work" is not helpful to me. Tell me everything you did leading up to the error and the content of the error, if applicable.

- Browser/OS

- Any relevant code that you have created that I can drop into my testing environment to duplicate the problem.

- Screenshots, if available.

Thanks, everyone. I hope that adhering to conventions like these will help streamline bug fixes.


Forum Moderator, 4102 Posts

6 June 2009 at 9:53am

Edited: 12/06/2009 8:28am

DataObjectManager is not compliant with 2.3.2 until this ticket is resolved:

Ben Gribaudo

Community Member, 181 Posts

10 June 2009 at 12:57am

Edited: 10/06/2009 12:59am

Uncle Cheese,

Apparently, the DataObjectManager/FileDataObjectManager and nestedurls don't get along. Would you have time to address the issues mentioned in



Forum Moderator, 238 Posts

10 June 2009 at 6:36pm

I see that the DataObjectManager code blocks alot of javascript, which is probably why the profile edit form no longer pops up. I'm referring to the profile link in the bottom right of the cms, next to the log out link.

Are you aware of this?


Forum Moderator, 4102 Posts

13 June 2009 at 8:51am

I have done some updates and DataObjectManager seems to be running okay on the nestedurls branch. Anyone who would like to test this, please update your SVN and let me know the result. Thanks.

Carbon Crayon

Community Member, 598 Posts

19 July 2009 at 4:10am

Edited: 19/07/2009 4:12am

Hi Uncle Cheese

I am having a problem with the ManyManyDataObjectManager. It seems to break if you try to populate any of the table fields with a function, for example a thumbnail as described in this post: It breaks even if you are just returning a string with the function too.

All it does is popup a blank alert box when trying to access the page in the CMS, firebug reports a '500' error. Thats all there is to go on.

As soon as you change it to either a regular DataObjectManager or a ManyManyComplexTableField it starts working again placing the thumbnail or string in the table correctly.

Have you, or anyone else come accross this problem before?

OS: Vista
Browser: Firefox 3.5
SS version: 2.3.2
DOM version: r197 & latest SVN (212?)




Forum Moderator, 4102 Posts

19 July 2009 at 4:31am

You need to get me a more verbose error. A blank alert box and a generic 500 error is not enough to go on. Crank up your error reporting, make sure your environment type is set to dev, and see if you can get a readable error.

Carbon Crayon

Community Member, 598 Posts

19 July 2009 at 5:04am

Edited: 19/07/2009 5:04am

Yea sorry, I hadn't realised I could get more than that in that situation, but I got it in the end, looks like it just looks in the dataobject table instead of looking for the function:

[18-Jul-2009 05:54:33] Error at C:\wamp\www\DEB\sapphire\core\model\MySQLDatabase.php line 400: Couldn't run query:
SELECT `Page_Offer`.*, `Page_Offer`.ID, if(`Page_Offer`.ClassName,`Page_Offer`.ClassName,'Page_Offer') AS RecordClassName, Thumbnail, IF(`PageID` IS NULL, '0', '1') AS Checked
FROM `Page_Offer`
LEFT JOIN `Page_Offers` ON (`Page_Offer`.`ID` = `Page_OfferID` AND `PageID` = '1')
GROUP BY `Page_Offer`.ID
LIMIT 0, 100

Unknown column 'Thumbnail' in 'field list' (http://localhost/DEB/admin/getitem?ID=1&ajax=1)

Here is the Page_offer class:

class Page_Offer extends DataObject {
	static $has_one = array (
		'Image' => 'Image'
	function Thumbnail() {
		$Image = $this->Image();
		if ($Image) {
			return $Image->CMSThumbnail();
		} else {
			return null;

and the DOM code:

		$manager = new ManyManyDataObjectManager(
			array('Thumbnail' => 'Image'),

Hope thats a little more useful...

Go to Top