Coder Social home page Coder Social logo

zen-cart-sitemap-xml's People

Contributors

andrewberezin avatar mc12345678 avatar zen4all avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

haredo lat9

zen-cart-sitemap-xml's Issues

ZC158: admin->popup window not finding template

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.

sitemapxml_products_reviews.php: fatal error from rd.languages_id, when sql_mode=only_full_group_by

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 : '');

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.