Image does not load - "Could not load the specified URL"

I have a problem with firefox, it does not load the image. In another case, Chrome, Opera and IE can download this, but firefox fails, it does not display any image, and if I go to check with firebug, it displays the following error on the image link: "Could not load the specified URL." I also cleared my cache if I open the link to the image in another tab in which it works.

The code:

<ul class="nav navbar-nav navbar-right"> <li> <a style='padding:4px' href="<?php echo $login_url?>"> <img src="<?php echo base_url(); ?>img/facebook_log22.png" class='facebookLogin' /> </a> </li> </ul> 

Also in style:

 .facebookLogin { height:40px; } 

I use codeigniter (if u is interested in the base_url () function) and bootstrap (but I don't think this is so important.

Edit: I also see that it adds another class to the code ... Also, an error: enter image description here

+7
html css image
source share
4 answers

Well, I finally understood what the problem was, and it is called adblock plus.Damnit, completely forgot that I have one that is installed on my firefox. Thanks a lot to the guys.

+37
source share

If you link to an image from a domain, it will not work, unless you:

  • put http:// in front of your link: src="http://<?php echo base_url(); ?>/img/facebook_log22.png" or
  • create relative link: src="/img/facebook_log22.png" .
+1
source share

I also had a similar error, I reopened it with another browser in which it worked. right click> View Image> you should be able to see your image if the link is correct.

0
source share

I once had a similar problem, and after an unsuccessful time of checking and re-checking my path, I realized that the problem was that the images were uploaded as ".JPG", but my css had ".jpg" It was a problem with capitalization.

0
source share

All Articles