Google XML Sitemap SEO
#1141
Posted 29 January 2012, 05:04
Thank you so much for this contribution I really appreciate it,
But after I installed it I tried to run it and it wouldn't run I changed all the setting the instructions talk about but I get this.
ERROR: Google Product Sitemap Generation FAILED!
ERROR: Google Category Sitemap Generation FAILED!
Opening /sitemapmanufacturers.xml
FS_CAT /hermes/web08/b2492/moo.oursacredgardencom/oursacredgarden.com/
Server http://oursacredgarden.com
Save Path /
WS_CAT /
Warning: fopen(/sitemapmanufacturers.xml) [function.fopen]: failed to open stream: Permission denied in /hermes/web08/b2492/moo.oursacredgardencom/oursacredgarden.com/googlesitemap/sitemap.class_Alternate.php on line 353
ERROR: Google Manufacturers Sitemap Generation FAILED!
Google Sitemap Specials not generated - no specials found!
ERROR: Google Pages Sitemap Generation FAILED!
Opening /sitemapindex.xml
FS_CAT /hermes/web08/b2492/moo.oursacredgardencom/oursacredgarden.com/
Server http://oursacredgarden.com
Save Path /
WS_CAT /
Warning: fopen(/sitemapindex.xml) [function.fopen]: failed to open stream: Permission denied in /hermes/web08/b2492/moo.oursacredgardencom/oursacredgarden.com/googlesitemap/sitemap.class_Alternate.php on line 353
ERROR: Google Sitemap Index Generation FAILED!
Array
(
[QUERY] => Array
(
[PRODUCTS] => Array
(
[STATUS] => success
[NUM_ROWS] => 0
)
[CATEOGRY] => Array
(
[STATUS] => success
[NUM_ROWS] => 0
)
[MANUFACTURERS] => Array
(
[STATUS] => success
[NUM_ROWS] => 10
)
[SPECIALS] => Array
(
[STATUS] => success
[NUM_ROWS] => 0
)
)
[SAVE_FILE_XML] => Array
(
[0] => Array
(
[file] => /sitemapmanufacturers.xml
[status] => failure
[file_exists] => false
)
[1] => Array
(
[file] => /sitemapindex.xml
[status] => failure
[file_exists] => false
)
)
)
I have the file permissions set to 755 (same as my images) but it's telling me it doesn't have permission... I'm confused any help would be so great...
Thank You
Adamanto75
#1142
Posted 29 January 2012, 15:48
Adamanto75, on 29 January 2012, 05:04, said:
Thank you so much for this contribution I really appreciate it,
But after I installed it I tried to run it and it wouldn't run I changed all the setting the instructions talk about but I get this.
ERROR: Google Product Sitemap Generation FAILED!
ERROR: Google Category Sitemap Generation FAILED!
Opening /sitemapmanufacturers.xml
FS_CAT /hermes/web08/b2492/moo.oursacredgardencom/oursacredgarden.com/
Server http://oursacredgarden.com
Save Path /
WS_CAT /
I have the file permissions set to 755 (same as my images) but it's telling me it doesn't have permission... I'm confused any help would be so great...
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
#1143
Posted 06 February 2012, 11:12
Edited by linux4ever, 06 February 2012, 11:19.
#1144
Posted 06 February 2012, 12:02
Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 1778 is not allowed to access / owned by uid 0 in /home4/todopiel/public_html/googlesitemap/sitemap.class_Alternate.php on line 353
#1145
Posted 06 February 2012, 12:46
linux4ever, on 06 February 2012, 12:02, said:
Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 1778 is not allowed to access / owned by uid 0 in /home4/todopiel/public_html/googlesitemap/sitemap.class_Alternate.php on line 353
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
#1146
Posted 06 February 2012, 13:13
I've solved the problem. I had the same problem as many people commented in this thread.
Warning: fopen(/sitemapindex.xml) [function.fopen]: failed to open stream: Permission denied
I fixed it changing line 139 in index.php :
$mapfile = ((GOOGLE_XML_SITEMAP_SEO != 'Standard') ? 'sitemap_Alternate.class.php' : 'sitemap.class.php');
for this other:
$mapfile = ((GOOGLE_XML_SITEMAP_SEO != 'Standard') ? 'sitemap.class.php' : 'sitemap.class_Alternate.php');
Now generates sitemaps perfectly. I do not know if it is correct but it works.
I have yet to solve that not shows admin-> Configuration-> XML Google SEO.
Sorry for my English.
#1147
Posted 09 February 2012, 20:12
Is there a way for the sitemap to be generated using FWRMedia Ultimate SEO URL's instead of the strict Oscommerce path?
Google may find it odd to keep submitting URL's that all get 301 redirected.
Thanks,
Don
#1148
Posted 09 February 2012, 23:40
NodsDorf, on 09 February 2012, 20:12, said:
Is there a way for the sitemap to be generated using FWRMedia Ultimate SEO URL's instead of the strict Oscommerce path?
Google may find it odd to keep submitting URL's that all get 301 redirected.
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
#1149
Posted 10 February 2012, 19:48
Jack_mcs, on 09 February 2012, 23:40, said:
Didn't realize you both had different versions of the original from Chemo. Either way, I rolled back his, installed yours and everything is perfect.
Thanks, yet again.
Don
#1150
Posted 11 February 2012, 01:00
NodsDorf, on 10 February 2012, 19:48, said:
Thanks, yet again.
Don
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
#1151
Posted 14 February 2012, 07:44
The latest version worked fine until I added a couple hundred thousand products
if (GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC == 'true')
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>';
if ($fp = fopen($filename, 'w+')){
echo 'Write '.$filename.'<br>';
fwrite($fp, $data);
fclose($fp);
$this->debug['SAVE_FILE_XML'][] = array('file' => $filename, 'status' => 'success', 'file_exists' => 'true');
return true;
} else {
$file_check = file_exists($filename) ? 'true' : 'false';
$this->debug['SAVE_FILE_XML'][] = array('file' => $filename, 'status' => 'failure', 'file_exists' => $file_check);
return false;
}
break;
Below is a sample of the output in the error log:
PHP Warning: fopen(/var/www/html/sitemapproducts1.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /var/www/html/googlesitemap/sitemap.class.php on line 344 File does not exist: /var/www/html/sitemapindex.html PHP Warning: fopen(/var/www/html/sitemapproducts2.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /var/www/html/googlesitemap/sitemap.class.php on line 344 PHP Warning: fopen(/var/www/html/sitemapproducts3.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /var/www/html/googlesitemap/sitemap.class.php on line 344 PHP Warning: fopen(/var/www/html/sitemapproducts4.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /var/www/html/googlesitemap/sitemap.class.php on line 344I've tried adjusting the resources in the php.ini file because I was getting 'exhaustion' errors but the above errors persist even on the alternate state. I searched this thread but don't really understand the solutions others had.
Thanks for your help.
#1152
Posted 14 February 2012, 13:20
discxpress, on 14 February 2012, 07:44, said:
The latest version worked fine until I added a couple hundred thousand products
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
#1153
Posted 14 February 2012, 16:07
Thanks for your reply. I checked the permissions of all sitemap files and they're set to 777, the same as the images folder. You mentioned my host. The last time my site was that size, I was kicked off because it was consuming too many resources.
Now I'm on a dedicated server. When I was on a shared server, the sitemaps generated with no problem. So maybe it's how the server is setup. What can I check on my server that would cause this problem?
Thanks for your time.
#1154
Posted 16 February 2012, 23:42
Help me understand this. While I was trying resolve an issue with Google XML Sitemap SEO, my server's host had began migrating my server to a new company. Now my site won't load. They blamed it on a script being called twice and blocking two ports. Also, they say it's something to do with httpd. Here's what the tech said in a support ticket:
Quote
The reason why httpd was not serving content is because it had stopped, further research on the matter showed that there were two httpd services that were using ports 80 and 443.
It appears that a cronjob or script called the first httpd session with some additional command line switches which at the end called another httpd session, since both were blocking/using ports 80 and 443 the httpd process that were supposed to be serving the content could not start, after stopping the first two processes, the "legit" httpd process were able to start.
Please check wether you have scripts starting from rc.local, crontabs, etc that involve, one way or another the usage of httpd processes.
Thanks for reading.
Edited by discxpress, 16 February 2012, 23:44.
#1155
Posted 17 February 2012, 04:36
discxpress, on 16 February 2012, 23:42, said:
Help me understand this. While I was trying resolve an issue with Google XML Sitemap SEO, my server's host had began migrating my server to a new company. Now my site won't load. They blamed it on a script being called twice and blocking two ports. Also, they say it's something to do with httpd. Here's what the tech said in a support ticket:
Since this contrib and Configuration Cache was the last scripts I attempted to run (if it's a script), I decided to start here so I can began to see if they're trying to avoid blame.
Thanks for reading.
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
#1156
Posted 25 February 2012, 18:11
I've just switched from 1.3 to 1.5. All files generated fine. I have one notice when executing, at the top of /googlesitemap/index.php
Notice: Constant MODULE_PAYMENT_PAYPAL_DP_NEW_ACCT_NOTIFY already defined in .../googlesitemap/index.php on line 58
my Line 58: define($configuration['cfgKey'], $configuration['cfgValue']);
I have no clue what to check, and I relaize its probably not directly related to this module. A google search of the generic error yields 0 results. Your direction or input is appreciated.
#1157
Posted 25 February 2012, 18:38
1. sitemapcategories.xml has each category listed twice. Not sure why
2. It seems because I have SPPC and Price break for SPPC installed, sitemapspecials.xml is listing each product special 7 times (once for each customer type I assume). Is their a way to limit that to just the public "retail" designation....
Thaks again
#1158
Posted 26 February 2012, 00:56
Roaddoctor, on 25 February 2012, 18:11, said:
I've just switched from 1.3 to 1.5. All files generated fine. I have one notice when executing, at the top of /googlesitemap/index.php
Notice: Constant MODULE_PAYMENT_PAYPAL_DP_NEW_ACCT_NOTIFY already defined in .../googlesitemap/index.php on line 58
my Line 58: define($configuration['cfgKey'], $configuration['cfgValue']);
I have no clue what to check, and I relaize its probably not directly related to this module. A google search of the generic error yields 0 results. Your direction or input is appreciated.
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
#1159
Posted 26 February 2012, 00:58
Roaddoctor, on 25 February 2012, 18:38, said:
1. sitemapcategories.xml has each category listed twice. Not sure why
2. It seems because I have SPPC and Price break for SPPC installed, sitemapspecials.xml is listing each product special 7 times (once for each customer type I assume). Is their a way to limit that to just the public "retail" designation....
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
#1160
Posted 26 February 2012, 04:30
Jack_mcs, on 26 February 2012, 00:58, said:
Jack, I've tried to sort this myself. Can you tell me if this is correct:
To fix duplicate categories in sitemapcategories.xml, on multi language shop
In /googlesitemap/sitemap.class.php
* Funciton to generate category sitemap data
* @[member='author'] Bobby Easland
* @version 1.1
* @[member='Return'] boolean
*/
function GenerateCategorySitemap($languages_id) {
$quotes = (defined('QUOTES_CATEGORY_NAME') ? " where cd.categories_name NOT LIKE '" . QUOTES_CATEGORY_NAME . "' " : '');
$sql = "SELECT c.categories_id as cID, c.date_added, c.last_modified as last_mod
FROM " . TABLE_CATEGORIES . " c left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on c.categories_id = cd.categories_id
and cd.language_id = '" . (int)$languages_id . "'
" . $quotes . "
ORDER BY c.parent_id ASC, c.sort_order ASC, c.categories_id ASC";
and in /googlesitemap/index.php, changle line 157
- if ($google->GenerateCategorySitemap()){
+ if ($google->GenerateCategorySitemap($languages_id)){
That seems to have done it. Is there a better / more correct way?
Next, I will try to resolve the SPPC bug for specials
Edited by Roaddoctor, 26 February 2012, 04:31.














