Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a site at http://stage.ocac.edu with replaced images in the default icon set (48x48). When I go to the home page, or even a top level page (like "Admissions") the images remain intake. However, when I go to sub-pages like http://stage.ocac.edu/admissions/tuition-financial-aid the images are broken. Thoughts?
Comments
Comment #1
laughnanI just reloaded the page (take 32) and it worked...is this intermittent issue occurring for anyone else?
Comment #2
TomDude48 CreditAttribution: TomDude48 commentedDo you mean the icons in the footer with the yellow background? If so, I am seeing them just fine. Don't know if you already fixed this.
Comment #3
TomDude48 CreditAttribution: TomDude48 commentedComment #4
laughnanI don't know, but I am thinking it was our server being patchy. I will let you know if I can reproduce this.
Alex
Comment #5
DigitalFrontiersMediaI get this often myself and can't quite figure out what triggers it. When broken, the img tag shows it is using a relative path (./sites/all/modules...). Clearing the cache resets it to a base path (/sites/all/modules....).
Comment #6
brianjester CreditAttribution: brianjester commentedThis broke for me as well, and I can reproduce it every time.
The issue appears to step from when you have your Drupal site not at the top of your domain, but in a sub directory. Mine is under "blog".
On the Main page the path to the Facebook image for example in the header is:
http://brianjester.us/blog/sites/all/modules/socialmedia/icons/levelten/...
Which works fine.
When I go to a sub page from the menu tabs on the main page, the Facebook image is broken and the path for the image it is trying to reference is missing the "blog" directory as shown here:
http://brianjester.us/sites/all/modules/socialmedia/icons/levelten/gloss...
As they say in Anchorman, "60% of the time, it works all the time."...
My workaround to this problem was to create the directory it is looking for and stage all the 32x32 images I'm using.
It's a cheap fix, but this really should be logged as a bug and scheduled for testing and fixing.
Brian Jester
www.brianjester.us/blog
Comment #7
laughnan@brianjester - that seems hard ;) I just switched to the Follow module (drupal.org/project/follow).