Jump to content
Jack_mcs

Google XML Sitemap SEO

Recommended Posts

hi please can anyone help!

 

i have uploaded my osc site catalog and put all the files to the root directory and installed the site  at the front e.g

 

www.mysite.com/index.php

 

and not the usual way

 

www.mysite.com/catalog/index.php

 

this sitemap addon  will not run and i think the reason is the "catalog" files are used as my front site pages

 

i think that its looking for the catalog directory but not finding it due to me removing the catalog folder in my directory

 

is it possible to run this addon without the catalog folder in place?

 

i would really value and be very greatful for any assistance

 

kind regards

john

 

 

here is the code :

 

 

Opening   /sitemapproducts.xml

FS_CAT    /home/999evo/public_html/

Server    http://mysite.com

Save Path /

WS_CAT    /

ERROR: Google Product Sitemap Generation FAILED!

Opening   /sitemapcategories.xml

FS_CAT    /home/999evo/public_html/

Server    http://mysite.com

Save Path /

WS_CAT    /

ERROR: Google Category Sitemap Generation FAILED!

Opening   /sitemappages.xml

FS_CAT    /home/999evo/public_html/

Server    http://mysite.com

Save Path /

WS_CAT    /

ERROR: Google Pages Sitemap Generation FAILED!

Opening   /sitemapindex.xml

FS_CAT    /home/999evo/public_html/

Server    http://mysite.com

Save Path /

WS_CAT    /

ERROR: Google Sitemap Index Generation FAILED!

Array
(
    [QUERY] => Array
        (
            [PRODUCTS] => Array
                (
                    [sTATUS] => success
                    [NUM_ROWS] => 5123
                )

            [CATEOGRY] => Array
                (
                    [sTATUS] => success
                    [NUM_ROWS] => 3689
                )

        )

    [sAVE_FILE_XML] => Array
        (
            [0] => Array
                (
                    [file] => /sitemapproducts.xml
                    [status] => failure
                    [file_exists] => false
                )

            [1] => Array
                (
                    [file] => /sitemapcategories.xml
                    [status] => failure
                    [file_exists] => false
                )

            [2] => Array
                (
                    [file] => /sitemappages.xml
                    [status] => failure
                    [file_exists] => false
                )

            [3] => Array
                (
                    [file] => /sitemapindex.xml
                    [status] => failure
                    [file_exists] => false
                )

        )

)

Opening   /sitemap_mobileproducts.xml

FS_CAT    /home/999evo/public_html/

Server    http://mysite.com

Save Path /

WS_CAT    /

ERROR: Google Product Sitemap Generation FAILED!

Opening   /sitemap_mobilecategories.xml

FS_CAT    /home/999evo/public_html/

Server    http://mysite.com

Save Path /

WS_CAT    /

ERROR: Google Category Sitemap Generation FAILED!

Opening   /sitemap_mobilepages.xml

FS_CAT    /home/999evo/public_html/

Server    http://mysite.com

Save Path /

WS_CAT    /

ERROR: Google Pages Sitemap Generation FAILED!

Opening   /sitemap_mobileindex.xml

FS_CAT    /home/999evo/public_html/

Server    http://mysite.com

Save Path /

WS_CAT    /

ERROR: Google Sitemap Index Generation FAILED!

Array
(
    [QUERY] => Array
        (
            [PRODUCTS] => Array
                (
                    [sTATUS] => success
                    [NUM_ROWS] => 5123
                )

            [CATEOGRY] => Array
                (
                    [sTATUS] => success
                    [NUM_ROWS] => 3689
                )

        )

    [sAVE_FILE_XML] => Array
        (
            [0] => Array
                (
                    [file] => /sitemap_mobileproducts.xml
                    [status] => failure
                    [file_exists] => false
                )

            [1] => Array
                (
                    [file] => /sitemap_mobilecategories.xml
                    [status] => failure
                    [file_exists] => false
                )

            [2] => Array
                (
                    [file] => /sitemap_mobilepages.xml
                    [status] => failure
                    [file_exists] => false
                )

            [3] => Array
                (
                    [file] => /sitemap_mobileindex.xml
                    [status] => failure
                    [file_exists] => false
                )

        )

)

Completed!
 

 

 

Share this post


Link to post
Share on other sites

@@Jack_mcs

 

Hi Jack,

 

I applied the fix you supplied in post #1416 and this add-on mostly worked except "Google Pages Sitemap".  What could be the problem?  And what is "site map standard pages" anyway?  Thanks in advance.

 

The following are the output:

============================================================================

 

