7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Bug Reports
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 37674 Views |
-
Re: Bug Reports

18 October 2009 at 1:37pm
Localhost
Mac OS X (leopard)
MAMP
DataObjectManager r305
SWFUpload r271Files & Images > Add files to ... > Import from an existing folder
When I hit Import, I get an error almost identical to this one http://silverstripe.org/all-other-modules/show/268998.
The transfer of the file from one folder to another does work, it just gives the warning in the pop-up window.
[Warning] ViewableData_Customised::obj() 'DetailForm' was requested from the array data as an object but it's not an object. I can't cast it.
POST /golden/admin/assets/EditForm/field/Files/ImportForm?ctf[Files][start]=0&ctf[Files][per_page]=10&ctf[Files][showall]=0&ctf[Files][sort]=SortOrder&ctf[Files][sort_dir]=DESC&ctf[Files][search]=&ctf[Files][filter]=&ctf[Files][view]=
Line 990 in /Users/cp/Sites/golden/sapphire/core/ViewableData.php
Source
981 return $val;
982 } else {
983 return $this->obj->XML_val($fieldName, $args, $cache);
984 }
985 }
986
987 function obj($fieldName, $args = null, $forceReturnObject = false) {
988 if(isset($this->extraData[$fieldName])) {
989 if(!is_object($this->extraData[$fieldName])) {
990 user_error("ViewableData_Customised::obj() '$fieldName' was requested from the array data as an object but it's not an object. I can't cast it.", E_USER_WARNING);
991 }
992 return $this->extraData[$fieldName];
993 } else {
994 return $this->obj->obj($fieldName, $args, $forceReturnObject);
995 }
996 }
Trace
• ViewableData_Customised::obj() 'DetailForm' was requested from the array data as an object but it's not an object. I can't cast it. 
Line 990 of ViewableData.php
• ViewableData_Customised->obj(DetailForm,,1) 
Line 35 of .cache.Users.cp.Sites.golden.dataobject_manager.templates.DataObjectManager_popup.ss
• include(/private/var/folders/pJ/pJmNRoVGGMqhGVxN0Pbuj++++TI/-Tmp-/silverstripe-cache-Users-cp-Sites-golden/.cache.Users.cp.Sites.golden.dataobject_manager.templates.DataObjectManager_popup.ss) 
Line 354 of SSViewer.php
• SSViewer->process(ViewableData_Customised) 
Line 773 of ViewableData.php
• ViewableData->renderWith(DataObjectManager_popup) 
Line 548 of FileDataObjectManager.php
• FileDataObjectManager->saveImportForm(Array,Form,HTTPRequest) 
Line 241 of Form.php
• Form->httpSubmission(HTTPRequest) 
Line 129 of RequestHandler.php
• RequestHandler->handleRequest(HTTPRequest) 
Line 143 of RequestHandler.php
• RequestHandler->handleRequest(HTTPRequest) 
Line 143 of RequestHandler.php
• RequestHandler->handleRequest(HTTPRequest) 
Line 143 of RequestHandler.php
• RequestHandler->handleRequest(HTTPRequest) 
Line 122 of Controller.php
• Controller->handleRequest(HTTPRequest) 
Line 277 of Director.php
• Director::handleRequest(HTTPRequest,Session) 
Line 121 of Director.php
• Director::direct(/admin/assets/EditForm/field/Files/ImportForm) 
Line 118 of main.php -
Re: Bug Reports

21 October 2009 at 11:11pm
A very small bug has snuck into the dataobject_manager.css file on line 154. The background url declaration looks like this url(../images/closebox.png') which nerfs the background image. Just adding the first ' in the parenthesis should fix it.
-
Re: Bug Reports

27 October 2009 at 4:10am
Hello UncleCheese,
When running the latest revision of DataObjectManager against trunk (89463), I get the following error when attempting to access a page that uses DAO:
"Trying to get property of non-object" at line 681 of C:\xampp\htdocs\members\dataobject_manager\code\FileDataObjectManager.phpLine 681:
return isset($img) ? $img->CroppedImage(50,50)->URL : $file->Icon();Any clues?
Thank you,
Ben -
Re: Bug Reports

27 October 2009 at 4:19am
Check on the integrity of that file. It exists in the database, but CroppedImage() is returning false, so it either doesn't exist on the server or it's not readable.
-
Re: Bug Reports

27 October 2009 at 5:28am
Thanks, UncleCheese. You were correct--the file didn't exist.
Using DAO (revision 314) against SS trunk (revision 89463), bullets show up by most items in the site tree, by most tabs at the top of the page, and by the create/search/batch action buttons when viewed in FireFox 3.5.3 on Win XP. If I go into DAO's _config.php file and comment out "LeftAndMain::require_javascript("dataobject_manager/code/date_picker_field/datepicker_init.js");", the bullets disappear.
I have a screen shot but don't see a way of attaching it to this forum post.
Any ideas?
Thank you,
Ben
| 37674 Views | ||
| Go to Top | Next > |


