Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » 'HTTP Error' Uploading Documents using FileDataObjectManager

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
Go to End
Author Topic: 6924 Views
  • VRoxane
    Avatar
    Community Member
    42 Posts

    Re: 'HTTP Error' Uploading Documents using FileDataObjectManager Link to this post

    Hi guys !

    I have exactly the same error Ryan. When SWF Uploader stopped working, I changed to Uploadify.
    But the problem is not the module we use for uploading files.

    Everything worked perfectly few days ago. It stopped working on localhost as well, on all browsers I have tried (FF, IE, Opera and Safari) so it's not a browser or a server problem.

    A friend thinks there's a problem with Flash. I really think it's possible. Any ideas ?

  • UncleCheese
    Avatar
    4085 Posts

    Re: 'HTTP Error' Uploading Documents using FileDataObjectManager Link to this post

    It's a PHP error of some sort. Turn on UploadifyField::show_debug(); and that show alert the error out.

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

  • VRoxane
    Avatar
    Community Member
    42 Posts

    Re: 'HTTP Error' Uploading Documents using FileDataObjectManager Link to this post

    This is what is shown with the debug on :
    (Nothing changes when the HTTP Error occurs ...)

    script: %2Fadmin%2FEditForm%2Ffield%2FPhotos%2FUploadifyForm%2Ffield%2FUploadedFiles%2Fupload
    refreshlink: /admin/EditForm/field/Photos/UploadifyForm/field/UploadedFiles/refresh?ctf[Photos][start]=0&ctf[Photos][per_page]=10&ctf[Photos][showall]=0&ctf[Photos][sort]=&ctf[Photos][sort_dir]=&ctf[Photos][search]=&ctf[Photos][filter]=&ctf[Photos][view]=grid&ctf[Photos][imagesize]=100
    uploader: /uploadify/javascript/uploadify.swf
    scriptAccess: sameDomain
    queueSizeLimit: 40
    auto: 1
    fileExt: *.jpg;*.JPG;*.jpeg;*.JPEG;*.gif;*.GIF;*.png;*.PNG;*.jpg;*.JPG;*.jpeg;*.JPEG;*.gif;*.GIF;*.png;*.PNG
    fileDesc: Images
    cancelImg: /uploadify/images/cancel.png
    image_class: Image
    file_class: File
    buttonText: Upload files
    queueID: UploadifyFieldQueue_UploadedFiles
    wmode: transparent
    hideButton: 1
    upload_on_submit:
    sortable:
    sizeLimit: 67108864
    multi: 1
    scriptData:

  • UncleCheese
    Avatar
    4085 Posts

    Re: 'HTTP Error' Uploading Documents using FileDataObjectManager Link to this post

    Is your server configured to display PHP errors? Is your environment in dev mode?

  • VRoxane
    Avatar
    Community Member
    42 Posts

    Re: 'HTTP Error' Uploading Documents using FileDataObjectManager Link to this post

    Sorry I'm not familiar with debugging... :/
    Now in dev mode with errors sent to my mailbox, i see nothing more (and didn't receive any mail)

    Director::set_environment_type("dev");
    UploadifyField::show_debug();
    Debug::send_errors_to("me@thesite.com");

    Can you tell me more about "Is your server configured to display PHP errors?" ?

  • UncleCheese
    Avatar
    4085 Posts

    Re: 'HTTP Error' Uploading Documents using FileDataObjectManager Link to this post

    Make sure display_errors is on in your php.ini..

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

  • bradt
    Avatar
    Community Member
    5 Posts

    Re: 'HTTP Error' Uploading Documents using FileDataObjectManager Link to this post

    I'm having a very similar issue as VRoxane. I'm getting the 'HTTP Error' message and no error output with Director::set_environment_type('dev'), UploadifyField::show_debug(), and PHP error reporting on (http://www.beehiveholdings.com/test.php).

    I've used Wireshark to see what's going on and it looks like the authentication is failing. Here's the Wireshark captured HTTP response:

    No. Time Source Destination Protocol Info
    46 4.612543 65.61.167.253 192.168.10.102 HTTP HTTP/1.1 302 OK

    HTTP/1.1 302 OK\r\n
    [Expert Info (Chat/Sequence): HTTP/1.1 302 OK\r\n]
    [Message: HTTP/1.1 302 OK\r\n]
    [Severity level: Chat]
    [Group: Sequence]
    Request Version: HTTP/1.1
    Response Code: 302
    Server: Apache/2.2\r\n
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\n
    Content-Type: text/html; charset="utf-8"\r\n
    Date: Wed, 24 Nov 2010 13:50:53 GMT\r\n
    Location: /Security/login?BackURL=%2Fadmin%2FEditForm%2Ffield%2FPhotos%2FUploadifyForm%2Ffield%2FUploadedFiles%2Fupload\r\n
    Expires: Thu, 19 Nov 1981 08:52:00 GMT\r\n
    Pragma: no-cache\r\n
    Connection: close\r\n
    Set-Cookie: PHPSESSID=c9g0479dulj1geq2mrm9vdp4a2; path=/\r\n
    Set-Cookie: X-Mapping-caklakng=83E218561EE0F725E5A6FFEA755DEB33; path=/\r\n
    Content-Length: 0\r\n
    [Content length: 0]
    \r\n

  • UncleCheese
    Avatar
    4085 Posts

    Re: 'HTTP Error' Uploading Documents using FileDataObjectManager Link to this post

    302 redirect.. looks like an authentication error to me?

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

    6924 Views
Page: 1 2 3 4 5 6
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.