mc12345678 / zen-cart-sitemap-xml Goto Github PK
View Code? Open in Web Editor NEWThis project forked from andrewberezin/zen-cart-sitemap-xml
This Script generates an Sitemap as described sitemaps.org
License: Other
This project forked from andrewberezin/zen-cart-sitemap-xml
This Script generates an Sitemap as described sitemaps.org
License: Other
While trying this out on ZC158, I find that the popup window that shows the file generation, fails when a template other than classic is in use, for example when responsive classic is in use:
Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_sitemapxml_default.php' in tienda-158\includes\templates\responsive_classic\common\tpl_main_page.php on line 178
which is the bit when tpl_main_page
require($body_code); ?>
I am unclear as to the processing at this point, and as to why it's looking for that tpl_sitemapxml_default.php which does not physically exist.
php8, mysql 5.7.32
PHP Fatal error: 1055: Expression 5 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'MYDB.rd.languages_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by :: SELECT r.products_id, MAX(r.date_added) AS date_added, MAX(r.last_modified) AS last_modified, GREATEST(MAX(r.date_added), IFNULL(MAX(r.last_modified), '0001-01-01 00:00:00')) AS last_date, rd.languages_id
FROM reviews r
LEFT JOIN reviews_description rd ON (r.reviews_id = rd.reviews_id),
products p
WHERE p.products_id=r.products_id
AND p.products_status=1
AND r.status = 1
AND rd.languages_id IN (1,2)
GROUP BY r.products_id ORDER BY last_date DESC
Fixed by adding , rd.languages_id to GROUP BY clause:
$sql = "SELECT r.products_id, MAX(r.date_added) AS date_added, MAX(r.last_modified) AS last_modified, GREATEST(MAX(r.date_added), IFNULL(MAX(r.last_modified), '0001-01-01 00:00:00')) AS last_date, rd.languages_id FROM " . TABLE_REVIEWS . " r LEFT JOIN " . TABLE_REVIEWS_DESCRIPTION . " rd ON (r.reviews_id = rd.reviews_id), " . TABLE_PRODUCTS . " p WHERE p.products_id=r.products_id AND p.products_status=1 AND r.status = 1 AND rd.languages_id IN (" . $sitemapXML->getLanguagesIDs() . ") GROUP BY r.products_id, rd.languages_id" . (SITEMAPXML_PRODUCTS_REVIEWS_ORDERBY != '' ? " ORDER BY " . SITEMAPXML_PRODUCTS_REVIEWS_ORDERBY : '');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.