Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

uploadify - IO Error/ http erro/<h1>bad request (invalid hostname)</h1>


Go to End


2917 Views

Avatar
ravik

Community Member, 10 Posts

26 December 2012 at 12:27am

hi,

I am using silverstripe 2.4.7 ,it is working fine but when i installed uploadify module and i try to upload the image it giving error like

some time it displays

IO Error / Http error / <h1>bad request (Invalid hostname)</h1>

after this i put the below code
UploadifyField::show_debug();
in mysite / _config.php

after this the error throws like below

script: %2Fnesso%2Findex.php%2Fadmin%2Fassets%2FEditForm%2Ffield%2FFiles%2FUploadifyForm%2Ffield%2FUploadedFiles%2Fupload%3FSecurityID%3D5a7ab7d8cec69860fe2c2b599bd47e5162e60744%26ctf%5BFiles%5D%5Bstart%5D%3D0%26ctf%5BFiles%5D%5Bper_page%5D%3D10%26ctf%5BFiles%5D%5Bshowall%5D%3D0%26ctf%5BFiles%5D%5Bsort%5D%3DSortOrder%26ctf%5BFiles%5D%5Bsort_dir%5D%3D%26ctf%5BFiles%5D%5Bsearch%5D%3D%26ctf%5BFiles%5D%5Bfilter%5D%3D%26ctf%5BFiles%5D%5Bview%5D%3D
refreshlink: /nesso/index.php/admin/assets/EditForm/field/Files/UploadifyForm/field/UploadedFiles/refresh?SecurityID=5a7ab7d8cec69860fe2c2b599bd47e5162e60744&ctf[Files][start]=0&ctf[Files][per_page]=10&ctf[Files][showall]=0&ctf[Files][sort]=SortOrder&ctf[Files][sort_dir]=&ctf[Files][search]=&ctf[Files][filter]=&ctf[Files][view]=
uploader: /nesso/index.php/uploadify/javascript/uploadify.swf
scriptAccess: sameDomain
queueSizeLimit: 40
auto: 1
fileExt: *.*
fileDesc:
cancelImg: /nesso/index.php/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: 2097152
multi: 1
deleteEnabled:
scriptData:

after this error comes, i red some aritcles and i put below code in /etc/apache2/httpd.conf

<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>

but no use, still it giving same error as i mentioned in the above.

please let me know what is this error.