Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Bug Reports

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, 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: 48701 Views
  • MarcusDalgren
    Avatar
    Community Member
    288 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

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: Bug Reports Link to this post

    Hit another issue:

    When using DAO to upload an image, "SecurityID doesn't match, possible CRSF attack." is displayed after uploading the image then clicking "finish" on the extra data page. This appears to be caused by the fact that the extra data page's SecurityID field has a blank value:

    <input type="hidden" id="FileDataObjectManager_Popup_EditUploadedForm_SecurityID" name="SecurityID" value="" />


    If I check the value of Session::get('SecurityID') (used by Form.php on line 434 to populate SecurityID's value), it is set correctly.

    In general, the SecurityID field seems to be populated correctly. The initial DAO popup window has a SecurityID field with a value (as it should):

    <input type="hidden" id="FileDataObjectManager_Popup_UploadForm_SecurityID" name="SecurityID" value="15856" />

    Any ideas?

    Ben

  • keeny
    Avatar
    Community Member
    48 Posts

    Re: Bug Reports Link to this post

    Hi again Uncle,

    I'm still having the problem where if I upload an image in 'Files & Images' to a subfolder, the files go straight into the root of the assets folder and not into the folder I want them to.

    I'm not getting any errors. Where do you think is the best place to put some debug statements so I can see what's going on?

    (I'm also using subsites & cmsworkflow modules although don't know if that would affect uploads or not.)

    Any help much appreciated!

  • wmk
    Avatar
    Community Member
    45 Posts

    Re: Bug Reports Link to this post

    Hi Keeny,

    i also stumbled over this odd behaviour, which is well known in SS bug tracker:

    http://open.silverstripe.org/ticket/3914
    http://open.silverstripe.org/ticket/2862

    seems to be fixed in trunk but it unfortunately didn't get it into the 2.3 branch

    hth

    wmk

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