Fix: https://www.zen-cart.com/showthread....92#post1330192
Printable View
This post explains the fix:
https://www.zen-cart.com/showthread....92#post1330192
Just a follow up:
I managed to rebuild the sitemaps by doing this:
https://www.MYWEBSITE.co.uk/index.ph...ml&rebuild=yes
Yep my code already reads with that commented out like so:
sitemapxml_install.php
//$current_version = '3.9.3';
require_once(DIR_FS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/sitemapxml.php');
Just wanted to offer up a recent lesson learned from an upgrade of an older version of this plugin to the most recent ZC published version (3.9.5). In includes/classes/sitemapxml.php, there was a change/correction in spelling of the constant SITEMAPXML_MAX_ENTRYS to SITEMAPXML_MAX_ENTRIES in all locations of use which is relatively good to see corrected, but also one of those "did it need to be" situations. Regardless, unfortunately for me the site on which the upgrade was occurring used a different setting of 50000 instead of 5000 on line 15
Well, if you focus on the number only as an obvious difference and forget to update the "language" part for that one line (updating all other uses), then upon execution of the code, the value will effectively be undefined and every record will be treated as an individual record rather than a group of records and further as a result, you will generate a file for each such record. Ie. if you have 10000 product in 300 categories, just the product and category sitemap files to be generated, you get 10300 files minimum...Code:define('SITEMAPXML_MAX_ENTRIES', 50000);
So, be sure that when updating this code from some of the older versions that the entirety of differences are addressed, both the changes in the code as well as the differences applied on the site.
I might have suggested that there be some minimum programmed expectation of the max entries, but really the only reason to have that is in such a clutzy situation of not properly/fully installing the software. I could have just as easily stored the new file and changed the number and been off in the running not to have "learned" this lesson with this program.
Hi at all,
I try to install this module on zencart 1.3.9.h.
As a instruction guide, after copying the files, I go to admin page but I receive a blank page error 500.
Can you help me?
A nice feature for sitemap would be: a list in admin of categories to skip over in building the sitemap. It could likely be used the same way hidecategories is handled.