Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
404 errors on SP theme images
Avatar
Brad Siegfried
Member
sp_UserOfflineSmall Offline
Sep 10, 2014 - 11:55 am

I'm seeing 404 error on images in /wp-content/sp-resources/forum-themes/css-only/images/ running the latest SP 5.5.1.  I can access the images directly through a URL, for example, http://mysite.com/wp-content/s.....owDown.png, but they don't load when displaying the forum page. 

Other than the missing images, the forum topic displays as expected.  The Chrome console just shows a bunch of 404 (Not Found) errors.

Any suggestions as to how I can best resolve this?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 10, 2014 - 12:11 pm

Hey Brad,

Can you put a link to the forum so we can take a look? PM is fine if you'd rather not post the forum publicly

Avatar
Brad Siegfried
Member
sp_UserOfflineSmall Offline
Sep 10, 2014 - 1:27 pm

Thanks, Ike. I sent you login credentials via pm.

Brad

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 10, 2014 - 4:58 pm

I replied to your PM. I haven't been able to access your forum due to Wordfence, can you also PM the login details to Yellow Swordfish and Mr Papa in case I'm not online (UK)

Thanks

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 11, 2014 - 8:07 am

Hey Brad,

So taking a look, as far as I can see the images don't appear to exist, as in I too am seeing the 404's on the ones that are supposed to display, namely the icons for the buttons in the header..Ironically one of the only ones that I can see on it's own is the one you referenced in the first post 'arrow down'...

I would suggest that firstly if you could, take a look in the actual image folder and see if they do exist. If they do, then we are probably looking at some kind of permissions issue which we can then look into resolving.

If they don't, then firstly it would be nice to know why they don't, but a fix would probably be to re-download the css-only theme and replace the folder.

Might actually be worth - as a first port of call - trying a different SP Theme. Default or Unified maybe.

Let us know how you get on

Avatar
Shattered RPG
Member
Free Members
sp_UserOfflineSmall Offline
Sep 11, 2014 - 1:10 pm

I'm getting the same problem on my site as well. It was fine pre-WP 4.0

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 11, 2014 - 1:46 pm

Is it the same SP theme as Brad is using? And can you make the same checks? I am wondering if we have a problem with the file permissions in the zip - although I would expect to hear from more users if that was the case. But needs to be checked of course.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Brad Siegfried
Member
sp_UserOfflineSmall Offline
Sep 12, 2014 - 3:37 pm

Thanks for your suggestions and comments.

Looking from cPanel, I'm seeing fully populated images folders in the forum themes.  The problem persists after switching to the stacked theme and then back to css-only theme.

When I view the Chrome console, I can click on one of the image links in the list of 404 errors.  This brings me to a Page not Found 404 error within my site http://mysitename.com/wp-conte.....Button.png

 

However, when I shorten the above to the containing directory rather than the file, http://mysitename.com/wp-conte.....es/images/, I am presented a list of files in the directory.  Oddly, though, these are NOT the filenames that I expect to see here, and that I do see in cPanel.  Here are the files (and directories) shown at http://mysitename.com/wp-conte.....es/images/:

Parent Directory
mobile/
sp_SubscriptionsForumStatus.png
sp_SubscriptionsPostEditor.png
sp_SubscriptionsReviewButton.png
sp_SubscriptionsSubscribeButton.png
sp_SubscriptionsSubscribeForum.png
sp_SubscriptionsSubscribeForumButton.png
sp_SubscriptionsUnread.png
sp_SubscriptionsUnsubscribe.png
sp_SubscriptionsUnsubscribeButton.png
sp_SubscriptionsUnsubscribeForum.png
sp_SubscriptionsUnsubscribeForumButton.png

I'll keep exploring and let you know if I find anything else of interest.

Brad

Avatar
Brad Siegfried
Member
sp_UserOfflineSmall Offline
Sep 12, 2014 - 3:55 pm

I cleared my local browser cache and turned off my cache plugin on the server.  I still have the 404 errors showing in the Chrome console.  Now, however, I can go to the containing directory and see ALL of the expected files here: http://mysitename.com/wp-conte.....ly/images/

I can then successfully click on any of the linked images from that index page and load the image successfully, no 404 error.

This is in contrast to when I click on an image link from the Chrome console.  That gives me a 404 page.

I wonder if the referrer has some new significance when loading an image.  For example, I can successfully load destination B from referrer A but receive a 404 when I try to load destination B from referrer C.  Is there any difference in the way the theme images are loaded in comparison to the way other images on the page are loaded (successfully)?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 13, 2014 - 5:49 am

There is nothing different about the way any images are loaded up.

However, there were some changes in SP 5.5.1 in the construction of the images paths. Actually made them simpler and more versatile in terms of customisation. But if I am understanding this thread correctly that is not really the problem.

What DOES seem to be the problem if you look closely at the HTML being generated (and you can see this in the browser console as well) is that the file names are being altered in many - but by no means all - of the images.

To take an example of a 'missing' icon - the html refers to it as 'sp-ForumIcon.png' when it is, in fact, named 'sp_ForumIcon.png'. So the big question is - what is changing the correct underscore to an incorrect hyphen?

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625