Google XML Sitemap SEO
#1
Posted 02 March 2009, 18:41
This version includes the following changes:
- Manufacturers site map
- Specials site map
- Human readable output
The feeds automatically adjust to match the urls if Ultimate SEO is installed, thus preventing some blocked url's by the search engines.
If you have version 1.3 of the above contribution installed, you can just upload all of the files to update to this version. Be sure to run the sitemap afterwards though.
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#2
Posted 02 March 2009, 22:55
Jack_mcs, on Mar 2 2009, 01:41 PM, said:
This is exactly what I'm looking for, thanks! I have run into a problem, though. I have Ultimate SEO URLs 2.6 installed and I'm receiving a few errors when I run the sitemap generator. The errors appear to be coming from the Ultimate SEO contrib though. So is Google sitemap compatible with Ultimate 2.6 ? The errors are below:
Notice: Undefined variable: connection in /Users/XenoPhage/Sites/osc/includes/classes/seo.class.php on line 841
Notice: Undefined offset: -1 in /Users/XenoPhage/Sites/osc/includes/classes/seo.class.php on line 1156
Notice: Undefined variable: _sid in /Users/XenoPhage/Sites/osc/includes/classes/seo.class.php on line 799
Thanks!
#3
Posted 02 March 2009, 23:22
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#4
Posted 03 March 2009, 17:01
Warning: fopen(/sitemapproducts.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 300 ERROR: Google Product Sitemap Generation FAILED! Warning: fopen(/sitemapcategories.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 300 ERROR: Google Category Sitemap Generation FAILED! Warning: fopen(/sitemapmanufacturers.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 300 ERROR: Google Manufacturer Sitemap Generation FAILED! Warning: fopen(/sitemapspecials.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 300 ERROR: Google Specials Sitemap Generation FAILED! Warning: Invalid argument supplied for foreach() in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 384 Warning: fopen(/sitemapindex.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 300 ERROR: Google Sitemap Index Generation FAILED! Array ( [QUERY] => Array ( [PRODUCTS] => Array ( [STATUS] => success [NUM_ROWS] => 881 ) [CATEOGRY] => Array ( [STATUS] => success [NUM_ROWS] => 67 ) [MANUFACTURERS] => Array ( [STATUS] => success [NUM_ROWS] => 203 ) [SPECIALS] => Array ( [STATUS] => success [NUM_ROWS] => 6 ) ) [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] => /sitemapmanufacturers.xml [status] => failure [file_exists] => false ) [3] => Array ( [file] => /sitemapspecials.xml [status] => failure [file_exists] => false ) [4] => Array ( [file] => /sitemapindex.xml [status] => failure [file_exists] => false ) ) )
#5
Posted 03 March 2009, 18:34
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#6
Posted 03 March 2009, 18:50
Yes, they are all set to 777.
#7
Posted 03 March 2009, 19:24
$filename .= '.xml';and add this after it
echo 'Opening '.$filename. '<br>FS_CAT '.DIR_FS_CATALOG. '<br>Server ' . HTTP_SERVER . '<br>Save Path '. $this->savepath . '<br>WS_CAT '. DIR_WS_HTTP_CATALOG.' <br>';Upload the changed file and run the code by going to http://yourdomain.com/googlesitemap/index.php. Post the output here.
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#8
Posted 03 March 2009, 19:48
Opening /sitemapproducts.xml FS_CAT /home/topgoth/public_html/ Server http://www.topgoth.co.uk Save Path / WS_CAT / Warning: fopen(/sitemapproducts.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 303 ERROR: Google Product Sitemap Generation FAILED! Opening /sitemapcategories.xml FS_CAT /home/topgoth/public_html/ Server http://www.topgoth.co.uk Save Path / WS_CAT / Warning: fopen(/sitemapcategories.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 303 ERROR: Google Category Sitemap Generation FAILED! Opening /sitemapmanufacturers.xml FS_CAT /home/topgoth/public_html/ Server http://www.topgoth.co.uk Save Path / WS_CAT / Warning: fopen(/sitemapmanufacturers.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 303 ERROR: Google Manufacturer Sitemap Generation FAILED! Opening /sitemapspecials.xml FS_CAT /home/topgoth/public_html/ Server http://www.topgoth.co.uk Save Path / WS_CAT / Warning: fopen(/sitemapspecials.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 303 ERROR: Google Specials Sitemap Generation FAILED! Warning: Invalid argument supplied for foreach() in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 387 Opening /sitemapindex.xml FS_CAT /home/topgoth/public_html/ Server http://www.topgoth.co.uk Save Path / WS_CAT / Warning: fopen(/sitemapindex.xml) [function.fopen]: failed to open stream: Permission denied in /home/topgoth/public_html/googlesitemap/sitemap.class.php on line 303 ERROR: Google Sitemap Index Generation FAILED! Array ( [QUERY] => Array ( [PRODUCTS] => Array ( [STATUS] => success [NUM_ROWS] => 881 ) [CATEOGRY] => Array ( [STATUS] => success [NUM_ROWS] => 67 ) [MANUFACTURERS] => Array ( [STATUS] => success [NUM_ROWS] => 203 ) [SPECIALS] => Array ( [STATUS] => success [NUM_ROWS] => 6 ) ) [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] => /sitemapmanufacturers.xml [status] => failure [file_exists] => false ) [3] => Array ( [file] => /sitemapspecials.xml [status] => failure [file_exists] => false ) [4] => Array ( [file] => /sitemapindex.xml [status] => failure [file_exists] => false ) ) )
#9
Posted 03 March 2009, 23:53
$this->savepath = DIR_FS_CATALOG . (substr(DIR_FS_CATALOG, 0, -1) !== '/') ? '/' : '';Below it, paste the following:
$this->savepath = DIR_FS_CATALOG . (substr(DIR_FS_CATALOG, 0, -1) !== '/') ? '/' : ''; echo 'set '.$this->savepath.'<br>';Upload and see what happens. If that still fails, remove that change and use this instead
$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
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#10
Posted 04 March 2009, 17:16
ERROR: Google Product Sitemap Generation FAILED! ERROR: Google Category Sitemap Generation FAILED! ERROR: Google Manufacturer Sitemap Generation FAILED! ERROR: Google Specials Sitemap Generation FAILED! ERROR: Google Sitemap Index Generation FAILED! Array ( [QUERY] => Array ( [PRODUCTS] => Array ( [STATUS] => success [NUM_ROWS] => 366 ) [CATEOGRY] => Array ( [STATUS] => success [NUM_ROWS] => 58 ) [MANUFACTURERS] => Array ( [STATUS] => success [NUM_ROWS] => 11 ) [SPECIALS] => Array ( [STATUS] => success [NUM_ROWS] => 1 ) ) [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] => /sitemapmanufacturers.xml [status] => failure [file_exists] => false ) [3] => Array ( [file] => /sitemapindex.xml [status] => failure [file_exists] => false ) ) )
#11
Posted 04 March 2009, 19:07
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#12
Posted 04 March 2009, 23:05
I had the same problem as Benjjj6
What I did was enter the code from your post 7
and change the lines from 263-266 to this:
$this->savepath .= (substr($this->savepath, 0, -1) !== '') ? '' : ''; //append a slash if needed
}
else
$this->savepath = DIR_FS_CATALOG . (substr(DIR_FS_CATALOG, 0, -1) !== '') ? '' : '';
It now works, great contribution
#13
Posted 05 March 2009, 00:06
Jack_mcs, on Mar 3 2009, 11:53 PM, said:
$this->savepath = DIR_FS_CATALOG . (substr(DIR_FS_CATALOG, 0, -1) !== '/') ? '/' : '';Below it, paste the following:
$this->savepath = DIR_FS_CATALOG . (substr(DIR_FS_CATALOG, 0, -1) !== '/') ? '/' : ''; echo 'set '.$this->savepath.'<br>';Upload and see what happens. If that still fails, remove that change and use this instead
$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
Hi Jack,
The first suggestion caused the same error, however the second solution solved the problem. The sitemap is now created successfully!
Thank you,
Ben
#14
Posted 05 March 2009, 00:35
Benjjj6, on Mar 4 2009, 07:06 PM, said:
The first suggestion caused the same error, however the second solution solved the problem. The sitemap is now created successfully!
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#15
Posted 05 March 2009, 01:51
Jack_mcs, on Mar 4 2009, 07:35 PM, said:
Jack
I haven't looked deep into this, but what path are you after? Why isn't DIR_FS_CATALOG sufficient? That resolves to the proper location for me ... ?
#16
Posted 05 March 2009, 02:33
if ($pos = strpos(DIR_FS_CATALOG, "googlesitemap") !== FALSE)If anyone who is having the problem wants to try, please change that line to
if (($pos = strpos(DIR_FS_CATALOG, "googlesitemap")) !== FALSE)
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#17
Posted 06 March 2009, 01:36
Opening /home/content/u/n/i/uniquexme/htmlsitemapproducts.xml FS_CAT /home/content/u/n/i/uniquexme/html/ Server http://www.hobby-asia.com Save Path /home/content/u/n/i/uniquexme/html WS_CAT / Write /home/content/u/n/i/uniquexme/htmlsitemapproducts.xml Generated Google Product Sitemap Successfully Opening /home/content/u/n/i/uniquexme/htmlsitemapcategories.xml FS_CAT /home/content/u/n/i/uniquexme/html/ Server http://www.hobby-asia.com Save Path /home/content/u/n/i/uniquexme/html WS_CAT / Write /home/content/u/n/i/uniquexme/htmlsitemapcategories.xml Generated Google Category Sitemap Successfully Opening /home/content/u/n/i/uniquexme/htmlsitemapmanufacturers.xml FS_CAT /home/content/u/n/i/uniquexme/html/ Server http://www.hobby-asia.com Save Path /home/content/u/n/i/uniquexme/html WS_CAT / Write /home/content/u/n/i/uniquexme/htmlsitemapmanufacturers.xml Generated Google Manufacturer Sitemap Successfully ERROR: Google Specials Sitemap Generation FAILED! Opening /home/content/u/n/i/uniquexme/htmlsitemapindex.xml FS_CAT /home/content/u/n/i/uniquexme/html/ Server http://www.hobby-asia.com Save Path /home/content/u/n/i/uniquexme/html WS_CAT / Write /home/content/u/n/i/uniquexme/htmlsitemapindex.xml Generated Google Sitemap Index Successfully Array ( [QUERY] => Array ( [PRODUCTS] => Array ( [STATUS] => success [NUM_ROWS] => 216 ) [CATEOGRY] => Array ( [STATUS] => success [NUM_ROWS] => 24 ) [MANUFACTURERS] => Array ( [STATUS] => success [NUM_ROWS] => 23 ) [SPECIALS] => Array ( [STATUS] => success [NUM_ROWS] => 0 ) ) [SAVE_FILE_XML] => Array ( [0] => Array ( [file] => /home/content/u/n/i/uniquexme/htmlsitemapproducts.xml [status] => success [file_exists] => true ) [1] => Array ( [file] => /home/content/u/n/i/uniquexme/htmlsitemapcategories.xml [status] => success [file_exists] => true ) [2] => Array ( [file] => /home/content/u/n/i/uniquexme/htmlsitemapmanufacturers.xml [status] => success [file_exists] => true ) [3] => Array ( [file] => /home/content/u/n/i/uniquexme/htmlsitemapindex.xml [status] => success [file_exists] => true ) ) )
Edited by uniquexme, 06 March 2009, 01:47.
#18
Posted 06 March 2009, 01:45
Quote
and when i tried to view the XML files by keying in www.hobby-asia.com/sitemapindex.xml it shows this :
Quote
Location: http://www.hobby-asia.com/sitemapindex.xml
Line Number 1, Column 1:
#19
Posted 06 March 2009, 02:59
uniquexme, on Mar 5 2009, 08:36 PM, said:
Opening /home/content/u/n/i/uniquexme/htmlsitemapproducts.xml
/home/content/u/n/i/uniquexme/html/sitemapproducts.xmlNotice the missing /. So none of your sitemap files are being saved since the path is invalid. Please post the section of the file you changed (near the top) so I can see what the problem is.
Jack
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#20
Posted 06 March 2009, 03:09
from
$this->savepath = '/home/topgoth/public_html/';
to
$this->savepath = '/home/content/u/n/i/uniquexme/html/';
well, just now i forgot to include the "/" after html. now that i correct it, it still shows the same error.
Opening /home/content/u/n/i/uniquexme/html/sitemapproducts.xml FS_CAT /home/content/u/n/i/uniquexme/html/ Server http://www.hobby-asia.com Save Path /home/content/u/n/i/uniquexme/html/ WS_CAT / Write /home/content/u/n/i/uniquexme/html/sitemapproducts.xml Generated Google Product Sitemap Successfully Opening /home/content/u/n/i/uniquexme/html/sitemapcategories.xml FS_CAT /home/content/u/n/i/uniquexme/html/ Server http://www.hobby-asia.com Save Path /home/content/u/n/i/uniquexme/html/ WS_CAT / Write /home/content/u/n/i/uniquexme/html/sitemapcategories.xml Generated Google Category Sitemap Successfully Opening /home/content/u/n/i/uniquexme/html/sitemapmanufacturers.xml FS_CAT /home/content/u/n/i/uniquexme/html/ Server http://www.hobby-asia.com Save Path /home/content/u/n/i/uniquexme/html/ WS_CAT / Write /home/content/u/n/i/uniquexme/html/sitemapmanufacturers.xml Generated Google Manufacturer Sitemap Successfully ERROR: Google Specials Sitemap Generation FAILED! Opening /home/content/u/n/i/uniquexme/html/sitemapindex.xml FS_CAT /home/content/u/n/i/uniquexme/html/ Server http://www.hobby-asia.com Save Path /home/content/u/n/i/uniquexme/html/ WS_CAT / Write /home/content/u/n/i/uniquexme/html/sitemapindex.xml Generated Google Sitemap Index Successfully Array ( [QUERY] => Array ( [PRODUCTS] => Array ( [STATUS] => success [NUM_ROWS] => 216 ) [CATEOGRY] => Array ( [STATUS] => success [NUM_ROWS] => 24 ) [MANUFACTURERS] => Array ( [STATUS] => success [NUM_ROWS] => 23 ) [SPECIALS] => Array ( [STATUS] => success [NUM_ROWS] => 0 ) ) [SAVE_FILE_XML] => Array ( [0] => Array ( [file] => /home/content/u/n/i/uniquexme/html/sitemapproducts.xml [status] => success [file_exists] => true ) [1] => Array ( [file] => /home/content/u/n/i/uniquexme/html/sitemapcategories.xml [status] => success [file_exists] => true ) [2] => Array ( [file] => /home/content/u/n/i/uniquexme/html/sitemapmanufacturers.xml [status] => success [file_exists] => true ) [3] => Array ( [file] => /home/content/u/n/i/uniquexme/html/sitemapindex.xml [status] => success [file_exists] => true ) ) )














