SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Images wont show on server

    Hi everyone.
    I recently become a web designer.
    Yesterday i finished my first website html template.
    Wen i uploaded it into a webserver it all worked well except on the icons page were 10% of the icons wont show up but they are there because i already uploaded the entire template twice.
    Wo can help me whith this issue?I have a screenshot of gogle chrome inspect tool:http://prntscr.com/2euffa
    Marco Alex

  2. #2
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,195
    Mentioned
    71 Post(s)
    Tagged
    3 Thread(s)
    The screen shot is not very much help Marco; some code would be better.

    Are you sure the path's to the missing images are correct?

  3. #3
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes im sure and all the images are there.
    http://prntscr.com/2ev9gr

  4. #4
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,195
    Mentioned
    71 Post(s)
    Tagged
    3 Thread(s)
    Are the paths the same for all your images?

    Depending where you are in your folder structure they may not work.

    I would have something like /images/icons/etc. where the images folder is in the root folder ( public_html or similar )

  5. #5
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,325
    Mentioned
    214 Post(s)
    Tagged
    5 Thread(s)
    Looking at your first screenshot, some of your image filenames are capitalised, and some are not. As far as I can tell from that capture, the capitalised ones are shjowing and the others aren't. Should all your file names be capitalised? If you're on a Linux server, it's important to get this right, as Linux is case-sensitive.
    Don't be arrogant. Be kind to a koala that thinks it's a bear.

  6. #6
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The icon png files are all there but the server gives a 404 error on those that do not appear,i asked the server help but they sayd they only give attention to payed hosting and mine is the free account just to test my templates.:
    http://prntscr.com/2eveoc


    http://prntscr.com/2eve4k

  7. #7
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok i think your right .sometimes it takes another person to see our errors cause its just too mutch code.lol
    Im going to change the code to capitalized letters, but the png files are all in the server as you can see on the screen shot on my last reply.

  8. #8
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,325
    Mentioned
    214 Post(s)
    Tagged
    5 Thread(s)
    Quote Originally Posted by Marco Alex View Post
    Ok i think your right .sometimes it takes another person to see our errors cause its just too mutch code.lol
    Yes, sometimes it just needs another set of eyes. It's often difficult to spot the errors in your own code, and very helpful to get somebody else to look.
    Quote Originally Posted by Marco Alex View Post
    Im going to change the code to capitalized letters, but the png files are all in the server as you can see on the screen shot on my last reply.
    I think that should do it. You need to ensure that the filename you use in your code is identical to the actual PNG filename, including capitalisation, or it won't work (as you've discovered ). As far as Linux is concerned, Black_Cart.png and black_cart.png are two different files, and it won't substitute one for the other.
    Don't be arrogant. Be kind to a koala that thinks it's a bear.

  9. #9
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes its very hard to spot our own errors wen its so mutch code.
    Its all good now:http://prntscr.com/2evsk6
    thank you very mutch!!

  10. #10
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,325
    Mentioned
    214 Post(s)
    Tagged
    5 Thread(s)
    No problem. Glad we could help.
    Don't be arrogant. Be kind to a koala that thinks it's a bear.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •