Return-Path: X-Original-To: apmail-bloodhound-user-archive@www.apache.org Delivered-To: apmail-bloodhound-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 600071789A for ; Thu, 26 Mar 2015 17:10:40 +0000 (UTC) Received: (qmail 33599 invoked by uid 500); 26 Mar 2015 17:10:34 -0000 Delivered-To: apmail-bloodhound-user-archive@bloodhound.apache.org Received: (qmail 33567 invoked by uid 500); 26 Mar 2015 17:10:34 -0000 Mailing-List: contact user-help@bloodhound.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@bloodhound.apache.org Delivered-To: mailing list user@bloodhound.apache.org Received: (qmail 33554 invoked by uid 99); 26 Mar 2015 17:10:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 17:10:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tisdall@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 17:10:09 +0000 Received: by lbcgn8 with SMTP id gn8so45749430lbc.2 for ; Thu, 26 Mar 2015 10:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Xwx4PK/1CzBpVZdEnUx93H46s/E/qovt2OUxYxRXOGA=; b=LOBa/Iy0PrXgetTUmOgqZqzLe8EXyp1i2dtu4gVFkrLzL4lCmWze37fj9Ox0AZH/uq QMc7HF89yvuKZMgm1WbNTHbK5AfEr3+8DfrsH0YBbLsVeqWAT3+5u9uUdabeyBixAeOj 2Ww3J/gbvy/X6cs88kod8Xp9B8q/UDlFdKsND6Kiq9d0iTR+r2chK4dXDCUkVdUOnrgx 8d7IdwIEr7KoZoUWPo9hyBA/Iaz95yN7bYfQdlNPeKX4pz07D4Gpotx7NQvIHgU97s1O ayH+3/tFVIdnpfuNIpkbQOyGHun1kANW+E+6GpSj8mDPYQfjIoRBs5BHA9dDH8JwZWKp LR0A== MIME-Version: 1.0 X-Received: by 10.152.244.161 with SMTP id xh1mr13933379lac.119.1427389808150; Thu, 26 Mar 2015 10:10:08 -0700 (PDT) Received: by 10.112.6.133 with HTTP; Thu, 26 Mar 2015 10:10:08 -0700 (PDT) In-Reply-To: References: Date: Thu, 26 Mar 2015 13:10:08 -0400 Message-ID: Subject: Re: /products page error From: Tim Tisdall To: user@bloodhound.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org That didn't seem to have made a difference. Where would the logging messages appear? I think I figured it out, though... mysql> select * from bloodhound_productconfig where option='whut'; ERROR 1064 (42000): 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 'option='whut'' at line 1 mysql> select * from bloodhound_productconfig where `option`='whut'; Empty set (0.00 sec) mysql> select * from bloodhound_productconfig where bloodhound_productconfig.option='whut'; Empty set (0.00 sec) It seems the "option" part is a keyword or something in mysql and needs to be properly escaped or qualified. Seems like an easy patch... On Thu, Mar 26, 2015 at 12:58 PM, Ryan J Ollos wrote: > On Thu, Mar 26, 2015 at 9:56 AM, Tim Tisdall wrote: >> >> After upgrading from 0.7 to 0.8 my /products page says: >> >> ProgrammingError: (1064, "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 'option='icon'' at line 3") >> >> After many many many tries on the demo site I managed to get that page >> to load with no issue, so I suspect there's something not right with >> just my environment. >> >> Unfortunately I'm not sure how to get the whole SQL query but it >> starts with "\n SELECT product, value FROM >> bloodhound_productconfig\n". > > > Setting [trac] debug_sql = true might provide more info. > > http://trac.edgewall.org/wiki/TracIni#trac-section