osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

oscommerce 1104 ERROR Fix

This is a discussion on oscommerce 1104 ERROR Fix within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This fix applies to sites suffering from the folllowing error message on their product listing pages: 1104 - The SELECT ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Welcome to osCMax Join osCMax Now! Download osCMax Here
Reply

 

LinkBack Thread Tools
  #1  
Old 10-21-2008, 12:10 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,482
Thanks: 83
Thanked 356 Times in 334 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post oscommerce 1104 ERROR Fix

This fix applies to sites suffering from the folllowing error message on their product listing pages:


1104 - The SELECT would examine more rows than MAX_JOIN_SIZE. Check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is ok

select p.products_image, pd.products_name, p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id,
IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price)
as final_price from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c
left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id
and pd.language_id = '4' and p2c.categories_id = '230' order by pd.products_name limit 0, 10

Fix works on sites running php4 or above, and oscommerce 2.2, although ti may also work on earlier versions of both.

No files to upload, just amend code in product_info.php and index.php

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Instalador osCommerce espaņol - osCommerce install spanish michael_s New osCommerce Contributions 0 08-30-2008 01:00 PM
oscommerce error - help! colinh970 osCommerce 2.2 Installation Help 7 04-29-2008 02:42 PM
Database import from oscommerce to oscmax --- Error chowhan osCMax v2 Installation issues 27 02-29-2008 02:32 PM
Instalador osCommerce espaņol - osCommerce install spanish michael_s New osCommerce Contributions 0 01-19-2007 07:50 AM
Instalador osCommerce espaņol - osCommerce install spanish michael_s New osCommerce Contributions 0 01-19-2007 06:50 AM


All times are GMT -8. The time now is 02:45 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax