I've set up a website for our local karate club. They have lots of pictures in a photo gallery that they often would like to use in other content on the site. I'm still fairly new to this so I've never been presented with this need before. Using CKEditor, I decided to use CKFinder. I figured why not? It's nice, works well for putting images inline in content. I couldn't see a way to use that with filefield sources so I went ahead and used IMCE. I guess I didn't thoroughly test this before putting it into practice. I ran a couple of tests that seemed to work wonderfully. Some of you already see where this is going.
After the contributors added tons of pictures using both methods, I've found that files added with CKFinder can't be added in filefield sources with IMCE. It complains that the file doesn't exist in the database. Imagine my embarassment. I found a discussion about a similar problem but it discussed paths being messed up in IMCE when the file path included spaces. This isn't my case.
I also found this: http://www.freelock.com/blog/john-locke/2010-02/using-file-field-importe...
I'm assuming that my problem is really that CKFinder didn't add the files to the database, or did so in a way that CCK and IMCE are unhappy with. As I pursue this problem on my test site and try out John's fix, please give your thoughts. I'm a noob at this so I don't know if this would actually create more "unforseen consequences".
My test site is on my local apache server. The actual site is running on a remote windows server. I'm not looking forward to configuring that...
Comments
Looks over my head
I've been looking at drush and I just can't get my head around it. Yes I'm a noob. ;)
Well, there aren't actually that many images yet so I'm contemplating going in and fixing each manually. Yes this is quite a dumb approach but everything is looking like black magic to me at this point. Would be good to know how to do this properly in the future. Any suggestions?
Thanks