Closed (fixed)
Project:
jCarousel
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2011 at 19:34 UTC
Updated:
20 Feb 2011 at 21:50 UTC
Jump to comment: Most recent file
I'm getting the following warning:
warning: mysqli_query() [function.mysqli-query]: Empty query in /var/www/public_html/example.com/includes/database.mysqli.inc on line 115.
Everything seems to be working fine. I've tried different skins and changing all of the settings. Nothing makes the error go away. Any help would be appreciated.
thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | jcarousel_view3_count_query.patch | 1.12 KB | quicksketch |
| #5 | views.jpg | 77.46 KB | zdean |
Comments
Comment #1
quicksketchI haven't been able to reproduce this problem. How are you using jCarousel? Are you doing API calls or using the Views integration?
Comment #2
zdean commentedViews integration. It's installed on drupal 6.20 and Views 6.x-3.x-dev.
Here's the view:
thanks for your help.
Comment #3
quicksketchCould you try upgrading your version of Views? jCarousel currently is tested against the 6.x-3.x development release of Views. It may not be compatible with the alpha-1 version.
Comment #4
zdean commentedthat is the version I'm using (along with 6.20 drupal).
thanks.
Comment #5
zdean commentedI see what you're saying...the export I included indicates the alpha version, but I'm actually using the dev (see the attached screen shot). not sure why the discrepancy...
Comment #6
zdean commentedComment #7
eynox commentedAnything new regarding this issue ? i'm currently having the same problem, would really appreciate if anyone knows how to fix this.
Comment #8
LGLC commentedI'm getting that warning message as well, with the same setup (Drupal 6.20 and the latest Views 6.x-3.x-dev). At first I thought it was because I had the number of items set to 'Auto' (which gave me 4 items) when only 3 results were returned inside my view (causing a permanent ajax throbber to fill in the 4th item, even though ajax wasn't enabled in the view itself), but making sure the view returned enough items didn't seem to help.
Comment #9
thomas.lucas commentedSame problem here..
Comment #10
quicksketchOkay looks like I was the one that needed to update my Views 3 installation. After upgrading I could reproduce the issue, which seems to be caused by $view->build_info being empty in the latest version of Views 3. After some poking around, it looks like the count query that we need has been moved into $view->query->count_query, but only in the latest versions of Views 3 (earlier versions as well as Views 2 have it in $view->build_info['count_query']). This patch pulls in the count query and should prevent this warning message.