Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify Frontend Error

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1670 Views
  • techgyver
    Avatar
    Community Member
    6 Posts

    Uploadify Frontend Error Link to this post

    Hey,

    I am getting weird errors on my Uploadify-Fields when using in frontend.
    On one page i can create a post (mydomain/myadmin/add-post) evertyhing works fine.
    On the edit page (mydomain/myadmin/edit/3) the attached files are show correctly, but when i try to delete an attachement i am getting the javascript error:

    Failed to load resource: the server responded with a status of 500 (Warning: "popCurrent called on ModelAsController controller, but it wasn't at the top of the stack" at line 454 of ABSPATH_TO_SILVERSTRIPE_PROJECT/sapphire/core/control/Controller.php


    Another failure appears when I try to add a new attachment

    HTTP-Error

    .
    Any ideas or solutions?

    Thanks in advance.

  • techgyver
    Avatar
    Community Member
    6 Posts

    Re: Uploadify Frontend Error Link to this post

    It definitively has something to do with the URL.
    I wrote a new Class and created a page with this class at the sitetree's root level.
    At least the upload and delete functions are working. Unfortunatly the has_many-relations don't, but this could be caused by my faulty test-script.

  • techgyver
    Avatar
    Community Member
    6 Posts

    Re: Uploadify Frontend Error Link to this post

    I found the solution:

    I had to use Director::addRules($prio,$rule).

  • DNA
    Avatar
    Community Member
    24 Posts

    Re: Uploadify Frontend Error Link to this post

    What rule did you add to Director::addRules?

  • tbarho
    Avatar
    Community Member
    41 Posts

    Re: Uploadify Frontend Error Link to this post

    techguyver or DNA, did you figure this out? I'm getting the same thing, but I can't seem to figure out why . . .

    1670 Views
Page: 1
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.