Post by drag84 » Tue Apr 30, 2024 2:23 pm

Hello,
I have a problem that when I add a sitemap to GSC it is shown as not valid.
When I check the file, I see the following error: Incorrect http header content-type: "text/html; charset=UTF-8" (expected: "application/xml")
Image

How to solve the problem?

Newbie

Posts

Joined
Thu Aug 04, 2022 4:56 pm

Post by ADD Creative » Tue Apr 30, 2024 4:33 pm

It would be helpful to post your OpenCart version. What do you see id you go to your sitemap URL in a web browser?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by OSWorX » Tue Apr 30, 2024 4:38 pm

drag84 wrote:
Tue Apr 30, 2024 2:23 pm
Hello,
I have a problem ..
We here also!
Unless you can provide some details, nobody will be able to help you here.
Please read the Forum Rules before proceeding.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by paulfeakins » Tue Apr 30, 2024 10:10 pm

drag84 wrote:
Tue Apr 30, 2024 2:23 pm
How to solve the problem?
Why have you blanked out your URL? Your website is live on the Internet, it's hardly a secret?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by drag84 » Fri Jul 19, 2024 4:19 pm

I use the opencart module for sitemap harvesting. It generates the file but you can't add it to the GSC.
XML file: https://skaiciumenas.lt/index.php?route ... le_sitemap
OC version: 3.0.3.8

I check the validity of the XML file here: https://www.xml-sitemaps.com/validate-xml-sitemap.html and I get an error: Incorrect http header content-type: "" (expected: "application/xml")

how to solve the problem?

Newbie

Posts

Joined
Thu Aug 04, 2022 4:56 pm

Post by nonnedelectari » Fri Jul 19, 2024 8:26 pm

drag84 wrote:
Fri Jul 19, 2024 4:19 pm
I use the opencart module for sitemap harvesting. It generates the file but you can't add it to the GSC.
XML file: https://skaiciumenas.lt/index.php?route ... le_sitemap
OC version: 3.0.3.8

I check the validity of the XML file here: https://www.xml-sitemaps.com/validate-xml-sitemap.html and I get an error: Incorrect http header content-type: "" (expected: "application/xml")

how to solve the problem?
its fine.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by drag84 » Tue Jul 23, 2024 3:26 pm

nonnedelectari wrote:
Fri Jul 19, 2024 8:26 pm
drag84 wrote:
Fri Jul 19, 2024 4:19 pm
I use the opencart module for sitemap harvesting. It generates the file but you can't add it to the GSC.
XML file: https://skaiciumenas.lt/index.php?route ... le_sitemap
OC version: 3.0.3.8

I check the validity of the XML file here: https://www.xml-sitemaps.com/validate-xml-sitemap.html and I get an error: Incorrect http header content-type: "" (expected: "application/xml")

how to solve the problem?
its fine.
not working - GSC shows an error. Failed to read sitemap

Image

Newbie

Posts

Joined
Thu Aug 04, 2022 4:56 pm

Post by paulfeakins » Tue Jul 23, 2024 7:10 pm

drag84 wrote:
Tue Jul 23, 2024 3:26 pm
not working - GSC shows an error. Failed to read sitemap
You should use a sitemap extension - Google changes the spec too frequently for the OC core to keep up.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by drag84 » Wed Jul 24, 2024 3:51 pm

paulfeakins wrote:
Tue Jul 23, 2024 7:10 pm
drag84 wrote:
Tue Jul 23, 2024 3:26 pm
not working - GSC shows an error. Failed to read sitemap
You should use a sitemap extension - Google changes the spec too frequently for the OC core to keep up.
which module do you recommend?

Newbie

Posts

Joined
Thu Aug 04, 2022 4:56 pm

Post by paulfeakins » Wed Jul 24, 2024 5:23 pm

drag84 wrote:
Wed Jul 24, 2024 3:51 pm
paulfeakins wrote:
Tue Jul 23, 2024 7:10 pm
drag84 wrote:
Tue Jul 23, 2024 3:26 pm
not working - GSC shows an error. Failed to read sitemap
You should use a sitemap extension - Google changes the spec too frequently for the OC core to keep up.
which module do you recommend?
For the Google Merchant feed we recommend the one by the developer, UKSB. I'm not sure if they do one for just the normal sitemap, but here's our list of extension developers we consider write good code: https://www.antropy.co.uk/blog/good-qua ... xtensions/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by paulfeakins » Wed Jul 24, 2024 5:29 pm

Actually this one looks like it could be good but we haven't used it: https://www.opencart.com/index.php?rout ... itebuilder

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by ADD Creative » Thu Jul 25, 2024 7:01 am

drag84 wrote:
Tue Jul 23, 2024 3:26 pm
not working - GSC shows an error. Failed to read sitemap
Do a live test of your site map URL.
https://support.google.com/webmasters/a ... _live_page

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 9 guests