Can someone help with this error code in WP?

6 replies
  • WEB DESIGN
  • |
if (weaver_getopt('ttw_use_superfish')) { echo("\n"); }

This is appearing at the top of a site I installed for someone and I can't figure out why it's there or how to get rid of it.

The only thing I've done to the WP Theme is add Google Analytics code in two pages - the Header and Custom Header templates. I know the Google code is supposed to go between the head and /head which I did. I've checked to make sure, and it looks like it's in the right place.

I removed it from the Custom Header, thinking that was the error, but it didn't fix it. I wasn't actually doing the manual work - I was instructing her to do it while watching. I only saw her put it in these two templates, but I suppose there's a chance it's somewhere else, too.

Can someone help?

Here's the site:

Dreamview Natural Horsemanship

Thanks.

Sylvia
#code #error
  • Profile picture of the author Matt.McLaughlin
    </script> if (weaver_getopt('ttw_use_superfish')) {
    echo("<script>
    jQuery(function(){jQuery('ul.sf-menu').superfish({animation: {opacity:'show',height:'show'}, speed: 'fast'});});
    </script>\n");

    What animation is that? Seems to be the problem

    note: I read your post a little further, that is part of your theme. Try getting rid of the whole if statement. From If(weaver to the } above </head>
    {{ DiscussionBoard.errors[4141794].message }}
    • Profile picture of the author sylviad
      Matt,

      It's just a YouTube video she embedded. We did it right within the post while we were publishing it. I don't know why that would cause the error because we didn't touch the template for that. Unless she did something when I wasn't looking.

      At the moment, I cannot access her Dashboard because she's not home, so I can't check anything.

      Sylvia
      Signature
      :: Got a dog? Visit my blog. Dog Talk Weekly
      :: Writing, Audio Transcription Services? - Award-winning Journalist is taking new projects. Warrior Discounts!
      {{ DiscussionBoard.errors[4141866].message }}
  • Profile picture of the author Matt.McLaughlin
    If it is a youtube thing, it is within the <head> tags. It should be outside the head tags otherwise it will cause the error.

    Your using the theme Weaver and the code sounds like it's a addon/feature included with the theme. Then it says echo (meaning show this object) and includes the script for some animation called superfish. I am not sure what superfish is.

    Either way, I don't think it should be within the <head> tags. It looks unimportant and I am sure if it is deleted, the problem will disappear and the feature won't be missed.

    Is there some addon or part of your theme that is called 'superfish'?

    EDIT: Looking at it, I think if you simply move that whole if statement to the next line, it will work. When you added the Google analy it added some info on the same line. If statements should be on separate lines.
    {{ DiscussionBoard.errors[4141923].message }}
    • Profile picture of the author sylviad
      Originally Posted by Matt.McLaughlin View Post

      If it is a youtube thing, it is within the <head> tags. It should be outside the head tags otherwise it will cause the error.

      Your using the theme Weaver and the code sounds like it's a addon/feature included with the theme. Then it says echo (meaning show this object) and includes the script for some animation called superfish. I am not sure what superfish is.

      Either way, I don't think it should be within the <head> tags. It looks unimportant and I am sure if it is deleted, the problem will disappear and the feature won't be missed.

      Is there some addon or part of your theme that is called 'superfish'?

      EDIT: Looking at it, I think if you simply move that whole if statement to the next line, it will work. When you added the Google analy it added some info on the same line. If statements should be on separate lines.
      I was looking for 'superfish' to locate the error in the templates and did discover it in several templates. I haven't seen any addon with superfish, but we did add several plugins. Although, those are the same plugins I've used and they don't cause the problem in any of my sites.

      If the GA is on the same line, that could be it. I did notice after she added the script one time that it ended up on the same line rather than on the new line. I'll have a look next chance I get.

      I'm using Weaver in my own sites and have not had this problem. Is it possibly some sort of adware, spyware or something? I'm not sure her computer security is as good as it should be.

      Edit: I wonder if it's something in the headers that he provides? The theme allows you to change the header image and I'm not sure if he has any animated ones.

      Sylvia
      Signature
      :: Got a dog? Visit my blog. Dog Talk Weekly
      :: Writing, Audio Transcription Services? - Award-winning Journalist is taking new projects. Warrior Discounts!
      {{ DiscussionBoard.errors[4142025].message }}
      • Profile picture of the author sylviad
        I've looked through my own installation of this Weaver theme and cannot find any reference to superfish in the templates we looked at on her system.

        Sylvia
        Signature
        :: Got a dog? Visit my blog. Dog Talk Weekly
        :: Writing, Audio Transcription Services? - Award-winning Journalist is taking new projects. Warrior Discounts!
        {{ DiscussionBoard.errors[4142084].message }}
  • Profile picture of the author Matt.McLaughlin
    It is 100% definitely not spyware or virus or indication of intrusion. Simply human error
    {{ DiscussionBoard.errors[4142148].message }}

Trending Topics