Jump to:

7939 Posts in 1472 Topics by 944 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: 44531 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Yeah surprisingly, SS already has that meta tag in the CMS. I thought for sure that would solve it.

  • Martijn
    Avatar
    Community Member
    271 Posts

    Re: Bug Reports Link to this post

    Pfff stupid.... I should have looked first....

  • Martijn
    Avatar
    Community Member
    271 Posts

    Re: Bug Reports Link to this post

    Hm. I tested it on my laptop with ie8 and W7 and the popups shows fine....

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: Bug Reports Link to this post

    Getting the: "An error occurred in your upload. The server did not accept it" error.

    Followed the debug instructions found here: http://doc.silverstripe.org/doku.php?id=modules:swfuploadfield&s=swfupload#troubleshooting

    And now posting here as requested.
    The error is around line 604 in $u->loadIntoFile...

    if(class_exists("Upload")) {
       // Hello //die("hello");
       $u = new Upload();
       // Hello //die("hello");
       $u->loadIntoFile($_FILES['swfupload_file'], $file, $path);
       // Error //die("hello");
    }

    Hope someone can help solve this.

    Thomas

    SS version 2.3.4

    EDIT: This error was caused by wrong permissions in the assest/uploads folder, changed them to 777 and all ok.

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Bug Reports Link to this post

    I also havn't had major issues using IE8 (w7.64 & wxp.32) with the popup, but then I have a suspision it's forcing into compatability mode as the compatability button dissapeares when in SS. The one issue I have had is that IE(7/8?) doesn't apply the padding for the fade correctly so if you have an imagefield at the bottom the fade stops you pressing the 'replace image' and 'delete' buttons. I fixed this by hiding the fade in the CSS:

    line 144 of dataobject_manager.css

    .DataObjectManager-popup #fade {display: none;}

    This hides the fade so it's not a proper fix, but personally I prefer it without the fade anyway.

    Aram

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: Bug Reports Link to this post

    EDIT: Caching was more agressive than I thought. Should have checked again by changing the name back, sorry!

    When I use: SortableDataObject::add_sortable_class('HomePageEntry'); I get the following error when doing a dev/build:

    ...

    For the rest everything looks fine, thanks for the good work!!!!!!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Check your code.. you've got whitespace somewhere. Make sure you're not closing your PHP tags.

  • andy_steel
    Avatar
    Community Member
    31 Posts

    Re: Bug Reports Link to this post

    I've found that it is not possible to have a DataObject that relates to itself.

    In my case each product relates to other complimentary products and similar products.

    Eg.

    class Product extends DataObject
    {
       static $many_many = array(
          'ComplimentaryProducts' => 'Product',
          'SimilarProducts' => 'Product'
       );
       
       static $belongs_many_many = array(
          'ComplimentaryProductsBelong' => 'Product',
          'SimilarProductsBelong' => 'Product'
       );
    ...
       function getCMSFields() {
          $fields = parent::getCMSFields();
       
          $ComplimentaryManager = new ManyManyDataObjectManager(
             $this,
             'ComplimentaryProducts',
             'Product',
             array('Name' => 'Name'),
             'getCMSFields_forPopup',
             'Name != "' . $this->Name . '"'
          );
          $fields->addFieldToTab("Root.ComplimentaryProducts", $ComplimentaryManager);

    ...

    In ModelAdmin when this runs I get 100% CPU usage and the server crashes. I don't get any errors in the Apache, PHP or SS error log. I guess there must be a never ending loop.

    Any help would be appreciated.

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