Find what file calls this script

Discussion in 'HTML & Website Design' started by ashley76, Mar 16, 2014.

  1. #1
    I am having an issue where the first load of my site is super slow. So I did some digging and it looks like my site is trying to load this:
    <script type="text/javascript" src="http://www.xxxxxxx.com/media/js/jquery.code.js?ver=3.8.1"></script>
    Code (markup):
    which doesn't exist. Where can I what file is calling this so I can remove the line of code that calls it?

    I should add that I use wordpress as well...

    Thanks
     
    ashley76, Mar 16, 2014 IP
  2. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #2
    It would be located in the themes template folder most likely the header.
     
    HuggyStudios, Mar 17, 2014 IP
  3. ashley76

    ashley76 Active Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    Hmmm... don't see it in the header.php. I have looked in index.php and footer as well...
     
    ashley76, Mar 17, 2014 IP
  4. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #4
    Run a search in the files for it. If it's not there then check the database.
     
    HuggyStudios, Mar 17, 2014 IP
  5. ashley76

    ashley76 Active Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    I did a search of the database and it doesn't find it... If I turn on activity in safari it gives me an error that it is calling that particular file, but it can't find it. The file is definitely not there, but for the life of me I can't find where this script is being called from...
     
    ashley76, Mar 17, 2014 IP
  6. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #6
    You could possibly been hacked and it could be some encoded JavaScript. It's something that happens quite a lot with WordPress sites that don't have strong admin username and passwords.

    If it doesn't exist in the template then it's either in the database or it's been added to one of the core WordPress files.
     
    HuggyStudios, Mar 17, 2014 IP