Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image not loading - "Failed to load the given URL"

Tags:

html

css

image

I have an issue with firefox, it doesn't load an image.All the other,Chrome, Opera and IE can load this but firefox fails, it does not display any picture and if i go check with firebug it displays the following error on the image link: "Failed to load the given URL". I did clear my cache, also, if i open the image link in another tab 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'm using codeigniter(if u wonder about base_url() function) and bootstrap(but i don't think that matters so much.

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

like image 401
Radu Vlad Avatar asked Sep 05 '13 10:09

Radu Vlad


2 Answers

Ok,i finally know what the problem was,and it is called adblock plus.Damnit,totally forgot i have that installed on my firefox. Thanks a lot guys.

like image 83
Radu Vlad Avatar answered Oct 04 '22 17:10

Radu Vlad


If you are referencing image from 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 a relative link: src="/img/facebook_log22.png" .
like image 30
Vladimir Kocjancic Avatar answered Oct 04 '22 17:10

Vladimir Kocjancic