Hello -
I've gone through the other threads and haven't seen anyone experience this so I'm assuming there is something wrong with the configuration on my webhost or something like that. I've tried this on 2 different hosts with the same results so it's also possible that I just missed something
MySql Version: 4.0.25
PHP Version: 4.4.7
Dataface 0.7.1 is detected and the info page reports install completed...
When I try to install WebAuction I got errors during table creation. I had to remove DEFAULT CHARSET=latin8 and the DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP in order to get the tables created.
After getting the tables created I went to test the site and I get an on the select for p.product_id, current_high_bid:
Fatal error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select p.*,current_high_bid from products p left join (select pSELECT COUNT(*) FROM (select p.*,current_high_bid from products p left join (select product_id,max(bid_amount) as current_high_bid from bids group by product_id) as b on p.product_id=b.product_id) as `products`On line 99 of file /usr/local/www/virtual1/66/175/46/156/html/dataface-0.7.1/Dataface/QueryTool.php in function printstacktrace()
On line 462 of file /usr/local/www/virtual1/66/175/46/156/html/dataface-0.7.1/Dataface/QueryTool.php in function dataface_querytool(products,Resource id #12,array(e473465e3e88c6658e657f0eff681bf6,products,list,0,0,30,list,product_categories asc))
On line 955 of file /usr/local/www/virtual1/66/175/46/156/html/dataface-0.7.1/Dataface/Application.php in function loadresult(products,Resource id #12,array(e473465e3e88c6658e657f0eff681bf6,products,list,0,0,30,list,product_catego in /usr/local/www/virtual1/66/175/46/156/html/dataface-0.7.1/Dataface/QueryTool.php on line 99
If I change product/fields.ini around to not have an embedded select with the left join:
__sql__="SELECT p.product_id, max(b.bid_amount) as current_high_bid FROM products p LEFT JOIN bids b ON p.product_id = b.product_id GROUP BY p.product_id"
it gets passed that error but produces a new error:
Fatal error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT p.product_id, max(b.bid_amount) as current_high_bid FROSELECT COUNT(*) FROM (SELECT p.product_id, max(b.bid_amount) as current_high_bid FROM products p LEFT JOIN bids b ON p.product_id = b.product_id GROUP BY p.product_id) as `products`On line 99 of file /homepages/33/d87621851/htdocs/wsc87621859/dataface-0.7.1/dataface-0.7.1/Dataface/QueryTool.php in function printstacktrace()
On line 462 of file /homepages/33/d87621851/htdocs/wsc87621859/dataface-0.7.1/dataface-0.7.1/Dataface/QueryTool.php in function dataface_querytool(products,Resource id #12,array(228b182127e83675cd3ae8441e1aa55e,products,list,0,0,30,list,product_categories asc))
On line 955 of file /homepages/33/d87621851/htdocs/wsc87621859/dataface-0.7.1/dataface-0.7.1/Dataface/Application.php in function loadresult(products,Resource id #12,array(228b182127e83675cd3ae8441e1aa55e,products,list,0,0,30,li in /homepages/33/d87621851/htdocs/wsc87621859/dataface-0.7.1/dataface-0.7.1/Dataface/QueryTool.php on line 99
.....
Anyway, before I work through each one of these and possibly make things worse I thought I would see if I'm missing something. Obviously this works for others so it's got to be my environment or something like that!
Thanks,
Steve.