View Full Version : Adding new images
Texas Kelly
05-27-2007, 12:39 AM
OK, Brian, need a little help here...
I just added a new post icon group to my boards (meaning I created a new category and then batch-added icons to it). Unfortunately, I forgot to change the path from relative to absolute before I did the batch add, so I had to go and change the path manually for each one. The problem is this: Even after changing all the paths, the new icons still won't show up in my vBadvanced pages (like in the Recent Threads module, for instance). Any reason why? Is there some kind of bitfield process that needs to run before they'll work? (I fully expect them to work in a day or two... I'm just wondering why it doesn't work right now.)
(BTW: I'm having a weird issue where I get a permissions error when I attempt to edit the path via the ACP, so I did the path corrections in phpMyAdmin.)
Brian
05-27-2007, 10:30 AM
Did you try using the vbacmps_install.php file to update the paths?
Texas Kelly
05-27-2007, 01:31 PM
I tried that. It got through the icons and smilies and then crashed on the styles section. Don't know why it's doing that. Any ideas?
Texas Kelly
05-31-2007, 05:02 PM
OK, it's a few days later and they're still not showing up right. I've figured out that it's a datastore problem (where the reference has already been fixed in the icon table, but vBulletin is still using the relative version it cached when I added the icons originally), but I still can't figure out why the install script is crashing in the middle of the path updating routine. How do I force the datastore to refresh itself?
Any assistance you can give would be appreciated, Brian.
Brian
06-01-2007, 11:24 AM
It's nothing to do with the datastore table. If the script isn't able to update them automatically for you, then you may need to update your styles manually.
http://www.vbadvanced.com/forum/showthread.php?t=1345
Texas Kelly
06-01-2007, 05:48 PM
It's nothing to do with the datastore table.
Yes it is. I've attached the phpMyAdmin searches I ran that prove it's the datastore. Compare the areas I've bolded and you'll see that they don't match, and that the datastore is using relative paths. (On the datastore one, they're at the bottom.)
It can't be a style issue anyway, because the images we're talking about are post icons, which aren't controlled by the stylevars.
The thing I don't know is how to update that iconcache in the datastore...
Brian
06-02-2007, 11:16 AM
Looks like you just haven't updated a few icons. Your query to the 'icon' table is only showing 30 results, so that's why you're not seeing the rest in the datastore entry. Edit those images that you're seeing in your datastore query through your Admin CP, add the full path, and that will correct the problem.
Texas Kelly
06-02-2007, 01:04 PM
Looks like you just haven't updated a few icons. Your query to the 'icon' table is only showing 30 results, so that's why you're not seeing the rest in the datastore entry.
That's only because I searched for the problematic ones.
Edit those images that you're seeing in your datastore query through your Admin CP, add the full path, and that will correct the problem.
That's the problem - I can't do it via the ACP. As I mentioned in my first post, whenever I try to change it to the full path in the ACP, I get a "Forbidden" error message ("You don't have permission to access /admincp/image.php on this server."). It only cooperates if I put in the relative path. I even tried disabling the product/plug-in system temporarily so that only native vBulletin code was running, and that didn't help. I had to update the paths by going into phpMyAdmin - and that did nothing for the datastore. So I need a way to refresh the datastore.
Texas Kelly
06-02-2007, 06:53 PM
Just thought I would let you know that Steve Machol over at vBulletin.com helped me resolve this issue.
http://www.vbulletin.com/forum/showthread.php?t=231772
http://www.vbulletin.com/forum/showthread.php?t=167121
As things turned out, my host had installed the mod_security module on my server, which was the reason I couldn't update images with full paths via the ACP (and kept getting those Forbidden error messages). Once I applied a simple .htaccess edit that he pointed me to, I was able to make changes in the ACP and have them show correctly on my CMPS pages.
I thank you for your help and for putting up with me being an annoying pest about it. (You may want to add the information in those threads as an FAQ, since I can definitely imagine other people running into a similar problem.)
Brian
06-02-2007, 07:04 PM
That's the first time I've ever heard of anyone with a problem like that. I knew it was something along those lines once you mentioned that you got the "Forbidden" message from your server. Glad you got it worked out either way though.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.