Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 26th Jun 2011, 12:17 PM   #1
Professional Writer
War Room Member
 
sylviad's Avatar
 
Join Date: 2005
Location: Ontario, Canada
Posts: 1,877
Thanks: 196
Thanked 310 Times in 218 Posts
Default
Can someone help with this error code in WP?
Share on: 
fb share twitter share gplus share more share

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

:: Got a dog? Visit my blog. Dog Talk Weekly
:: Writing, Audio Transcription Services? - Award-winning Journalist is taking new projects. Warrior Discounts!
sylviad is offline  
Unread 26th Jun 2011, 12:21 PM   #2
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 34
Thanks: 0
Thanked 11 Times in 7 Posts
Default
Re: Can someone help with this error code in WP?
Share on: 
fb share twitter share gplus share more share

</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>

My Popular Fiverr Gig - 8000 Visitors from my Double Opt-In List (rate of about 2000 per day) Great Reviews!
Matt.McLaughlin is offline  
Unread 26th Jun 2011, 12:39 PM   #3
Professional Writer
War Room Member
 
sylviad's Avatar
 
Join Date: 2005
Location: Ontario, Canada
Posts: 1,877
Thanks: 196
Thanked 310 Times in 218 Posts
Default
Re: Can someone help with this error code in WP?
Share on: 
fb share twitter share gplus share more share

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

:: Got a dog? Visit my blog. Dog Talk Weekly
:: Writing, Audio Transcription Services? - Award-winning Journalist is taking new projects. Warrior Discounts!
sylviad is offline  
Unread 26th Jun 2011, 12:54 PM   #4
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 34
Thanks: 0
Thanked 11 Times in 7 Posts
Default
Re: Can someone help with this error code in WP?
Share on: 
fb share twitter share gplus share more share

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.

My Popular Fiverr Gig - 8000 Visitors from my Double Opt-In List (rate of about 2000 per day) Great Reviews!
Matt.McLaughlin is offline  
Unread 26th Jun 2011, 01:18 PM   #5
Professional Writer
War Room Member
 
sylviad's Avatar
 
Join Date: 2005
Location: Ontario, Canada
Posts: 1,877
Thanks: 196
Thanked 310 Times in 218 Posts
Default
Re: Can someone help with this error code in WP?
Share on: 
fb share twitter share gplus share more share

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

:: Got a dog? Visit my blog. Dog Talk Weekly
:: Writing, Audio Transcription Services? - Award-winning Journalist is taking new projects. Warrior Discounts!
sylviad is offline  
Unread 26th Jun 2011, 01:28 PM   #6
Professional Writer
War Room Member
 
sylviad's Avatar
 
Join Date: 2005
Location: Ontario, Canada
Posts: 1,877
Thanks: 196
Thanked 310 Times in 218 Posts
Default
Re: Can someone help with this error code in WP?
Share on: 
fb share twitter share gplus share more share

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

:: Got a dog? Visit my blog. Dog Talk Weekly
:: Writing, Audio Transcription Services? - Award-winning Journalist is taking new projects. Warrior Discounts!
sylviad is offline  
Unread 26th Jun 2011, 01:40 PM   #7
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 34
Thanks: 0
Thanked 11 Times in 7 Posts
Default
Re: Can someone help with this error code in WP?
Share on: 
fb share twitter share gplus share more share

It is 100% definitely not spyware or virus or indication of intrusion. Simply human error

My Popular Fiverr Gig - 8000 Visitors from my Double Opt-In List (rate of about 2000 per day) Great Reviews!
Matt.McLaughlin is offline  
Closed Thread


Bookmarks

Tags
code, error


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:05 PM.