Page 1 of 1

[SOLVED] [3.0.3.2] Modification does not exist but is still showing

Posted: Sun Feb 05, 2023 2:20 am
by Dutch Pride Code
Hi all,

There's a <script> tag showing on every page of my website, but as the CDN stopped working the script now returns a 404 on every page. I'm trying to resolve it, but I can't find that script tag anywhere in my system. Except for the modified header TWIG file (system\modification directory). The script tag does not exist in my original header file so it's not hard-coded. Yes, I've also checked the header controller file to make sure it's not hard-coded there either.

There must be a modification somewhere, of some kind, that is causing this. I've searched my entire oc_modification database and used a modification editor extension without any results. It simply is nowhere to be found, but it exists somewhere.

Does OpenCart have any hidden features that modify files?
Where could this modification possibly be coming from?

OC 3.0.3.2 / Default theme

Re: [3.0.3.2] Modification does not exist but is still showing

Posted: Sun Feb 05, 2023 2:38 am
by IP_CAM
Did you clear out all of your Cache Sections manually ?

Re: [3.0.3.2] Modification does not exist but is still showing

Posted: Sun Feb 05, 2023 2:42 am
by Dutch Pride Code
IP_CAM wrote:
Sun Feb 05, 2023 2:38 am
Did you clear out all of your Cache Sections manually ?
Does that include manually removing certain files or folders?
I did clear all of OpenCarts caches as well as my browsers cache.

Re: [3.0.3.2] Modification does not exist but is still showing

Posted: Sun Feb 05, 2023 3:15 am
by IP_CAM
Manually remove all files within the Cache and Modification Cache Sections.

Re: [3.0.3.2] Modification does not exist but is still showing

Posted: Sun Feb 05, 2023 3:37 am
by Dutch Pride Code
Yes, done it. The script tag is still persisting.

Re: [3.0.3.2] Modification does not exist but is still showing

Posted: Sun Feb 05, 2023 5:29 am
by IP_CAM
Then check your Theme header.twig Source Content, if it's possibly a hard-coded entry.

Re: [3.0.3.2] Modification does not exist but is still showing

Posted: Sun Feb 05, 2023 6:27 am
by xxvirusxx
Check Theme Editor, Google Analytic module, system folder

Re: [3.0.3.2] Modification does not exist but is still showing

Posted: Sun Feb 05, 2023 5:05 pm
by Dutch Pride Code
It was not hard-coded in my original header.twig file, but it did show within the theme editor. I never use Theme Editor so I've never thought of that as an option, but I was able to remove it there. Problem seems to be solved now ;D Although I still have no clue where it came from...

Thanks a lot for your help!