Zen Cart Logo
Forums / All Other Contributions/Addons / Google SitemapAdmin

Google SitemapAdmin

Views: 229,061

Results 521 to 540 of 842
14 Apr 2008, 1:02 PM
#521
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Google SitemapAdmin

Ok, I have it installed, I just ran the install.sql and it seemed to have removed the older files.

Now it is working fine, however, I am confused because it says

"Sitemap location don't specify in robots.txt"

when I run it in the small white window. But it also says on the admin page that I must specify Sitemap location for MSN in the robots.txt file.

I want this to work for Google and MSN, so i'm not sure whether or not to specify in robots or not.

Thanks

14 Apr 2008, 3:08 PM
#522
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google SitemapAdmin

djdavedawson:

I want this to work for Google and MSN, so i'm not sure whether or not to specify in robots or not.

As always - it is you decide for your self. I am at all my sites and all supported sites specified sitemap location in your robots.txt file. Read Specifying the Sitemap location in your robots.txt file for more information.

14 Apr 2008, 3:23 PM
#523
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Google SitemapAdmin

Thank you

14 Apr 2008, 4:06 PM
#524
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Google SitemapAdmin

hi im getting errors and my site not getting listed.

the mod creates the site maps and i can ping google etc and google bot is finding the maps etc but its showing errors in webmaster tools on google.

URLs not followed
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot because they contained too many redirects. Please change the URLs in your Sitemap that redirect and replace them with the destination URL (the redirect target). All valid URLs will still be submitted. HTTP Error:
URL:
Found: 302 (Moved temporarily)
http://www.fire2you.co.uk/index.php?main_page=index&cPath=21_24
Apr 12, 2008