Opening   /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapproducts.xml
 
FS_CAT    /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
 
Save Path /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
WS_CAT    /
 
Write /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapproducts.xml
Generated Google Product Sitemap Successfully
 
Opening   /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapcategories.xml
 
FS_CAT    /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
 
Save Path /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
WS_CAT    /
 
Write /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapcategories.xml
Generated Google Category Sitemap Successfully
 
Opening   /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapimages.xml
 
FS_CAT    /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
 
Save Path /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
WS_CAT    /
 
Write /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapimages.xml
Generated Google Images Sitemap Successfully
 
Opening   /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapmanufacturers.xml
 
FS_CAT    /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
 
Save Path /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
WS_CAT    /
 
Write /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapmanufacturers.xml
Generated Google Manufacturers Sitemap Successfully
 
ERROR: Google Pages Sitemap Generation FAILED!
 
Opening   /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapindex.xml
 
FS_CAT    /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
 
Save Path /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/
 
WS_CAT    /
 
Write /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapindex.xml
Generated Google Sitemap Index Successfully
 
Array
(
    [QUERY] => Array
        (
            [PRODUCTS] => Array
                (
                    [sTATUS] => success
                    [NUM_ROWS] => 166
                )
 
            [CATEOGRY] => Array
                (
                    [sTATUS] => success
                    [NUM_ROWS] => 100
                )
 
            [iMAGES] => Array
                (
                    [sTATUS] => success
                    [NUM_ROWS] => 166
                )
 
            [MANUFACTURERS] => Array
                (
                    [sTATUS] => success
                    [NUM_ROWS] => 1
                )
 
        )
 
    [sAVE_FILE_XML] => Array
        (
            [0] => Array
                (
                    [file] => /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapproducts.xml
                    [status] => success
                    [file_exists] => true
                )
 
            [1] => Array
                (
                    [file] => /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapcategories.xml
                    [status] => success
                    [file_exists] => true
                )
 
            [2] => Array
                (
                    [file] => /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapimages.xml
                    [status] => success
                    [file_exists] => true
                )
 
            [3] => Array
                (
                    [file] => /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapmanufacturers.xml
                    [status] => success
                    [file_exists] => true
                )
 
            [4] => Array
                (
                    [file] => /home/httpd/vhosts/mydomain.com/subdomains/shop/httpdocs/sitemapindex.xml
                    [status] => success
                    [file_exists] => true
                )
 
        )
 
)
Completed!

Share this post


Link to post
Share on other sites

@@Moxamint The pages option has to be enabled in the settings for it to work and the permissions have to be set to writeable on some servers for the pages sitemap file. It creates a map of the standard pages of the shop, like privacy.php, or whatever the code finds. It will include pages from addons like Information Pages and Article Manager. If you use it, be sure to review the map file afterwards to see if there are any pages that shouldn't be listed, like secure pages, and then add those to the exclude setting.

Share this post


Link to post
Share on other sites

@@Jack_mcs  Thanks for the detailed information.  I did set all sitemap*.xml file permissions to 755 and turned "Enable Standard Pages Map" and a couple of other options on.  All .xml files were generated OK except sitemappages.xml

 

Did I miss anything else?

 

Thanks again.

Share this post


Link to post
Share on other sites

The code that generates all of the maps is mostly the same. The one for pages doesn't report debug details but that wouldn't cause it to fail. The failure you are getting will happen when no pages were added to the map file. So there might be some difference in your files that prevents the code from identifying the pages but I don't know what that might be.

Share this post


Link to post
Share on other sites

@@Jack_mcs Thanks for post 1416 it works like a champ on the bootstrap 2.3.4 development site I am working on for deployment.  

 

 

Thanks for all you do to help us out!!  

Dave

Share this post


Link to post
Share on other sites

Hi Jack, I have upgraded to the latest version, all seems to be fine but why is sitemap_mobileindex.xml and sitemapindex.xml identical? They both contain same links such as sitemap_mobilecategories.xml or sitemapcategories.xml.

 

Enable Mobile Maps is set to false in admin.


Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

Only one index file is needed but I didn't think to prevent the mobile index one from being created with the last changes. it doesn't do any harm though.

 

The enable mobile maps is meant to prevent mobile map entries in the index file but that code wasn't added in the uploaded version. It will be in the next version. But it does check if the url for mobile maps is set and will create the if it is. So be sure to clear that setting if you don't want mobile maps.

Share this post


Link to post
Share on other sites

