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

skitten’s picture

Me 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

danielb’s picture

Status: Active » Postponed (maintainer needs more info)

Need steps to reproduce

Sylense’s picture

Whenever 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?

Sylense’s picture

I 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 1164

This 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

    Notice: Undefined offset: 2 in finder_views_plugin_display_finder->query() (line 124 of /home/content/44/7598244/html/drupal/sites/all/modules/finder/modules/finder_views/includes/finder_views_plugin_display_finder.inc).
    Notice: Undefined offset: 1 in finder_views_plugin_display_finder->query() (line 124 of /home/content/44/7598244/html/drupal/sites/all/modules/finder/modules/finder_views/includes/finder_views_plugin_display_finder.inc).
    Notice: Undefined offset: 0 in finder_views_plugin_display_finder->query() (line 124 of /home/content/44/7598244/html/drupal/sites/all/modules/finder/modules/finder_views/includes/finder_views_plugin_display_finder.inc).
Sylense’s picture

I 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).

danielb’s picture

I 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.

danielb’s picture

Component: Finder Autocomplete » Finder Views (views.module integration)

I'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.

Sylense’s picture

I 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

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://MYSITEHERE/drupal7/finder_autocomplete/autocomplete/1/2
StatusText: OK
ResponseText: 
Fatal error:  Call to undefined method stdClass::build_join() in /home/sylense/public_html/MYSITEHERE/drupal7/sites/all/modules/views/plugins/views_plugin_query_default.inc on line 1164

Does this help?

Sylense’s picture

I 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

danielb’s picture

Status: Postponed (maintainer needs more info) » Active

bingo, I've replicated the problem, thanks

danielb’s picture

Status: Active » Fixed

This is fixed now, but there's one more thing I need to do before another release. Cheers.

Sylense’s picture

Thanks! Can't wait to try out the next release

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ruess’s picture

Component: Finder Views (views.module integration) » Code

This 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.