Post by Dutch Pride Code » Sun Feb 05, 2023 2:20 am

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
Last edited by Dutch Pride Code on Sun Feb 05, 2023 5:06 pm, edited 1 time in total.

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by IP_CAM » Sun Feb 05, 2023 2:38 am

Did you clear out all of your Cache Sections manually ?

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Dutch Pride Code » Sun Feb 05, 2023 2:42 am

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.

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by IP_CAM » Sun Feb 05, 2023 3:15 am

Manually remove all files within the Cache and Modification Cache Sections.

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Dutch Pride Code » Sun Feb 05, 2023 3:37 am

Yes, done it. The script tag is still persisting.

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm

Post by IP_CAM » Sun Feb 05, 2023 5:29 am

Then check your Theme header.twig Source Content, if it's possibly a hard-coded entry.

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by xxvirusxx » Sun Feb 05, 2023 6:27 am

Check Theme Editor, Google Analytic module, system folder

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Dutch Pride Code » Sun Feb 05, 2023 5:05 pm

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!

User avatar
Active Member

Posts

Joined
Sun Jan 26, 2020 9:46 pm
Who is online

Users browsing this forum: jagall, SohBH and 258 guests