jQuery trying to load a non existent ajax-loader.gif mod-rewrite doesn't work

11,517

So, it was really a misdirection by Chrome. The plugin at fault was jQuery Coda-Slider. Because it was JS compressed, Agent Ransack couldn't find the string... lesson learned...

Share:
11,517
Serj Sagan
Author by

Serj Sagan

Architect, developer, designer and marketer at https://www.saganmarketing.com I am also a full time Software Engineer III (Senior) contractor at Idaho Dept. of Labor. I do HTML 5; CSS 3; Javascript+jQuery; PHP; C# ASP.NET+Core MVC, Blazor and API, Angular 2+, EF, TSQL, SOA, RabbitMQ + much more.

Updated on June 04, 2022

Comments

  • Serj Sagan
    Serj Sagan almost 2 years

    If you visit this page in Chrome: http://www.immigrationconsult.org/contact.php

    And Inspect Element on the page, go to Console you will see this error:

    GET htt...cms/contact/images/ajax-loader.gif 404 (Not Found) jquery.min.js:4

    I followed the instructions here to create a: http://css-tricks.com/weird-file-requests-and-easing-server-stress-with-htaccess/

    I tested to make sure it works, and it does, but not on this specific request. jquery.min.js is the jQuery minified from the makers, I did not change it at all. I used Agent Ransack to deep search for any reference of this in any of my files, the search yielded no results.

    I have no idea what to do or how to prevent this issue from happening, this seems like such a small issue, but I can not locate the cause of the problem! Please help.

    • Nalaka526
      Nalaka526 almost 12 years
      Check whether 'ajax-loader.gif' file is in the 'immigrationconsult.org/cms/contact/images' folder
    • Serj Sagan
      Serj Sagan almost 12 years
      The problem is that this jquery.min.js is loaded on every page on my site, so am I supposed to create a dummy images folder in every directory and put the image there? I need to modify the javascript, but, I don't know where the request is coming from...
  • Serj Sagan
    Serj Sagan almost 12 years
    The problem is that this jquery.min.js is loaded on every page on my site, so am I supposed to create a dummy images folder in every directory and put the image there? I need to modify the javascript, but, I don't know where the request is coming from...
  • furier
    furier almost 12 years
    my guess is you have a header.php which you include for all pages as it should be the same for every page, and include your java scripts there? or depends on your folder structure maybe? you have each page in a new folder and the paths a re relative to that *.php file?
  • Serj Sagan
    Serj Sagan almost 12 years
    Yes, I heave a header.php that gets loaded with every page... the pages are actually served by WordPress and don't actually exist, neither do the folders, for example, I have no /contact/ folder... it's all done by wordpress rewriting...
  • furier
    furier almost 12 years
    i see you are using immigrationconsult.org/jquery.min.js for source, what happens if you just use relative path like just "jquery.min.js" or even just use googles jquery?
  • Serj Sagan
    Serj Sagan almost 12 years
    Thanks, for helping. I get this error when doing it above way: Uncaught Error: Module: 'jquery' with version '1.7.2' not found! jsapi:16 I also tried just <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquer‌​y.min.js"></script> but I still get the original missing ajax-loader.gif error