Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Badge image links broken after upgrade
meshugy
✭✭
I finally upgraded YAGA from the the beta version to v.1.0
Everything seems to work except that badge images are all broken now. I checked the uploads/badges folder and the images are there but the don't display? Any ideas what may be causing this?
I'm running Vanilla 2.1.3
Tagged:
0
Comments
Thanks for using my addon!
Please move your
/uploads/badges
folder to/uploads/yaga/badges
and report back if that fixes the issue.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight I moved them but they still don't display (except for the activity feed which does display the badge images.) Any other ideas?
what does web developer or firebug show? where is it trying to retrieve badges from.
what page? and do you have a link where a non-logged in user can see the problem page.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
The image link is: http://www.djangobooks.com/forum/badges/5V4X500MA7ZW.jpg
I moved the badges folder to http://www.djangobooks.com/forum/badges and it works. Strange, for the badges to display in the profile the images have to be stored at http://www.djangobooks.com/forum/badges but for the activity feed the badge images are here http://www.djangobooks.com/forum/uploads/badges
your ranks are off as well in activity.
src="/forum/ranks/AVM5455Z7ET4.jpg"
instead of finding it at this:
src="uploads/ranks/AVM5455Z7ET4.jpg"
back to hg...
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine thanks for noticing that! Fixed....
@meshugy You may have found a bug. Can you please change a single badge, by removing the badge photo from the dashboard and uploading it again.
I believe it has to do with a path change. According to http://www.djangobooks.com/forum/badges.json/ all your images are missing the
uploads/
prefix.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight ok, I did that. The system uploaded the new photo to: /forum/uploads/yaga
Ok, you need to update your GDN_Badge.Photo fields and prepend
/uploads/
to the existing fields. You can do this via a query, or PHPmyAdmin, or by removing the photos and re-uploading.I am sorry you have to do this.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
http://stackoverflow.com/questions/680801/how-to-prepend-a-string-to-a-column-value-in-mysql
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@hgtonight shouldn't I prepend all the GDN_Badge.Photo fields with
/uploads/yaga
? That's were YAGA is putting them when I upload them via the dashboard.If you want to put all your old images in
/uploads/yaga
you would have to do that. The important thing is the photo field no longer prepends/uploads
on image display. This is why you need to fix the path to show the actual path to the images.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
ok, I prepended all the badge photo links with
/uploads/yaga
so the badges all display correctly when viewing a members profile. Thanks!