Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

hi,

 

i installed this but i am getting this error:

 

Warning:  fopen(/var/www/vhosts/okatent.com/httpdocs//sitemapproducts.xml): failed to open stream: Permission denied in /var/www/vhosts/okatent.com/httpdocs/sitemap.class.php on line 592

ERROR: Google Product Sitemap Generation FAILED!

ERROR: Google Category Sitemap Generation FAILED!



Warning:  fopen(/var/www/vhosts/okatent.com/httpdocs//sitemapindex.xml): failed to open stream: Permission denied in /var/www/vhosts/okatent.com/httpdocs/sitemap.class.php on line 592

ERROR: Google Sitemap Index Generation FAILED!

Array
(
[QUERY] => Array
	(
		[PRODUCTS] => Array
			(
				[STATUS] => success
				[NUM_ROWS] => 26
			)

		[CATEOGRY] => Array
			(
				[STATUS] => success
				[NUM_ROWS] => 1
			)

	)

[SAVE_FILE_XML] => Array
	(
		[0] => Array
			(
				[file] => /var/www/vhosts/okatent.com/httpdocs//sitemapproducts.xml
				[status] => failure
				[file_exists] => true
			)

		[1] => Array
			(
				[file] => /var/www/vhosts/okatent.com/httpdocs//sitemapindex.xml
				[status] => failure
				[file_exists] => true
			)

	)

)

 

and as you can see here /var/www/vhosts/okatent.com/httpdocs//sitemapproducts.xml

there are 2 slashes instead of one. then i found this in sitemap.class.php

 

function GoogleSitemap($host, $user, $db, $pass){

 

$this->DB = new MySQL_Database($host, $user, $db, $pass);

 

$this->filename = "sitemap";

 

$this->savepath = DIR_FS_CATALOG;

 

$this->base_url = HTTP_SERVER . DIR_WS_HTTP_CATALOG;

 

$this->debug = array();

 

and in my config file i found this:

 

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');

and i remove the slash but it still gives me same mistake:

 

Warning:  fopen(/var/www/vhosts/okatent.com/httpdocs/sitemapproducts.xml): failed to open stream: Permission denied in /var/www/vhosts/okatent.com/httpdocs/sitemap.class.php on line 592

ERROR: Google Product Sitemap Generation FAILED!

ERROR: Google Category Sitemap Generation FAILED!



Warning:  fopen(/var/www/vhosts/okatent.com/httpdocs/sitemapindex.xml): failed to open stream: Permission denied in /var/www/vhosts/okatent.com/httpdocs/sitemap.class.php on line 592

ERROR: Google Sitemap Index Generation FAILED!

Array
(
[QUERY] => Array
	(
		[PRODUCTS] => Array
			(
				[STATUS] => success
				[NUM_ROWS] => 26
			)

		[CATEOGRY] => Array
			(
				[STATUS] => success
				[NUM_ROWS] => 1
			)

	)

[SAVE_FILE_XML] => Array
	(
		[0] => Array
			(
				[file] => /var/www/vhosts/okatent.com/httpdocs/sitemapproducts.xml
				[status] => failure
				[file_exists] => true
			)

		[1] => Array
			(
				[file] => /var/www/vhosts/okatent.com/httpdocs/sitemapindex.xml
				[status] => failure
				[file_exists] => true
			)

	)

)

 

so in sitemap.class.php line 592 is:

 

default:

 

$filename .= '.xml';

 

if ($fp = fopen($filename, 'w+')){

 

fwrite($fp, $data);

 

fclose($fp);

 

$this->debug['SAVE_FILE_XML'][] = array('file' => $filename, 'status' => 'success', 'file_exists' => 'true');

 

return true;

 

and now i dont know what next????

:(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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