I keep getting 'You have to upload badge images first.' even though I can see my uploaded badge images (with appropriate unix permissions) in the files/badges directory. I'm probably doing something basic wrong, but could it be that the JPG file is too large (3.65KB)?

Thanks!

Comments

dkaswan’s picture

same problem here too with drupal 6.12 + user_badges 6.x-1.4 + linux fedora OS

problem occure in file.inc when using file_scan_directory() function in user_badges.module
If we remove ereg condition in file file.inc

on line 895         elseif ($depth >= $min_depth && ereg($mask, $file)) {
to         elseif ($depth >= $min_depth) {

it works fine but dont want to hack core drupal anyway.

any solution??

edit : problem was image file extension in CAPS. i had 'badge_image.JPG' and after converting it to small 'badge_image.jpg', everything is fine. :))

nancydru’s picture

Status: Active » Closed (works as designed)

I'm going to assume, from the lack of response, that this was light-blue's problem as well.