Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google XML Sitemap SEO


Jack_mcs

Recommended Posts

  • 4 weeks later...

Hi Jack,

I used this version https://apps.oscommerce.com/wVVYf&google-xml-sitemap-seo-v-1-12&v=23

for an EDGE oscommerce shop. Sitemaps work, but links to products  are like  .../product_info.php?products_id=710

although Ultimate SEO  urls are installed and active.

What have I done wrong ?

Martin

 

Link to comment
Share on other sites

Are the links rewritten when you click on them on the site? Are you sure you are using Ultimate SEO and not SEO 5 as a rewriter? You can tell by what the setting section in admin->Configuration says.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

That name is for Ultimate SEO so that's good since this addon won't work with the other one. The only other thing I can think of that might be the problem is the php version you are using. That can be found in admin->Tools->Server Info.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Please enable the diagnostic option in the settings, run the script manually and paste what is displayed here. You can erase the username and domain name if you want but leave everything else.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

this is the diagnostic output:

 

 

Opening   /homepages.../sitemapproducts.xml

FS_CAT    /homepages.../

Server    https://www.welt-der-werbeartikel.de

Save Path /homepages.../

WS_CAT    /

Write /homepages.../sitemapproducts.xml
Generated Google Product Sitemap Successfully

Opening   /homepages.../sitemapcategories.xml

FS_CAT    /homepages.../

Server    https://www.welt-der-werbeartikel.de

Save Path /homepages.../

WS_CAT    /

Write /homepages.../sitemapcategories.xml
Generated Google Category Sitemap Successfully

Opening   /homepages.../sitemapimages.xml

FS_CAT    /homepages.../

Server    https://www.welt-der-werbeartikel.de

Save Path /homepages.../

WS_CAT    /

Write /homepages.../sitemapimages.xml
Generated Google Images Sitemap Successfully

Opening   /homepages.../sitemapmanufacturers.xml

FS_CAT    /homepages.../

Server    https://www.welt-der-werbeartikel.de

Save Path /homepages.../

WS_CAT    /

Write /homepages.../sitemapmanufacturers.xml
Generated Google Manufacturers Sitemap Successfully

Opening   /homepages.../sitemappages.xml

FS_CAT    /homepages.../

Server    https://www.welt-der-werbeartikel.de

Save Path /homepages.../

WS_CAT    /

Write /homepages.../sitemappages.xml
Generated Google Pages Sitemap Successfully

Google Sitemap Specials not generated - no specials found!

ERROR: Google Topics Sitemap Generation FAILED!

Opening   /homepages.../sitemapindex.xml

FS_CAT    /homepages.../

Server    https://www.welt-der-werbeartikel.de

Save Path /homepages.../

WS_CAT    /

Write /homepages.../sitemapindex.xml
Generated Google Sitemap Index Successfully

Array
(
    [QUERY] => Array
        (
            [PRODUCTS] => Array
                (
                    [STATUS] => success
                    [NUM_ROWS] => 714
                )

            [CATEOGRY] => Array
                (
                    [STATUS] => success
                    [NUM_ROWS] => 52
                )

            [IMAGES] => Array
                (
                    [STATUS] => success
                    [NUM_ROWS] => 714
                )

            [MANUFACTURERS] => Array
                (
                    [STATUS] => success
                    [NUM_ROWS] => 88
                )

            [SPECIALS] => Array
                (
                    [STATUS] => success
                    [NUM_ROWS] => 0
                )

            [TOPICS] => Array
                (
                    [STATUS] => false
                    [NUM_ROWS] => 0
                )

        )

    [SAVE_FILE_XML] => Array
        (
            [0] => Array
                (
                    [file] => /homepages.../sitemapproducts.xml
                    [status] => success
                    [file_exists] => true
                )

            [1] => Array
                (
                    [file] => /homepages.../sitemapcategories.xml
                    [status] => success
                    [file_exists] => true
                )

            [2] => Array
                (
                    [file] => /homepages.../sitemapimages.xml
                    [status] => success
                    [file_exists] => true
                )

            [3] => Array
                (
                    [file] => /homepages.../sitemapmanufacturers.xml
                    [status] => success
                    [file_exists] => true
                )

            [4] => Array
                (
                    [file] => /homepages.../sitemappages.xml
                    [status] => success
                    [file_exists] => true
                )

            [5] => Array
                (
                    [file] => /homepages.../sitemapindex.xml
                    [status] => success
                    [file_exists] => true
                )

        )

)

