Thread: SitemapXML v.2

Page 96 of 222 FirstFirst ... 46869495969798106146196 ... LastLast
Results 951 to 960 of 2215
  1. #951
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    31
    Plugin Contributions
    0

    Default Re: cron job causes debug error

    Because all other maps were generated properly I found a function that prepares sitemapindex.xml file.

    And there is a function GenerateSitemapIndex() in includes/classes/sitemapxml.php file.

    I changed:

    PHP Code:
    if ($za_dir = @dir(rtrim($this->savepath'/'))) {
    (...) 
    to:

    PHP Code:
    if ($za_dir = @dir('/')) {
    (...) 
    And then it worked properly. I think it is more related to zen cart cofigurafion than its version. My host provider requires DIR_FS_CATALOG set to '/' or '//'.

  2. #952
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,762
    Plugin Contributions
    30

    Default Re: cron job causes debug error

    Since the debug error was ONLY caused by the cron job using this:
    php -q /home/mysite/public_html/shop/cgi-bin/sitemapxml.php rebuild=yes ping=yes
    my hosting suggested changing it to this, so it was run via a browser:
    lynx --dump http://www.mysite.es/shop/cgi-bin/sitemapxml.php&rebuild=yes&ping=yes
    This works, no error!
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  3. #953
    Join Date
    Jan 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: cron job causes debug error

    I'm new to the forum, so please forgive me if I am asking this wrong.

    What would make the sitemap add on stop generating sitemap files on the 10th file? We have 546,180 products in this example store. We have 14 stores with sitemap implemented in them. When we run the sitemap generator, they all seem to fail at around 500k products. The output from a run below stopped at 514,344 products.

    I can show you the same sort of output from a store with 1,126,848 products. It stops in the file named sitemapproducts010.xml just like this run, with around 500,000 products processed. As you can see the output below does not mention the sitemapproducts010.xml file but looking at the output on the server, that is the last file that was being created when it stopped running.


    output:


    SiteMapXML (3.1.0 14.12.2011 13:32)

    News Box Manager Sitemap

    File http://MYDOMAIN.com/sitemapboxnews.xml. Written 3 items (1110 bytes), Filesize: 1119 bytes
    Total: files 1, items 3 (1119 bytes), execution time 0:0.0150, db queries 1, db queries time 0:0.0144.
    Categories Sitemap

    File http://MYDOMAIN.com/sitemapcategories.xml. Written 14742 items (2941033 bytes), Filesize: 2941042 bytes
    Total: files 1, items 14742 (2941042 bytes), execution time 0:48.6450, db queries 35171, db queries time 0:44.5461.
    Ezpages Sitemap

    File http://MYDOMAIN.com/sitemapezpages.xml. Written 4 items (1144 bytes), Filesize: 1153 bytes
    Total: files 1, items 4 (1153 bytes), execution time 0:0.0063, db queries 2, db queries time 0:0.0053.
    Mainpage Sitemap

    File http://MYDOMAIN.com/sitemapmainpage.xml. Written 1 items (657 bytes), Filesize: 666 bytes
    Total: files 1, items 1 (666 bytes), execution time 0:0.0019, db queries 1, db queries time 0:0.0017.
    Manufacturers Sitemap

    File http://MYDOMAIN.com/sitemapmanufacturers.xml. Written 1 items (717 bytes), Filesize: 726 bytes
    Total: files 1, items 1 (726 bytes), execution time 0:0.0032, db queries 1, db queries time 0:0.0029.
    Products Sitemap

    File http://MYDOMAIN.com/sitemapproducts.xml. Written 46726 items (9999869 bytes), Filesize: 9999878 bytes
    File http://MYDOMAIN.com/sitemapproducts000.xml. Written 46726 items (9999872 bytes), Filesize: 9999881 bytes
    File http://MYDOMAIN.com/sitemapproducts001.xml. Written 46726 items (9999872 bytes), Filesize: 9999881 bytes
    File http://MYDOMAIN.com/sitemapproducts002.xml. Written 46726 items (9999872 bytes), Filesize: 9999881 bytes
    File http://MYDOMAIN.com/sitemapproducts003.xml. Written 46726 items (9999872 bytes), Filesize: 9999881 bytes
    File http://MYDOMAIN.com/sitemapproducts004.xml. Written 46726 items (9999872 bytes), Filesize: 9999881 bytes
    File http://MYDOMAIN.com/sitemapproducts005.xml. Written 46726 items (9999872 bytes), Filesize: 9999881 bytes
    File http://MYDOMAIN.com/sitemapproducts006.xml. Written 46815 items (9999881 bytes), Filesize: 9999890 bytes
    File http://MYDOMAIN.com/sitemapproducts007.xml. Written 46760 items (9999856 bytes), Filesize: 9999865 bytes
    File http://MYDOMAIN.com/sitemapproducts008.xml. Written 46755 items (9999873 bytes), Filesize: 9999882 bytes
    File http://MYDOMAIN.com/sitemapproducts009.xml. Written 46932 items (9999781 bytes), Filesize: 9999790 bytes

  4. #954
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: cron job causes debug error

    Strange problem. I tried on a large number of products - I had 16 files sitemapproducts *. Xml.
    If you want, I can see what you have a problem - for this I will need access to FTP.

  5. #955
    Join Date
    Jan 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: cron job causes debug error

    that would be great! I will PM you credentials.

  6. #956
    Join Date
    Jan 2012
    Posts
    15
    Plugin Contributions
    0

    Default sitemap failing at sitemapproducts10.xml or about 500,000 products

    just wanted to update the subject of this post to make it easier to find if anyone else has the problem

  7. #957
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: cron job causes debug error

    Quote Originally Posted by torvista View Post
    Since the debug error was ONLY caused by the cron job using this:

    my hosting suggested changing it to this, so it was run via a browser:

    This works, no error!
    This is wonderful! :)

  8. #958
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: sitemap failing at sitemapproducts10.xml or about 500,000 products

    Hi,
    Quote Originally Posted by elorithrah View Post
    What would make the sitemap add on stop generating sitemap files on the 10th file? We have 546,180 products in this example store. We have 14 stores with sitemap implemented in them. When we run the sitemap generator, they all seem to fail at around 500k products. The output from a run below stopped at 514,344 products.

    I can show you the same sort of output from a store with 1,126,848 products. It stops in the file named sitemapproducts010.xml just like this run, with around 500,000 products processed. As you can see the output below does not mention the sitemapproducts010.xml file but looking at the output on the server, that is the last file that was being created when it stopped running.
    I found a bug. The problem is overspending memory. We'll have to temporarily abandon the test duplication of addresses in the Sitemap.

  9. #959
    Join Date
    Jan 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: sitemap failing at sitemapproducts10.xml or about 500,000 products

    thanks! What do I need to do to fix it?

  10. #960
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: sitemap failing at sitemapproducts10.xml or about 500,000 products

    Quote Originally Posted by elorithrah View Post
    thanks! What do I need to do to fix it?
    I PM you information

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR