Zen Cart Logo

SitemapXML v.2

Views: 613,142

Results 1,621 to 1,640 of 2,226
18 May 2016, 16:46
#1621
a_berezin avatar

a_berezin

Deceased

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

SitemapXML v.2

Hi,
Can anybody help me? Tell me for God's sake, what to write in the readme, to make it clear? Now it says:

Install:

  1. BACK UP your database & store.
  2. Unzip the SitemapXML package to your local hard drive, retaining the folder structure.
  3. Rename the "YOUR_Admin" folder in the "sitemapXML" folder to match the name of your admin folder.
    sitemapXML/YOUR_Admin/
  4. Upload the files from "sitemapXML" to the root of your store. (DO NOT upload the "sitemapXML" folder, just the CONTENTS of this folder
    (copy ALL of the add-on files to your store!! Most issues are caused by store owners who decide to NOT load ALL of the module files)
  5. Set permissions on the directory /sitemap/ to 777.
  6. Run YOUR_Admin/-install-sitemapxml.php
  7. Go to Admin -> Tools -> Sitemap XML and click "Install SitemapXML SQL".
    6.1 If you are using the Admin Profiles contribution, you need to set the Sitemap XML plugin Admin configuration permission. Go to Tools->Admin Settings->Permissions button and put a checkmark at "sitemap XML" plugin. (There are two checkboxes for Sitemap XML; the second is added after the installation done in step 6.)
  8. Go to Admin -> Configuration -> Sitemap XML and setup all parameters.
  9. Go to Admin -> Tools -> Sitemap XML (If error messages occur, change permissions on the XML files to 777).
    What is not clear?
18 May 2016, 16:53
#1622
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Steve:

OK, I got that part, but I am not familiar with this. what do you do after that? Go to Install SQL Patches?

Silver

18 May 2016, 17:03
#1623
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Andrew:

Obviously, something isn't clear. I did everything in the "read me" file to the letter, or at least I thought so. And apparently, some other people have also. My situation is that step 6 didn't show up (Go to Admin -> Tools -> Sitemap XML and click "Install SitemapXML SQL".) so apparently the ```
-install-sitemapxml.php

file">
Thanks,

Silver

18 May 2016, 17:42
#1624
a_berezin avatar

a_berezin

Deceased

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

Re: SitemapXML v.2

Hi,

SilverHD:

I am just trying to get some help with it.

I really would like to help, but do not even imagine how I can do it :(

18 May 2016, 20:41
#1625
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: SitemapXML v.2

Question:
why does the manufacturers sitemap generation take account of language options when as far as I can see, all the fields it deals with are not language dependent?

18 May 2016, 20:57
#1626
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

I would still like to know how to get this add-on up and running. I know that it is very important to google to have a mapping system so I know I need it. Can anyone help with this?

Silver

18 May 2016, 21:22
#1627
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: SitemapXML v.2

SilverHD:

Steve:

OK, I got that part, but I am not familiar with this. what do you do after that? Go to Install SQL Patches?

Silver

This was already answered:

torvista:

Make sure it is copied into the YOUR_ADMIN/
Run it from the browser using the relevant address:
www.yoursite/YOUR_ADMIN/-install-sitemapxml.php

Load that url in your browser to run it.

18 May 2016, 21:31
#1628
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

jeking:

Sorry if I don't understand. I load it into my browser. Then what do I do? I really don't understand this. The Admin login comes up. I'm at a loss.

Silver

18 May 2016, 22:10
#1629
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: SitemapXML v.2

SilverHD:

jeking:

Sorry if I don't understand. I load it into my browser. Then what do I do? I really don't understand this. The Admin login comes up. I'm at a loss.

Silver

Log into your admin.
Replace the placeholder data with your store url in www.yoursite/YOUR_ADMIN/-install-sitemapxml.php
View that page in your browser.

That page is the install script.

18 May 2016, 22:24
#1630
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Jim:

Once I "view" that page in my browser, then how do I get it installed properly into the plug-in? That's the part I don't understand.

Silver

18 May 2016, 22:41
#1631
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: SitemapXML v.2

SilverHD:

Jim:

Once I "view" that page in my browser, then how do I get it installed properly into the plug-in? That's the part I don't understand.

Silver

Your question does not make sense. view the page, thenn check to see if you see it in the Tools menu.

18 May 2016, 22:51
#1632
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Jim:

The reason the question doesn't make sense is because the page is blank. I think that there is something wrong with the code.

Silver

18 May 2016, 23:02
#1633
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Jim:

The page really was blank, so I just jogged in again and magically, there it was under tools! I have no idea how it got there. Can you explain to me how in the world in layman's terms how that worked so, I or someone else on this Forum needs it can use it again? I really don't understand it and I used it. I would really appreciate it.:blink:

Thank you but I am still confused.

Silver

18 May 2016, 23:18
#1634
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: SitemapXML v.2

SilverHD:

Jim:

The page really was blank, so I just jogged in again and magically, there it was under tools! I have no idea how it got there. Can you explain to me how in the world in layman's terms how that worked so, I or someone else on this Forum needs it can use it again? I really don't understand it and I used it. I would really appreciate it.:blink:

Thank you but I am still confused.

Silver

Yup. There's nothing to view on the page. All it does is add the item to the menu.

18 May 2016, 23:30
#1635
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Jim:

Then tell me what should be added to the instructions or possibly even the code that others will not have to deal with this. It's obvious the author didn't know what to do. He even said so. Can you help with this?

Silver

18 May 2016, 23:33
#1636
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: SitemapXML v.2

It was step 5 in the readme:

  1. Run YOUR_Admin/-install-sitemapxml.php

I read it as the author asking 'how much simpler does it need to be'. So I'll ask the same question, how would you re-write that step so others don't make the same mistake you did?

18 May 2016, 23:50
#1637
silverhd avatar

silverhd

Totally Zenned

Join Date:
Mar 2008
Location:
USA
Posts:
563
Plugin Contributions:
0

Re: SitemapXML v.2

Jim:

I have installed many plug-ins in aprox 4 sites so far and have never seen anything like that before, ever. I wonder how many others have never either. Possibly, I should elaborate so it is "more understandable." The problem is, even I don't understand it. Need to think about this.

Any input is welcome.

Thanks,

Silver

19 May 2016, 04:11
#1638
a_berezin avatar

a_berezin

Deceased

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

Re: SitemapXML v.2

Hi,

torvista:

Question:
why does the manufacturers sitemap generation take account of language options when as far as I can see, all the fields it deals with are not language dependent?
It's not clear. On the one hand for each manufacturer are entries in each language. On the other hand, these entries differ only website address, which is very strange.
I can offer to add a parameter to sitemap configuration - to generate or not generate language dependent links to the manufacturer.

19 May 2016, 07:30
#1639
a_berezin avatar

a_berezin

Deceased

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

Re: SitemapXML v.2

I looked how installed other plug-ins. It turns out for a long time no one observes the old rules and everything is already installed plug-ins automatically. And it is right. In the near future I will add automatic installation of the plugin.

19 May 2016, 10:18
#1640
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: SitemapXML v.2

PHP Warning: filesize(): stat failed for (filename)
The information contained in this post
https://www.zen-cart.com/showthread.php?126810-SitemapXML-v-2&p=1306779#post1306779
is correct, of course, but I get the same error but ONLY when calling from the cgi-bin file.

Xampp, local, php 5.6: no error
Xampp, local, php 7.04: error

I modified the function to get more info:

  function _fileSize($fn,$line_number='') {
//    clearstatcache(true, $fn);
    clearstatcache();
    echo __LINE__ . ' called from line '. $line_number . ', $fn='.$fn."\n<br />"."\n<br />";
    //var_dump(debug_backtrace());
    $fs = filesize($fn);
    return $fs;
  }

and added an extra parameter LINE in the various calls in the class to find out where it was called from.

screen output is "interesting" in that there are two calls to this function and it appears the first one is what generates the error due to having no path info:

SiteMapXML (3.6 26.04.2016 10:33:09) Sitemap Manufacturers 811 called from line 517, $fn=sitemapmanufacturers.xml ** 811 called from line 718, $fn=D:/Documents/Business/blah..blah/..tienda_155/sitemap/sitemapmanufacturers.xml** ......more stuff

working backwards I think there is an error here as the path is missing

if ( SITEMAPXML_USE_EXISTING_FILES == 'true'
  && file_exists($this->savepath . $filename)
  && (filemtime($this->savepath . $filename) >= strtotime($last_date))
  && $this->_checkFContentSitemap($filename)) {
  echo '"' . $filename . '" ' . TEXT_FILE_NOT_CHANGED . '<br />';
  return false;

this does not generate the error:

if ( SITEMAPXML_USE_EXISTING_FILES == 'true'
&& file_exists($this->savepath . $filename)
  && (filemtime($this->savepath . $filename) >= strtotime($last_date))
  && $this->_checkFContentSitemap($this->savepath . $filename)) {//steve added path
  echo '"' . $filename . '" ' . TEXT_FILE_NOT_CHANGED . '<br />';
  return false;