Completed!

Link to comment
Share on other sites

I looked at a few of the products listed in the map file but they all say not found. I'm wondering if the url in your configure file is correct or not. If you write down the date and time of the sitemapproducts.xml file in the shops root directory, run the script manually and look at the date and time again, does it change?

Also, is this a Windows server? 

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

When I run the  googlesitemap/index.php the time of the xml files in the root directory changes.

The product links in the  sitemapproducts.xml exist, e.g. the first one in sitemapproducts.xml is https://www.welt-der-werbeartikel.de/sitemapproducts.xml

which changes to https://www.welt-der-werbeartikel.de/klick-klack-dose-mini-p-710.html by loading in the shop.

The server uses Linux.

 

Im checking the configure files now, cause I'm using different urls, e.g. for testing.

Link to comment
Share on other sites

Checked the configure files, I've seen nothing wrong, as far as i  see both files  are using the right paths.

 

What products with wrong links in the map file have you found ? They all look like https://www.welt-der-werbeartikel.de/product_info.php?products_id=xxx

which is good for most numbers < 1000. I Think they are right, but not rewritten by Ultimate SEO.

Link to comment
Share on other sites

The first link in the feed is https://www.welt-der-werbeartikel.de/product_info.php?products_id=710 When I visit that page, I get a product not found message. The url changes to https://www.welt-der-werbeartikel.de/-p-710.html which, while not correct, should work. When I click on the link you posted above for the same product, I also get a not found page.

I think the problem is, in my case at least, that your default language is not English and that part is not setup. Is that the case? If I visit https://www.welt-der-werbeartikel.de/-p-710.html?language=de it loads the page correct.

A common problem with sites that use languages other than English is that they leave the files in place that come with the package. If you are going to have English as a language for your customers, then you need to make sure there is an entry for it in admin and the files in its directory are up-to-date, with regards to changes you have made. If you do not intend to offer it as a language, then you need to delete the entry for it in admin and the files. Please do one of those and then see if the script works.cc it loads the cc 

 

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack, I'm back now

you are right, I use german as standard language, but english ist still an entry in the admin. Some english files were missing, which I added. I hope I got them all.  I've done

1. test with standard german + english entry :
https://www.welt-der-werbeartikel.de/product_info.php?products_id=710 : ok
https://www.welt-der-werbeartikel.de/-p-710.html: ok
https://www.welt-der-werbeartikel.de/-p-710.html?language=de : ok
https://www.welt-der-werbeartikel.de/product_info.php?products_id=710&language=de : ok
https://www.welt-der-werbeartikel.de/product_info.php?products_id=710&language=en : ok
All notations worked !


2. test with standard german / english entry in admin deleted - english files still exist:
https://www.welt-der-werbeartikel.de/product_info.php?products_id=710 : ok
https://www.welt-der-werbeartikel.de/-p-710.html : ok
https://www.welt-der-werbeartikel.de/-p-710.html?language=de : ok
https://www.welt-der-werbeartikel.de/-p-710.html?language=en : ok
https://www.welt-der-werbeartikel.de/product_info.php?products_id=710&language=de : ok
https://www.welt-der-werbeartikel.de/product_info.php?products_id=710&language=en : ok
All notations worked ! All output in german.

Perhaps you've got no content as all product texts are online in german only. Does this work now ?

Nevertheless the sitemap links are still like .../product_info.php?products_id=710

 

Link to comment
Share on other sites

That fixed the problem for me. When I click on one of the links, the page is displayed correctly. And if I click on one of the non-rewritten links, the code redirects to the rewritten one. So that means Ultimate SEO is working correctly. But the output of the diagnostic is not correct. It should be showing links to the complete map files. I don't know why that is. My guess is that it still has to do with the language but there's no way for me to know from here. The only thing I can think to check is to make sure German is the default language in the admin setting.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Fine.

