A blank section was inserted after the site’s footer. It is related to the ChatGPT sidebar extension. When I delete the extension, this section is removed. This problem affects only one site we host. The other sites work normally. How can I solve the problem?
You should visit the URL of the problem website incognito or on some other device. If there is no problem (of the extra code in the footer) on other devices then the problem exists only on the device on which you have installed the extension.
You could have inadvertently given the extension permission to modify the content of that one URL, hence code is added by the extension when you visit the URL on that device.
On any device that has this extension installed, when visiting this URL, the blank section exits. I inspected the page and found the class, but I could not find the directory on the server to remove it.
Yes, that is the important thing here - on any device that the extension is installed, the blank section exists.
So it is a client side problem. You should not make any changes to the server since the problem exists on the client(s) - those that have the extension installed.
I agree with you. but the problem exists on one site and the other sites of server are safe.
I dare say all the sites on the server are safe.
The problem exists only on the client side. That is, in the web browser.
That is my understanding of the matter. I don’t want to monopolise the conversation and will let others in the community express their expert opinion.
As @calport has suggested, I would go into “Incognito” mode (make sure no extensions are setup to run in this mode as well) and then run the problem site.
*** the following should help you debug in Chrome and Firefox (possibly other browsers) ***
Further, right click somewhere blank on the site and click “Inspect” from the popup window.
Now, refresh the page while keeping the Inspect window open. Check the “Console” tab for errors, also the “Network” tab to ensure all resources loaded on the page.
This is one of the methods we use to debug code all the time.
I configured the setting of extension, and the problem was solved.
In extension setting and in tab “this can read and change site data”, I changed it to the “when you click the extension”.