Jump to:

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

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to End
Author Topic: 37674 Views
  • socks
    Avatar
    Community Member
    182 Posts

    Re: Bug Reports Link to this post

    Localhost
    Mac OS X (leopard)
    MAMP
    DataObjectManager r305
    SWFUpload r271

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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    r306 should fix that.

  • socks
    Avatar
    Community Member
    182 Posts

    Re: Bug Reports Link to this post

    Sounds good. Thanks.

  • MarcusDalgren
    Avatar
    Community Member
    287 Posts

    Re: Bug Reports Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Thanks. Fixed that.

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: Bug Reports Link to this post

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

    Line 681:
    return isset($img) ? $img->CroppedImage(50,50)->URL : $file->Icon();

    Any clues?

    Thank you,
    Ben

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    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.

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: Bug Reports Link to this post

    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
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.