German is the only language and default.

I wonder because SEO urls works and sitemap not, thereby both tools use the same tep_href_link function and in the same manner ?

Thank you Jack,

I probably try another addon ...

Link to comment
Share on other sites

Dear @Jack_mcs

Today I install the google-xml-sitemap addon.
The installation went well and I see that the XML files are generated.

But when I run the file in a web browser:
http://www.mysite.com/catalog/sitemapmanufacturers.xml or other .xml files

I get the following error:

Google Sitemap http://www.mysite.com.uy/catalog/sitemapmanufacturers.xml
Number of sitemaps in this Google sitemap index: 0
Click on the table headers to change sorting.

Checking the file sitemapmanufacturers.xml I see that it was generated correctly:

<? xml version = "1.0" encoding = "UTF-8"?>
<? xml-stylesheet type = "text / xsl" href = "gss.xsl"?>
<urlset xmlns = "http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc> http://www.mysite.com/catalog/warner-m-3.html </ loc>
<lastmod> 2018-03-20 </ lastmod>
<changefreq> weekly </ changefreq>
<priority> 0.5 </ priority>
</ url> .....

Changing inside http://www.mysite.com.uy/catalog/sitemapmanufacturers.xml
<urlset xmlns = "http://www.sitemaps.org/schemas/sitemap/0.9">
to
<urlset xmlns = "http://www.google.com/schemas/sitemap/0.9">

The problem is solved, and the web browser shows:

Google Sitemap http://www.mysite.com/catalog/sitemapproducts.xml
Number of URLs in this Google Sitemap: 29
Click on the table headers to change sorting.

Sitemap URL Last modification date Change freq. Priority
http://www.mysite.com/catalog/matrox-g200-mms-p-1.html 2018-04-19 weekly 1.0 ......

Do you know what the problem is? and how can I make the XMLs have all
<urlset xmlns = "http://www.google.com/schemas/sitemap/0.9"> and no
<urlset xmlns = "http://www.sitemaps.org/schemas/sitemap/0.9">

Best regards.

Valqui

:heart: Community Oscommerce fan :heart: You'll find the latest osC community version here.

 

Link to comment
Share on other sites

I suggest you change it back. The google schemas, while still valid, is not used by other search engines. The reason the page doesn't display in the browser is because the xml script used to display it doesn't work with the sitemaps schemas. In the next version (not released) I have removed that completely since it is not needed. Even in yours, the way it was, it was fine because the search engines look at the actual file, not the displayed text.

But if you want to keep it how you changed it, be sure to add a sitemaps entry to the robots file to let the other search engines know it is there.

 

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
Hello, I have 1 problem in 3 xml files in Google, Error: "webmaster tools, Your Sitemap does not contain any URLs. Please validate and resubmit your Sitemap."
 
in files:
/sitemapproducts.xml
/sitemappages.xml
/sitemappages.xml
Edited by Psytanium
Link to comment
Share on other sites

The first one is the important one. Have you looked at the file to see if it is empty? If it is, then the script is not working correctly. The other two are the same. The pages sitemap won't populate unless you have that option enabled in the settings.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

hi Jack, @Jack_mcs

I installed this contribution on a subdomain with osC v2.3.4 BS Edge, PHP7.1.7

I set in the configuration to allow for the various sitemap generation, took out the days time limit on manual regeneration, added my ip for Manual IP and Secure IP,  ..and enabled the Diagnostic Output. However, I get nothing, just a blank page when I go to ..../googlesitemap/index.php There is nothing in my error log either. Any thoughts?

This is the only error I get on the actual sitemap page. See image below.

sitemap-error.png.70123ecf890551eafc1e68265099ec38.png

 

Edited by Demitry

osCommerce: made for programmers, ...because store owners do not want to be programmers.

https://trends.google.com/trends/explore?date=all&amp;geo=US&amp;q=oscommerce

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...