Jump to content



Photo
- - - - -

Google XML Sitemap SEO


  • Please log in to reply
1449 replies to this topic

#1441   mr_absinthe

mr_absinthe
  • Members
  • 487 posts
  • Real Name:Alex
  • Location:London, UK

Posted 09 June 2015 - 20:03

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

#1442   Hrnkas

Hrnkas
  • Members
  • 1 posts
  • Real Name:Bojan Hrnkas

Posted 25 June 2015 - 15:21

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.


#1443   Jack_mcs

Jack_mcs
  • Members
  • 27,091 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 25 June 2015 - 16:36

@Hrnkas You are correct. Good catch. Thank you for posting the fix. :) 



#1444   aurelou

aurelou
  • Members
  • 15 posts
  • Real Name:AurĂ©lie

Posted 27 June 2015 - 12:34

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.xml

FS_CAT    /homez.331/mysite/www/

Server    http://www.mysite.eu

Save Path /

WS_CAT    /

ERROR: Google Product Sitemap Generation FAILED!

Opening   /sitemapcategories.xml

FS_CAT    /homez.331/mysite/www/

Server    http://www.mysite.eu

Save Path /

WS_CAT    /

ERROR: Google Category Sitemap Generation FAILED!

Opening   /sitemapimages.xml

FS_CAT    /homez.331/mysite/www/

Server    http://www.mysite.eu

Save Path /

WS_CAT    /

ERROR: Google Images Sitemap Generation FAILED!

Opening   /sitemappages.xml

FS_CAT    /homez.331/mysite/www/

Server    http://www.mysite.eu

Save Path /

WS_CAT    /

ERROR: Google Pages Sitemap Generation FAILED!

Opening   /sitemapspecials.xml

FS_CAT    /homez.331/mysite/www/

Server    http://www.mysite.eu

Save Path /

WS_CAT    /

ERROR: Google Specials Sitemap Generation FAILED!

Opening   /sitemapindex.xml

FS_CAT    /homez.331/mysite/www/

Server    http://www.mysite.eu

Save 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.



#1445   Jack_mcs

Jack_mcs
  • Members
  • 27,091 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 27 June 2015 - 13:12

@aurelou Did you apply the change posted two posts above yours?



#1446   aurelou

aurelou
  • Members
  • 15 posts
  • Real Name:AurĂ©lie

Posted 27 June 2015 - 13:21

@Jack_mcs Thank you very much I made the changes and it works fine :)



#1447   ringo667

ringo667
  • Members
  • 30 posts
  • Real Name:Chris
  • Gender:Male

Posted 27 June 2015 - 17:09

My categories stie mal generate double entrys, can someone help?

Attached Files



#1448   Jack_mcs

Jack_mcs
  • Members
  • 27,091 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 27 June 2015 - 18:12

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



#1449   ringo667

ringo667
  • Members
  • 30 posts
  • Real Name:Chris
  • Gender:Male

Posted 28 June 2015 - 08:35

http://short4u.de/558fb1c4eb42b



#1450   Jack_mcs

Jack_mcs
  • Members
  • 27,091 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 28 June 2015 - 13:54

@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.