OK if I clear that setting, it is no longer listed on googlesitemap/index.php however sitemap mobile links (sitemap_mobilecategories.xml, etc) are still visible on sitemapindex.xml. Same for the Images Map, sitemapimages.xml is also on sitemapindex.xml even if it is set to false in admin.

 

I have also noticed that sitemapimages.xml is identical to sitemapproducts.xml with identical linnks, etc. Is it meant to be?


Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

As mentioned, the enable mobile setting isn't being used so those maps get created. The structure of the images and products files is different. If you are not setting that, I don't know what that might be other than not having the mobile option set. But if you are not going to use the mobile maps, there's really no reason for you to use this version. I suggest reverting back to the previous one to clear up all of the problems you are having.

Share this post


Link to post
Share on other sites

This is really strange, I'm unable to revert back to v 1.7 as I'm getting these:

[file] => /sitemapcategories.xml
                    [status] => failure
                    [file_exists] => false

File permissions are OK, it is working with the new version and before I tried the new version it was also working fine with the previous version... Any idea how to cure it? I have also tried to add the following code just before this line

$this->savepath = DIR_FS_CATALOG;

so it looks like:

		if (($pos = strpos(DIR_FS_CATALOG, "googlesitemap")) !== FALSE) { //fix for when path is gotten by dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'
                    $pos = strlen("googlesitemap");                               //it includes the google sitemap directory so remove it
		    $this->savepath = substr(DIR_FS_CATALOG, 0, - $pos - 1);      //not returning right above - quick fix for now
  		  $this->savepath .= (substr($this->savepath, -1) !== '/') ? '/' : ''; //append a slash if needed
		} else {
	  	  $this->savepath = DIR_FS_CATALOG . (substr(DIR_FS_CATALOG, -1) !== '/') ? '/' : '';
                }
                $this->savepath = DIR_FS_CATALOG;

It did not help...

Edited by mr_absinthe

Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

What I did to make v1.7 work again, I used googlesitema/index.php file from v1.8 no idea why it is no longer working with that file from v1.7


Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

I believe I have found a Bug.

 

In sitemap.class.php, Line 270 goes like this:

 

$this->savepath = DIR_FS_CATALOG . (substr(DIR_FS_CATALOG, -1) !== '/') ? '/' : '';
 
the condition for "?" operator is "DIR_FS_CATALOG . (substr(DIR_FS_CATALOG, -1) !== '/')" which is always TRUE, so savepath is always "/".
 
This line should be:
 
$this->savepath = DIR_FS_CATALOG . ((substr(DIR_FS_CATALOG, -1) !== '/') ? '/' : '');
 
This way the "/" will be appended to the savepath instead of replacing it.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Hi all,

 

My sitemaps don't generate...

 

I checked configure.php and seems to be OK, and the file permissions on the sitemaps files are on 777. I can't find an issue...

 

Here is the diagnostic :

 

Opening   /sitemapproducts.xmlFS_CAT    /homez.331/mysite/www/Server    http://www.mysite.euSave Path /WS_CAT    /ERROR: Google Product Sitemap Generation FAILED!Opening   /sitemapcategories.xmlFS_CAT    /homez.331/mysite/www/Server    http://www.mysite.euSave Path /WS_CAT    /ERROR: Google Category Sitemap Generation FAILED!Opening   /sitemapimages.xmlFS_CAT    /homez.331/mysite/www/Server    http://www.mysite.euSave Path /WS_CAT    /ERROR: Google Images Sitemap Generation FAILED!Opening   /sitemappages.xmlFS_CAT    /homez.331/mysite/www/Server    http://www.mysite.euSave Path /WS_CAT    /ERROR: Google Pages Sitemap Generation FAILED!Opening   /sitemapspecials.xmlFS_CAT    /homez.331/mysite/www/Server    http://www.mysite.euSave Path /WS_CAT    /ERROR: Google Specials Sitemap Generation FAILED!Opening   /sitemapindex.xmlFS_CAT    /homez.331/mysite/www/Server    http://www.mysite.euSave Path /WS_CAT    /ERROR: Google Sitemap Index Generation FAILED!Array(    [QUERY] => Array        (            [PRODUCTS] => Array                (                    [STATUS] => success                    [NUM_ROWS] => 378                )            [CATEOGRY] => Array                (                    [STATUS] => success                    [NUM_ROWS] => 22                )            [IMAGES] => Array                (                    [STATUS] => success                    [NUM_ROWS] => 378                )            [SPECIALS] => Array                (                    [STATUS] => success                    [NUM_ROWS] => 79                )        )    [SAVE_FILE_XML] => Array        (            [0] => Array                (                    [file] => /sitemapproducts.xml                    [status] => failure                    [file_exists] => false                )            [1] => Array                (                    [file] => /sitemapcategories.xml                    [status] => failure                    [file_exists] => false                )            [2] => Array                (                    [file] => /sitemapimages.xml                    [status] => failure                    [file_exists] => false                )            [3] => Array                (                    [file] => /sitemappages.xml                    [status] => failure                    [file_exists] => false                )            [4] => Array                (                    [file] => /sitemapspecials.xml                    [status] => failure                    [file_exists] => false                )            [5] => Array                (                    [file] => /sitemapindex.xml                    [status] => failure                    [file_exists] => false                )        ))
Completed!

 

