Hi -- i'm running Drupal 7.10 on PHP 5.2.17 in a subdirectory off root -- everything seemed fine until i tried to upload an image or a file thru admin -- i get this error message when i try to upload an image (when trying to upload a file, the same error pops up with "field_file" in the path):
An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path:
/?q=file/ajax/field_image/und/form-3F2eSnm6KPiqWLfcTEmPmVbQ0k9Vm4JXg0DPPB0CaIE
StatusText: n/a
ResponseText:
Fatal error: Call to undefined function file_mimetype_mapping() in
/home/mangalas/public_html/DRUPAL7/includes/stream_wrappers.inc on line
316
ReadyState: undefined
i'm new to Drupal and utterly baffled -- when trying to research the problem, there doesn't seem to be much out there - can someone please help? the CMS is useless if users can't upload images on their own...
thanks,
zopa
Comments
Comment #1
TheOptimizer commentedMany people have this error.
Can anyone please look at this?
Comment #2
bbjay commentedHas any solution been found for this error? I am receiving a similar one when I try to upload an image.
Comment #3
giorgioghisa commentedI've the same problem! Any solutions???
Comment #4
denisvsWhile upload image in httpd.log appears messages "POST /file/ajax/field_image/und/form-nBFVZiUDMBKAdA-q3qGzz2jXJOMsuAaYbWR3t6MsyzM HTTP/1.0" 200"
Comment #5
defconjuan commentedMaxRequestLen sometimes gets lowered as a result of server/module updates. Also, adding modules that add to the request length can also introduce this problem. This is why disabling modules can sometimes "fix" the problem.
See http://drupal.org/node/1015938#comment-7412202 for a solution that involves updating your vhost file, eg:
Or try switching from FastCGI to mod_php or php-fpm (if you're using FastCGI).