You have to upload badge images first.
light-blue - June 18, 2008 - 23:37
| Project: | User Badges |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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!

#1
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. :))