this is lowering my ratings :( and listings :(

this is a 1.3.7 site with mod for .8 for paypal express checkout.

15 Apr 2008, 7:44 AM
#525
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google SitemapAdmin

2kitcorsa
That is an interesting issue - it is associated with the parameter 'Skip 1-prod Categories'.
This does not affect the rating and listings. All right url will be indexed.

In the next version will be skipped 1-prod Categories.

15 Apr 2008, 11:46 AM
#526
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google SitemapAdmin

v 1.3.18 15.04.2008 15:20

  1. Bug fix in ez-pages links
  2. Add skipping 1-prod categories (if 'Skip 1-prod Categories' setting to 'True').
17 Apr 2008, 1:17 AM
#527
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: Google SitemapAdmin

a_berezin:

v 1.3.18 15.04.2008 15:20

  1. Bug fix in ez-pages links
  2. Add skipping 1-prod categories (if 'Skip 1-prod Categories' setting to 'True').

I just installed Google Sitemap for Zen Cart Version 1.3.8 on a new and running ZenCart 1.3.8a site. The Google Sitemap version is v 1.3.18 added in the ZenCart Downloads section yesterday (April 15, 2008).

The install.sql code was cut and pasted into the admin-> tools -> Install SQL Patches window as instructed.

Google Sitemap Configuration does not appear in admin-> configuration as stated in the instructions and Google XML Sitemap appears in admin-> configuration when it should appear in admin-> tools.

I'm a bit baffled by the SQL code provided. Could you take a look and see if it is correct?

Thanks, Ron

Ron

17 Apr 2008, 8:53 AM
#528
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google SitemapAdmin

ronlee67:

Google Sitemap Configuration does not appear in admin-> configuration as stated in the instructions and Google XML Sitemap appears in admin-> configuration when it should appear in admin-> tools.

Admin Profile?

17 Apr 2008, 4:30 PM
#529
tlsystems avatar

tlsystems

New Zenner

Join Date:
Apr 2005
Posts:
4
Plugin Contributions:
0

Re: Google SitemapAdmin

Hey all,

First, thx for Googlesitemaps tool.
I've just installed googlesitemaps v1.3.18 on a zencart v1.3.8a.
I ran the sql patches and did the config.
After, I went to Admin->Tools>Google XML Sitemap and click on "Here" link. There were two problems:

The first one: "File "robots.txt" not found in save path..". For this one, I've added a file called robots.txt in which I wrote: "Sitemap: http://www.tlsystems.co.uk/sitemapindex.xml". After I've done this, the message "File "robots.txt" not found in save path.." disapeared. Was it the right way to fix it ?

The second one: it is written "Notice: Object of class queryFactoryResult could not be converted to int in Unknown on line 0" on the bottom of the popup which appears when I clicked on "Here" or on "send" button from the page "Google XML Sitemap Admin"

Thx.
Fab.

17 Apr 2008, 8:25 PM
#530
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: Google SitemapAdmin

a_berezin:

Admin Profile?

I'm sorry Andrew, I don't understand your question.

I have sucessfully installed earlier versions of your Google Sitemaps on other websites and praise your fine work.

The only thing I can think of is that the SQL install didn't go right. Perhaps when I did the copy and paste I missed a portion of the script. I would be happy to re-copy and paste and run the script but not confident whether that would mess things up further. What is your opinion? Is it relatively safe to re-run the SQL?

Best wishes, Ron

18 Apr 2008, 5:30 AM
#531
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: Google SitemapAdmin

RESOLVED

Ran uninstall.sql then ran install.sql.
Realized that when install.sql originally opened in notepad for copy/paste operation that not all of the code was selected for pasting.
Ron

ronlee67:

I just installed Google Sitemap for Zen Cart Version 1.3.8 on a new and running ZenCart 1.3.8a site. The Google Sitemap version is v 1.3.18 added in the ZenCart Downloads section yesterday (April 15, 2008).

The install.sql code was cut and pasted into the admin-> tools -> Install SQL Patches window as instructed.

Google Sitemap Configuration does not appear in admin-> configuration as stated in the instructions and Google XML Sitemap appears in admin-> configuration when it should appear in admin-> tools.

I'm a bit baffled by the SQL code provided. Could you take a look and see if it is correct?

Thanks, Ron

Ron

18 Apr 2008, 7:01 AM
#532
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google SitemapAdmin

tlsystems:

The first one: "File "robots.txt" not found in save path..". For this one, I've added a file called robots.txt in which I wrote: "Sitemap: http://www.tlsystems.co.uk/sitemapindex.xml". After I've done this, the message "File "robots.txt" not found in save path.." disapeared. Was it the right way to fix it ?
Yes.

tlsystems:

"Notice: Object of class queryFactoryResult could not be converted to int in Unknown on line 0"
zen-cart dev team argues that this is not an error.
I forgot to delete debugging. :blush:
File googlesitemap.php. Lines 20-21:

  @ini_set('display_errors', '1');
  error_reporting(E_ALL);

replace by

//  @ini_set('display_errors', '1');
//  error_reporting(E_ALL);
18 Apr 2008, 1:56 PM
#533
tlsystems avatar

tlsystems

New Zenner

Join Date:
Apr 2005
Posts:
4
Plugin Contributions:
0

Re: Google SitemapAdmin

Ok, Thx very much for this quick answer.

18 Apr 2008, 3:54 PM
#534
tlsystems avatar

tlsystems

New Zenner

Join Date:
Apr 2005
Posts:
4
Plugin Contributions:
0

Re: Google SitemapAdmin

Unfortunately, I've got 2 other troubles.

My sitemapindex.xml file:

<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="gss.xsl"?>

<sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
</sitemapindex>

Inside the sitemapindex tag, I suppose I should find links to the other sitemaps i.e. categories, ezpages and products ?

For info: sitemapcategories.xml and sitemapproducts.xml are fine.

In Google webmaster Tools, I went to add a sitemap, then I chose "add a general web sitemap" and then put "googlesitemap.php?inline=yes" inside the box.
Now the status of this is "errors" and it is written in the details "empty sitemap". Is it because google was waiting for a xml file and not a php file ? Or is it because my sitemapindex sitemap is empty ?

Thx.
Fab.

20 Apr 2008, 12:30 PM
#535
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google SitemapAdmin

2tlsystems
It is because your sitemapindex sitemap is empty. But why this happens, I do not understand :-(

21 Apr 2008, 1:37 PM
#536
eggrush avatar

eggrush

Zen Follower

Join Date:
Apr 2007
Posts:
153
Plugin Contributions:
0

Re: Google SitemapAdmin

hi all can anyone shed some light on this issue i am having within google webmaster tools, i get this error message:

Sitemap errors and warnings

Line Status Details - URLs not followed
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot because they contained too many redirects. Please change the URLs in your Sitemap that redirect and replace them with the destination URL (the redirect target). All valid URLs will still be submitted.

Details

just found this in google help pages but i am still non the wiser :

302 (Moved temporarily) The server is currently responding to the request with a page from a different location, but the requestor should continue to use the original location for future requests. This code is similar to a 301 in that for a GET or HEAD request, it automatically forwards the requestor to a different location, but you shouldn't use it to tell the Googlebot that a page or site has moved because Googlebot will continue to crawl and index the original location.

any ideas on what to do anyone!!!

HTTP Error:
URL:
Found: 302 (Moved temporarily) [IMG]https://www.google.com/webmasters/tools/js/2757448062-question_mark.gif[/IMG]
http://www.xxxxxxxx.co.uk/index.php?main_page=account
Apr 20, 2008

whats a redirect and how can i solve this warning???

Egg:cool:

22 Apr 2008, 7:43 AM
#537
spinnywoman avatar

spinnywoman

Zen Follower

Join Date:
Jul 2004
Location:
Oxford
Posts:
101
Plugin Contributions:
0

Re: Google SitemapAdmin

Hi eggrush

I had the same error messages.

Looking through this thread I realised that I did not have a robots.txt file in the root of my store per:

Originally Posted by tlsystems
The first one: "File "robots.txt" not found in save path..". For this one, I've added a file called robots.txt in which I wrote: "Sitemap: http://www.tlsystems.co.uk/sitemapindex.xml". After I've done this, the message "File "robots.txt" not found in save path.." disapeared. Was it the right way to fix it ?

I made one last night (with my own site name obviously) and uploaded it, then I resubmitted my sitemaps and checking this morning - no errors! Horray! :smile:

22 Apr 2008, 10:58 PM
#538
dableys avatar

dableys

New Zenner

Join Date:
Apr 2008
Location:
Westmeath, Ireland
Posts:
30
Plugin Contributions:
0

Re: Google SitemapAdmin

Hi y'all

i'm totally new to the zen-cart forum as in asking a question, i must say that i've had great help from reading the replies to problems i've come up against since installing my own zen-cart store, but i just can't seem to get a clear answer to the problem i'm having at the moment which is to do with installing the google sitemap add-on
I've followed all the instructions regarding installing the sitemap, at first i couldn't get the sitemap to display in (admin/tools) i could only see it in (admin/configuration) but then i did finally get it into the admin/tools section, problem is that when i try to execute it i get a 404 error saying:
Not Found
The requested URL /admin/FILENAME_GOOGLESITEMAP.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
also the google sitemap showing up in the tools menu is displayed exactly as follows:

BOX_GOOGLESITEMAP

Is this the way it should be displayed? If anyone out there can give me a list of the directories that each of the files should be copied into (i have no override folder :cry: , couldn't get my head around it when i was setting up my cart :smartass:) i'd be most greatful. I have yet to create my products and categories list, and i have a backup of my cart so i'm not to worried yet if i mess up, although the smart thing would have been to create an overrides folder in the first place.

Please, please offer me some comprehensive help on this
Regards & Thanks in advance
Darbleys

23 Apr 2008, 2:55 PM
#539
tlsystems avatar

tlsystems

New Zenner

Join Date:
Apr 2005
Posts:
4
Plugin Contributions:
0

Re: Google SitemapAdmin

Thx, it is working now.

I've made some modifications who may interest some people and maybe the author:

line 129, I corrected a small mistake ("EZpages" and not "category"):

message('<span style="font-weight: bold); color: red;">ERROR: Google [b]EZPages[/b] Sitemap Generation FAILED!</span><br />' . "\n\n");

line 424, I modified the function called "GenerateEzpagesSitemap" (modifications in bold):

function GenerateEzpagesSitemap(){
    global $db;
    $where = array();
    if(GOOGLE_SITEMAP_EZPAGES_HEADER == 'true')  $where[] = '(status_header = 1 AND header_sort_order > 0)';
    if(GOOGLE_SITEMAP_EZPAGES_SIDEBOX == 'true') $where[] = '(status_sidebox = 1 AND sidebox_sort_order > 0)';
    if(GOOGLE_SITEMAP_EZPAGES_FOOTER == 'true')  $where[] = '(status_footer = 1 AND footer_sort_order > 0)';
    [b]//$where[] = '(status_header = 1 AND header_sort_order > 0)';[/b]
    [b]//$where[] = '(status_sidebox = 1 AND sidebox_sort_order > 0)';[/b]
    [b]//$where[] = '(status_footer = 1 AND footer_sort_order > 0)';[/b]
    [b]//if(sizeof($where) == 0) return false;[/b]
    $container = array();
    if(defined('TABLE_EZPAGES_TEXT')) {
      $from = "LEFT JOIN " . TABLE_EZPAGES_TEXT . " pt ON (p.pages_id = pt.pages_id)
               LEFT JOIN " . TABLE_LANGUAGES . " l ON (pt.languages_id = l.languages_id) ";
    } else {
      $from = "";
    }
    
    [b]$where_stmt = empty($where) ? "" : " WHERE " . implode(' OR ', $where);[/b]
      
    [b]$page_query = $db->Execute("SELECT *
                                FROM " . TABLE_EZPAGES . " p " . $from . $where_stmt . " 

                                ORDER BY sidebox_sort_order");[/b]
    while (!$page_query->EOF) {
      if($page_query->fields['alt_url_external'] == '') { // skip external link
        $lang_param = (isset($page_query->fields['code']) && $page_query->fields['code'] != DEFAULT_LANGUAGE ? '&language=' . $page_query->fields['code'] : '');
        if($page_query->fields['alt_url'] != '') { // internal link
          $link = (substr($page_query->fields['alt_url'],0,4) == 'http') ?
                  $page_query->fields['alt_url'] :
                  zen_href_link($page_query->fields['alt_url'], $lang_param, ($page_query->fields['page_is_ssl']=='0' ? 'NONSSL' : 'SSL'), false, true, true);
        } else { // use EZPage ID to create link
          $link = zen_href_link(FILENAME_EZPAGES, 'id=' . $page_query->fields['pages_id'] . ((int)$page_query->fields['toc_chapter'] != 0 ? '&chapter=' . $page_query->fields['toc_chapter'] : '') . $lang_param, ($page_query->fields['page_is_ssl']=='0' ? 'NONSSL' : 'SSL'), false);
        }
        if(!isset($this->duplicated_links[$link])) {
          $this->duplicated_links[$link] = true;
          $page_query->fields['last_date'] = null;
          if(isset($page_query->fields['date_added']) && $page_query->fields['date_added'] != null) {
            $page_query->fields['last_date'] = strtotime($page_query->fields['date_added']);
          }
          if(isset($page_query->fields['last_modified']) && $page_query->fields['last_modified'] != null) {
            $page_query->fields['last_date'] = strtotime($page_query->fields['last_modified']);
          }
          $container[$link] = array('loc' => $link,
                                    'lastmod' => $page_query->fields['last_date'],
                                    'changefreq' => GOOGLE_SITEMAP_EZPAGES_CHANGE_FREQ,
                                    'priority' => GOOGLE_SITEMAP_EZPAGES_CHANGE_PRIOR);
        }
      }
      $page_query->MoveNext();
    }
    return $this->GenerateSitemap($container, 'ezpages');
  }

I've then added the possibility to generate 2 new sitemaps: manufacturers' pages and other pages like "new products", "shipping info"...

I've added the following code:
line 39:

@define('GOOGLE_SITEMAP_OTHERPAGES_CHANGE_FREQ', 'weekly');
@define('GOOGLE_SITEMAP_OTHERPAGES_CHANGE_PRIOR', 0.5);
@define('GOOGLE_SITEMAP_MANUFACTURERS_CHANGE_FREQ', 'daily');
@define('GOOGLE_SITEMAP_MANUFACTURERS_CHANGE_PRIOR', 0.5);

line 131:

message('<br />');
if ($google->GenerateManufacturersSitemap()){
  message('Generated Google Manufacturers Sitemap Successfully' . ' - <a href="' . $google->base_url . 'manufacturers.xml" target="_blank">' . $google->base_url . 'sitemapmanufacturers.xml</a><br />' . "\n");
} else {
  $submit = false;
  message('<span style="font-weight: bold); color: red;">ERROR: Google Manufacturers Sitemap Generation FAILED!</span><br />' . "\n\n");
}

message('<br />');
if ($google->GenerateOtherpagesSitemap()){
  message('Generated Google Other Pages Sitemap Successfully' . ' - <a href="' . $google->base_url . 'otherpages.xml" target="_blank">' . $google->base_url . 'sitemapotherpages.xml</a><br />' . "\n");
} else {
  $submit = false;
  message('<span style="font-weight: bold); color: red;">ERROR: Google Other Pages Sitemap Generation FAILED!</span><br />' . "\n\n");
}

line 474:

// generate other pages sitemap data
  function GenerateManufacturersSitemap(){
    global $db;
    $languages_dir = array();
    $language_query = $db->Execute("SELECT *
                                    FROM " . TABLE_LANGUAGES);
    while (!$language_query->EOF) {
      if($language_query->fields['directory'] != ''){
        $languages_dir[$language_query->fields['code']] = $language_query->fields['directory'];
      }
      $language_query->MoveNext();
    }  
    
    $container = array();
    
    $manufacturer_query = $db->Execute("SELECT *
                                        FROM " . TABLE_MANUFACTURERS);
    while (!$manufacturer_query->EOF) {
      foreach ($languages_dir as $language_code=>$language_dir) {
        if($language_code != DEFAULT_LANGUAGE){
          $link = zen_href_link(FILENAME_DEFAULT, 'manufacturers_id='.$manufacturer_query->fields['manufacturers_id'].'&language='.$language_code);
        }
        else {
          $link = zen_href_link(FILENAME_DEFAULT, 'manufacturers_id='.$manufacturer_query->fields['manufacturers_id']);
        }
        if(!isset($this->duplicated_links[$link])) {
          $this->duplicated_links[$link] = true;
          $container[$link] = array('loc' => $link,
                                    'lastmod' => time(),
                                    'changefreq' => GOOGLE_SITEMAP_MANUFACTURERS_CHANGE_FREQ,
                                    'priority' => GOOGLE_SITEMAP_MANUFACTURERS_CHANGE_PRIOR);
        }        
      }
      $manufacturer_query->MoveNext();
    }
    return $this->GenerateSitemap($container, 'manufacturers');
  }    
  
  
  // generate other pages sitemap data
  function GenerateOtherpagesSitemap(){
    global $db;
    global $template_dir;
    $languages_dir = array();
    $language_query = $db->Execute("SELECT *
                                    FROM " . TABLE_LANGUAGES);
    while (!$language_query->EOF) {
      if($language_query->fields['directory'] != ''){
        $languages_dir[$language_query->fields['code']] = $language_query->fields['directory'];
      }
      $language_query->MoveNext();
    }  
    
    $container = array();

    foreach ($languages_dir as $language_code=>$language_dir) {

      $path_oe = DIR_FS_CATALOG . DIR_WS_LANGUAGES . $language_dir . '/html_includes/' . $template_dir;

      if ($op_dir = @dir($path_oe)) {
        while ($filename = $op_dir->read()) {
          $tmp_zen_filename = str_replace(".php", "", $filename);
          if($tmp_zen_filename != $filename) {
            $zen_filename = str_replace("define_", "", $tmp_zen_filename);
            if($zen_filename != $tmp_zen_filename){
              //echo "<br />".$filename." ".$zen_filename;
              if($language_code != DEFAULT_LANGUAGE){
                $link = zen_href_link($zen_filename, 'language='.$language_code);
              }
              else {
                $link = zen_href_link($zen_filename);
              }
              if(!isset($this->duplicated_links[$link])) {
                $this->duplicated_links[$link] = true;
                $container[$link] = array('loc' => $link,
                                          'lastmod' => filemtime($path_oe . '/' . $filename),
                                          'changefreq' => GOOGLE_SITEMAP_OTHERPAGES_CHANGE_FREQ,
                                          'priority' => GOOGLE_SITEMAP_OTHERPAGES_CHANGE_PRIOR);
              }
            }
          }
        }
      }
    }
    
    return $this->GenerateSitemap($container, 'otherpages');
  }
23 Apr 2008, 3:47 PM
#540
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google SitemapAdmin

v 1.3.19 20.04.2008 17:24

  1. Optimizing code.
  2. Delete debug code from GenerateEzpagesSitemap() function :-(