Thank you for your help.

Share this post


Link to post
Share on other sites

Is that the actual contents of a sitemap file? Can you provide a link to it?

Share this post


Link to post
Share on other sites

@@ringo667 I don't know what that might be. All I can suggest is that you turn off the url rewriter and create the maps again. Then see if there are still duplicates. It might be that you have two different paths to the same product and the url rewriter is converting them to one path. I've never seen this happen before but it's the only thing I can think of.

Share this post


Link to post
Share on other sites

Jack -

 

Hello.  I think I have an unique situation - perhaps not. 

 

First - Google has indexed my store's site with these results

Site Errors

No errors detected in the last 90 days. Nice!

URL Errors

No errors detected in the last 90 days. Nice!

 

In an effort to better promote the placement (which is what we all want right?) I want to create a sitemap for it however after many fruitless attempts to utilize various online sitemap creators and several local (on my desktop) ones they ALL simply give me the message "Error connecting to --> https://store.militarywives.com/"

 

YES, My store is located at https://store.militarywives.com.  

 

I have installed the add-on Google XML Sitemap SEO V 1.8 and have set the file permissions to be 777.  

When I run the index.php I recieve information below - Is this because of the URL or because it is on SECURE server or what?

 

The store is OSC 2.3.4 and operates correctly and has for the past several weeks since we activated it at this URL.  PCI passes, Google's indexing it, etc. etc. etc.

 

Suggestions?

 

BJ

-------------------------------------------------

 

ERROR: Google Product Sitemap Generation FAILED!

 

ERROR: Google Category Sitemap Generation FAILED!

 

ERROR: Google Sitemap Index Generation FAILED!

 

Array

(

    [QUERY] => Array

        (

            [PRODUCTS] => Array

                (

                    [sTATUS] => success

                    [NUM_ROWS] => 4118

                )

 

            [CATEOGRY] => Array

                (

                    [sTATUS] => success

                    [NUM_ROWS] => 333

                )

 

        )

 

    [sAVE_FILE_XML] => Array

        (

            [0] => Array

                (

                    [file] => /sitemapproducts.xml

                    [status] => failure

                    [file_exists] => false

                )

 

            [1] => Array

                (

                    [file] => /sitemapcategories.xml

                    [status] => failure

                    [file_exists] => false

                )

 

            [2] => Array

                (

                    [file] => /sitemapindex.xml

                    [status] => failure

                    [file_exists] => false

                )

 

        )

 

)

ERROR: Google Product Sitemap Generation FAILED!

 

ERROR: Google Category Sitemap Generation FAILED!

 

ERROR: Google Sitemap Index Generation FAILED!

 

Array

(

    [QUERY] => Array

        (

            [PRODUCTS] => Array

                (

                    [sTATUS] => success

                    [NUM_ROWS] => 4118

                )

 

            [CATEOGRY] => Array

                (

                    [sTATUS] => success

                    [NUM_ROWS] => 333

                )

 

        )

 

    [sAVE_FILE_XML] => Array

        (

            [0] => Array

                (

                    [file] => /sitemap_mobileproducts.xml

                    [status] => failure

                    [file_exists] => false

                )

 

            [1] => Array

                (

                    [file] => /sitemap_mobilecategories.xml

                    [status] => failure

                    [file_exists] => false

                )

 

            [2] => Array

                (

                    [file] => /sitemap_mobileindex.xml

                    [status] => failure

                    [file_exists] => false

                )

 

        )

 

)

Completed!

 

Share this post


Link to post
Share on other sites

 

$this->savepath = '/home/topgoth/public_html/';
Please post the results of the first one either so I can get an idea of what the problem is.

 

Jack

 

 

that also worked for me

 

will read rest of thread in a bit


Quo plus habent, eo plus cupiunt

Share this post


Link to post
Share on other sites

72 pages..... nah dont think so.... but paths does not change so i'm pleased


Quo plus habent, eo plus cupiunt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×