Coding error: "not a valid sector"

I appear to have two coding errors on this page of my website (screenshot below): https://www.taylorbennettheyman.com/who-we-are

I am unable to tell if this is impacting the page’s performance. Is this something that needs resolving? If so, how?

Many thanks

Hi, taylorbennettheyman .

A red, squiggly underline indicates some sort of error. I’m guessing that you don’t have controls with those exact names. What happens when you hover over the red dot next to the ‘5’ on Line # 5? If nothing, try hovering over “#gallery1” and see if an error message displays.

Same for ‘9’ on Line # 9? If nothing, try hovering over “#text32” and see if an error message displays.

The error messages read as follows:

Line 5: ‘#gallery1’ is not a valid sector
Line 9: ‘#text32’ is not a valid sector

I took a look and the message is actually:
#gallery1’ is not a valid selector


Same with #text32.

The reason for these error messages is that you don’t have either one of these components on the page.

@yisrael-wix - Yes, I got the same error messages. I only included the line numbers for reference.

I have no coding experience, so I’m afraid I don’t understand when you say “The reason for these error messages is that you don’t have either one of these components on the page”.

What are the components you refer to?

Why is that code there if the components are not? I certainly wouldn’t have put the code in there myself.

Most importantly, is this affecting the page performance? If so, how do I resolve it?

@taylorbennettheyman I’m not sure what you’re trying to accomplish, but your code is trying to do something to components that don’t exist.

If you didn’t put the code there, then who did? And why is it there? Pages aren’t created with code. Somebody had to put it there.

The errors might affect page performance, as the page attempts to resolve the references to the components and then has to move on. I would suggest that you deal with the “phantom” code before attempting to deal with performance issues.

@yisrael-wix - I am not trying to “accomplish” anything. I am trying to understand why I am being told there is an error and whether or not said error could be affecting the site’s performance.
As I said, I have no coding background, so it would be helpful if you could elaborate as to how exactly I can “deal with the “phantom” code before attempting to deal with performance issues.”
Can I just delete the code if, as you say, the “code is trying to do something to components that don’t exist”?

@taylorbennettheyman I was trying to understand what you are trying to accomplish on your page that has the code. What does the page do? What is the code for? Who added the code to the page?

If you don’t want the code for anything, then just delete it. It isn’t doing anything.

@taylorbennettheyman I’m guessing that someone else implemented the original website. If that’s the case, you might want to talk with that other person; if that’s not the case, then you could delete the code (I would encourage you to first make a back-up of the code [just in case]).

1 Like