Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google XML Sitemap


iscnitzan

Recommended Posts

Hello,

 

After installing this contrib to my site I get the following error when trying to create the maps

 

Warning: main(includes/languages/english/FILENAME_GOOGLE_SITEMAPS): failed to open stream: No such file or directory in /home/freshnup/public_html/shop/sitemaps.index.php on line 33

 

Warning: main(includes/languages/english/FILENAME_GOOGLE_SITEMAPS): failed to open stream: No such file or directory in /home/freshnup/public_html/shop/sitemaps.index.php on line 33

 

Fatal error: main(): Failed opening required 'includes/languages/english/FILENAME_GOOGLE_SITEMAPS' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/freshnup/public_html/shop/sitemaps.index.php on line 33

 

 

I checked - all the files exist !!!

 

Can anyone think of what's going wrong? I'm lost.....

Link to comment
Share on other sites

Hello,

 

After installing this contrib to my site I get the following error when trying to create the maps

 

Warning: main(includes/languages/english/FILENAME_GOOGLE_SITEMAPS): failed to open stream: No such file or directory in /home/freshnup/public_html/shop/sitemaps.index.php on line 33

 

Warning: main(includes/languages/english/FILENAME_GOOGLE_SITEMAPS): failed to open stream: No such file or directory in /home/freshnup/public_html/shop/sitemaps.index.php on line 33

 

Fatal error: main(): Failed opening required 'includes/languages/english/FILENAME_GOOGLE_SITEMAPS' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/freshnup/public_html/shop/sitemaps.index.php on line 33

I checked - all the files exist !!!

 

Can anyone think of what's going wrong? I'm lost.....

 

Make sure you have both of these: (1 my be missing from the install directions?)

 

Add in /catalog/includes/filenames

// Google site maps
define('FILENAME_GOOGLE_SITEMAPS', 'sitemaps.index.php');
//Fine

 

 

and in /catalog/admin/includes/filenames

// Google XML Sitemap
define('FILENAME_GOOGLE_SITEMAP', 'googlesitemap.php');
// Fine

 

I think that may solve your problem.

--KJ

Edited by Top_Speed

define('PROJECTS', 'Something that goes on forever!');

Link to comment
Share on other sites

Make sure you have both of these: (1 my be missing from the install directions?)

 

Add in /catalog/includes/filenames

// Google site maps
define('FILENAME_GOOGLE_SITEMAPS', 'sitemaps.index.php');
//Fine

and in /catalog/admin/includes/filenames

// Google XML Sitemap
define('FILENAME_GOOGLE_SITEMAP', 'googlesitemap.php');
// Fine

 

I think that may solve your problem.

--KJ

 

 

You are absolutely correct!

 

The instructions read

 

Add in /catalog/includes/filenames

// Google site maps
define('FILENAME_GOOGLE_SITEMAPS', 'googlesitemap.php');
//Fine

and in /catalog/admin/includes/filenames

// Google XML Sitemap
define('FILENAME_GOOGLE_SITEMAP', 'googlesitemap.php');
// Fine

 

Instead of what you indicated which actually works!

 

Many Thanks! :thumbsup:

Link to comment
Share on other sites

I am getting this error when trying to run this from admin:

 

 

Warning: fopen(/home/virtual/site53/fst/var/www/html/sitemapproducts.xml): failed to open stream: Permission denied in /home/virtual/site53/fst/var/www/html/sitemap.class.php on line 592

ERROR: Google Product Sitemap Generation FAILED!

 

 

Warning: fopen(/home/virtual/site53/fst/var/www/html/sitemapcategories.xml): failed to open stream: Permission denied in /home/virtual/site53/fst/var/www/html/sitemap.class.php on line 592

ERROR: Google Category Sitemap Generation FAILED!

 

 

Warning: fopen(/home/virtual/site53/fst/var/www/html/sitemapindex.xml): failed to open stream: Permission denied in /home/virtual/site53/fst/var/www/html/sitemap.class.php on line 592

ERROR: Google Sitemap Index Generation FAILED!

Link to comment
Share on other sites

I am getting this error when trying to run this from admin:

Warning: fopen(/home/virtual/site53/fst/var/www/html/sitemapproducts.xml): failed to open stream: Permission denied in /home/virtual/site53/fst/var/www/html/sitemap.class.php on line 592

ERROR: Google Product Sitemap Generation FAILED!

Warning: fopen(/home/virtual/site53/fst/var/www/html/sitemapcategories.xml): failed to open stream: Permission denied in /home/virtual/site53/fst/var/www/html/sitemap.class.php on line 592

ERROR: Google Category Sitemap Generation FAILED!

Warning: fopen(/home/virtual/site53/fst/var/www/html/sitemapindex.xml): failed to open stream: Permission denied in /home/virtual/site53/fst/var/www/html/sitemap.class.php on line 592

ERROR: Google Sitemap Index Generation FAILED!

 

 

Yap - this happen to me too.

 

What you need to do is create these files first, then execute the script.

 

Simply go to the folder where your site maps will be (where /www/html/ is) and make these 3 files (make them blank):

 

sitemapproducts.xml

sitemapcategories.xml

sitemapindex.xml

 

Then - just run the script again.

It should work.

Link to comment
Share on other sites

I have added this contribution and now all of a sudden my Authorize.net does not work. This is the only change I have made to my website in the last 24 hours and now I can not accept cc. This is very weird and very bad.

 

Do these files change any kind of configs on the backend that would cause this???

Link to comment
Share on other sites

I have added this contribution and now all of a sudden my Authorize.net does not work. This is the only change I have made to my website in the last 24 hours and now I can not accept cc. This is very weird and very bad.

 

Do these files change any kind of configs on the backend that would cause this???

 

It was a weird server timing issue that just happened to happen right after I installed this. Everything is back to working.

Link to comment
Share on other sites

Yap - this happen to me too.

 

What you need to do is create these files first, then execute the script.

 

Simply go to the folder where your site maps will be (where /www/html/ is) and make these 3 files (make them blank):

 

sitemapproducts.xml

sitemapcategories.xml

sitemapindex.xml

 

Then - just run the script again.

It should work.

 

Make sure the file permission is set to 777 on all three files so they can be writen to. I just found that out. Thanks for the mod.

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