Originally Posted by
torvista
I checked your site, and tried something similar on mine. Mine is ok.
It is two years since I have looked at this code. The whole sorting issue is a word of pain, as I remember.
The code you are using is the 2.1 version from the plugins? I didn't know anyone else had updated it.
I discovered I could set *debug" then I got this error log :)
Now if I had a clue what it meant :)
I am using ZC 155f, green classic template, PHP 5.6.37
Code:
[11-Sep-2018 16:13:56 Europe/Berlin] Request URI: /zencart155f/catalog/index.php?main_page=advanced_search_result&search_in_description=1&keyword=mantel&inc_subcat=0&sort=6&product_listing_sorter_id=3, IP address: ::1
#1 trigger_error() called at [C:\xampp\htdocs\zencart155f\catalog\includes\classes\db\mysql\query_factory.php:171]
#2 queryFactory->show_error() called at [C:\xampp\htdocs\zencart155f\catalog\includes\classes\db\mysql\query_factory.php:143]
#3 queryFactory->set_error() called at [C:\xampp\htdocs\zencart155f\catalog\includes\classes\db\mysql\query_factory.php:270]
#4 queryFactory->Execute() called at [C:\xampp\htdocs\zencart155f\catalog\includes\modules\responsive_xxxxxx\product_listing.php:117]
#5 include(C:\xampp\htdocs\zencart155f\catalog\includes\modules\responsive_xxxxxx\product_listing.php) called at [C:\xampp\htdocs\zencart155f\catalog\includes\templates\responsive_xxxxxx\templates\tpl_modules_product_listing.php:12]
#6 require(C:\xampp\htdocs\zencart155f\catalog\includes\templates\responsive_xxxxxx\templates\tpl_modules_product_listing.php) called at [C:\xampp\htdocs\zencart155f\catalog\includes\templates\responsive_xxxxxx\templates\tpl_advanced_search_result_default.php:51]
#7 require(C:\xampp\htdocs\zencart155f\catalog\includes\templates\responsive_xxxxxx\templates\tpl_advanced_search_result_default.php) called at [C:\xampp\htdocs\zencart155f\catalog\includes\templates\responsive_xxxxxx\common\tpl_main_page.php:291]
#8 require(C:\xampp\htdocs\zencart155f\catalog\includes\templates\responsive_xxxxxx\common\tpl_main_page.php) called at [C:\xampp\htdocs\zencart155f\catalog\index.php:97]
[11-Sep-2018 16:13:56 Europe/Berlin] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by p.products_sort_order, pd.products_name limit 20' at line 1 :: SELECT DISTINCT p.products_image, p.products_quantity , m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_price_sorter, p.products_qty_box_status, p.master_categories_id FROM (products p LEFT JOIN manufacturers m USING(manufacturers_id), products_description pd, categories c, products_to_categories p2c ) LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 2 WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 2 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%mantel%' OR p.products_model LIKE '%mantel%' OR m.manufacturers_name LIKE '%mantel%' OR (mtpd.metatags_keywords LIKE '%mantel%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%mantel%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%mantel%') )) order by p.products_price_sorter order by p.products_sort_order, pd.products_name limit 20 ==> (as called by) C:\xampp\htdocs\zencart155f\catalog\includes\modules\responsive_xxxxxx\product_listing.php on line 117 <== in C:\xampp\htdocs\zencart155f\catalog\includes\classes\db\mysql\query_factory.php on line 171
Bookmarks