Closed (fixed)
Project:
Finder
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2011 at 03:21 UTC
Updated:
2 Jan 2012 at 19:37 UTC
When trying to use the autocomplete field in Finder I get the following error:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://MYSITEHERE.com/drupal/finder_autocomplete/autocomplete/2/6
StatusText: parsererror
ResponseText:
Fatal error: Call to undefined method stdClass::build_join() in /home/content/44/7598244/html/drupal/sites/all/modules/views/plugins/views_plugin_query_default.inc on line 1164
I am using the latest dev - Aug 20
Comments
Comment #1
skitten commentedMe too - I get it as an ajax error from the autocomplete and also as a page error after hitting submit.
Using 20-Aug finder and 22-Aug views 7.x-3.x
Comment #2
danielb commentedNeed steps to reproduce
Comment #3
Sylense commentedWhenever you start typing in the autocomplete field I get an error prompt with the error above. This happens on both a Finder block and a finder page. I have had no success in getting the module to work and it's exactly what I need. Is there any other information you need to troubleshoot?
Comment #4
Sylense commentedI tried deleting the autocomplete field and using a basic text field and once I enter a search term and hit "search" I get a white screen with the same error:
Fatal error: Call to undefined method stdClass::build_join() in /home/content/44/7598244/html/drupal/sites/all/modules/views/plugins/views_plugin_query_default.inc on line 1164This is using a views finder. I will try with a node finder and see if the same problem persists.
I am also getting the following errors on the Finder List page
Comment #5
Sylense commentedI set up a Node Finder and I get the following error when typing in the autocomplete field and/or hitting the search button:
PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 'IN) AND ((node.title = 'Th'))))) GROUP BY nid' at line 1: SELECT node.nid AS nid, node.title AS finder_element_11_node_title_title, 'nid' AS base_field, 'node' AS base_table FROM {node} node WHERE ((((node.type AND (movie) AND IN) AND ((node.title = :finder_0))))) GROUP BY nid; Array ( [:finder_0] => Th ) in finder_find_query() (line 1054 of /home/content/44/7598244/html/drupal/sites/all/modules/finder/finder.module).Comment #6
danielb commentedI cannot troubleshoot a bug if I cannot reproduce it. Obviously I have tested finder and am convinced it works fine, so unless you can identify what is causing this bug (i.e. your finder settings), there's nothing I can do about it. Not quite sure why you are avoiding talking about your finder and views configuration....
Your post in #5 is unrelated, and was fixed in another issue.
Comment #7
danielb commentedI've made a new release that fixes the node finder issue in #5. But seriously, forget about node finder it's not worth the effort.
The build_join() function is a views module function, so let's concentrate on that. It seems what is happening (from your error) is that the object is not of the correct class... but, I don't get how or why that's happening. Something triggers that on your configuration that isn't affecting the other people using Finder 7.x-1.x, or else I'd probably have about a dozen people upset over this already.
To make this easier you could post your finder here as per the guidelines: http://drupal.org/node/add/project-issue/finder
But I can't promise that I'll be able to *see* an obvious clue.
Comment #8
Sylense commentedI created a fresh Drupal 7.7 install on another server and installed the following modules:
Chaos tool suite (ctools) 7.x-1.x-dev (2011-Aug-06)
Finder 7.x-1.1 (2011-Aug-23)
Views 7.x-3.x-dev (2011-Aug-23)
- I added a Basic Page with the title "Test Page"
- Created a view titled "Basic" with a block display with all of the default settings. The only field is "Content: Title"
- Created a Views Finder with all of the default settings with,
- Checkmark next to "Form on Page"
- Find items from this view => drop down select to "Basic"
- Added a Autocomplete textfield element with default settings.
- Find items by this field I have highlighted "Content: Title"
- Navigated to the Finder Page "/finder/1"
- Began typing "Test Page" in the search field
And I got the same error as my original Drupal install
Does this help?
Comment #9
Sylense commentedI also just tried it against the stable releases of Ctools & Views:
Chaos tool suite (ctools) 7.x-1.0-rc1 and Views 7.x-3.0-rc1
Comment #10
danielb commentedbingo, I've replicated the problem, thanks
Comment #11
danielb commentedThis is fixed now, but there's one more thing I need to do before another release. Cheers.
Comment #12
Sylense commentedThanks! Can't wait to try out the next release
Comment #14
ruess commentedThis may not be related at all, however, I found that having the devel module enabled gave me lots of ajax errors with the finder module.