Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify HTTP Error

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
Go to End
Author Topic: 22046 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify HTTP Error Link to this post

    /mysite/_config.php

    Si l'erreur que tu reçois est bien 302, la désactivation d'authentification va résoudre ton problème, mais si l'erreur HTTP est 404 ou 500, tu as des autres problèmes et je te conseille d'utiliser un outil comme Charles (charlesproxy.com) pour obtenir le texte de l'erreur exacte.

    Bonne chance !

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

  • silverseba
    Avatar
    Community Member
    26 Posts

    Re: Uploadify HTTP Error Link to this post

    I had the same issue with Uploadify throwing a "HTTP error" when uploading files in the CMS (Files & Images Tab).

    The following solution solved my Problem:

    1. Upgrading Uploadify and DataObjectManager to the latest revisions from github (https://github.com/unclecheese)
    2. Doing a /dev/build/?flush=1
    3. Turnning off mod_security by adding this to the .htacces of the Silverstripe root (/.htaccess):

    # Turn off mod_security to prevent HTTP errors on Uploadify Module
    SecFilterEngine Off

  • Terry Apodaca
    Avatar
    Community Member
    109 Posts

    Re: Uploadify HTTP Error Link to this post

    @silverseba, that would work perfectly and does as long as your server is set up the same...but some of us have mod_security2 (version 2) which is suppose to me much better. Mod Sec 2 doesn't allow you to control (turn off) it from the htaccess file or any other config file.

    I have a few other servers to move sites to, but if you have a client that has their own hosting and/or you have no control, then you are stuck with what ever version the host uses...so the solution needs to also find a way to work around mod_security2

  • IDOLYZ
    Avatar
    Community Member
    40 Posts

    Re: Uploadify HTTP Error Link to this post

    Hi,

    I'm receiving the HTTP ERROR in the Files & Images tab on 1 installation of Silverstripe. It's hosted on a different server to all our other installations (Westnet).

    The error only appears when I try to upload a PDF. It allows me to upload a JPG.

    I tried SecFilterEngine Off but received a 500 internal server error.

    I also tried UploadifyField::disable_authentication() but also got a 500 internal server error.

    I'm running latest version of everything.

    Anyone have any ideas?

    Thanks,
    Ben

  • silverseba
    Avatar
    Community Member
    26 Posts

    Re: Uploadify HTTP Error Link to this post

    If you get an error 500 when setting SecFilterEngine Off in your .htaccess file, then your webhost doesn´t allow to change the mod_security setting from a .htaccess file.

    The best (but not easiest) way would be to contact your webhost and ask them to change the setting for you. Or to switch from a shared to a managed server, where you can change the settings yourself.

  • gieser
    Avatar
    Community Member
    13 Posts

    Re: Uploadify HTTP Error Link to this post

    Hello guys,
    I also receive a HTTP 500 error, wether I'm uploading via Files & Images or the image gallery module. As of now i have the latest releases vom Github on silverstripe 2.4.5. The files are uploaded successfully and appear in their destinated folder after I refresh the page. In the case of the image gallery they aren't added to the album although they reside in the albums folder.
    The response sais the following:

    GET http://localhost/ss245_new/admin/EditForm/field/GalleryItems/UploadifyForm/field/UploadedFiles/refresh?SecurityID=c509281361e2af655cdd81bbf8b199fbd0d1d961&ctf[GalleryItems][start]=0&ctf[GalleryItems][per_page]=10&ctf[GalleryItems][showall]=0&ctf[GalleryItems][sort]=SortOrder&ctf[GalleryItems][sort_dir]=&ctf[GalleryItems][search]=&ctf[GalleryItems][filter]=AlbumID_4&ctf[GalleryItems][view]=grid&ctf[GalleryItems][imagesize]=100&FileIDs=%EF%BB%BF300 500 (Error: "Couldn't run query: SELECT "File"."ClassName", "File"."Created", "File"."LastEdited", "File"."Name", "File"."Title", "File"."Filename", "File"."Content", "File"."Sort", "File"."SortOrder", "File"."ParentID", "File"."OwnerID", "File"."ID", CASE WHEN "File"."ClassName" IS NOT NULL THEN "File"."ClassName" ELSE 'File' END AS "RecordClassName" FROM "File" WHERE (`File`.ID IN (300)) ORDER BY "SortOrder" ASC Unknown column '300' in 'where clause'" at line 525 of D:\xampp\htdocs\ss245_new\sapphire\core\model\MySQLDatabase.php)


    Any clues what causes this problems?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify HTTP Error Link to this post

    This is perfectly valid SQL. (`File`.ID IN (300))

    I'm not sure why it's complaining about that. Is this MySQL?

  • gieser
    Avatar
    Community Member
    13 Posts

    Re: Uploadify HTTP Error Link to this post

    yeah i know its valid. I'm using MySQL 5.5.14.

    [EDIT] Some further information. I've copied the query to the commandline client and I have there appears an ? before the numerical ID. Could this be some "invisible" unicode character? Loading into a hex editor shows the following character codes in front of the ID: ef bb bf

    22046 Views
Page: 1 2 3 4 5 6 7 8 9 10
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.