I've searched around for a few hours now, looking for a solution to this issue I have, but haven't found one so far.

I have a site on my localhost with Linkit 7.x-3.0 installed. I noticed that when I try to 'Search for content' (both in the WYSIWYG and as a text field), the loading gif appears for a split second, then disappears and no search results appear. I've looked in the Firefox console and can see this message:
"NetworkError: 500 Service unavailable (with message) - http://mysite:8888/linkit/autocomplete/plain_text_page?s=ask"

In Drupal log, I can see this error appearing many times:
LOCATION: http://mysite:8888/linkit/autocomplete/plain_text_page?s=ask
MESSAGE: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'menu_links.name' in 'where clause': SELECT menu_links.mlid AS entity_id, menu_links.menu_name AS bundle, :entity_type AS entity_type, NULL AS revision_id FROM {menu_links} menu_links WHERE (menu_links.name LIKE :db_condition_placeholder_0 ESCAPE '\\') ORDER BY menu_links.name ASC; Array ( [:db_condition_placeholder_0] => %ask% [:entity_type] => menu_link ) in EntityFieldQuery->execute() (line 1140 of /PHP_Sites/MySite/includes/entity.inc).

I'm not sure if this has any effect on the above issue, but I've noticed this error when editing a Linkit profile:
Notice: Undefined index: label in LinkitSearchPluginEntity->__construct() (line 75 of /PHP_Sites/AshfieldEyeClinic/site01/site/sites/all/modules/linkit/plugins/linkit_search/entity.class.php).

Has anybody else encountered these errors?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

granticusiv’s picture

I thought I'd revert back to a previous Linkit module, but no matter how many times I uninstall and clear cache, then reinstall the old module, I can't get the Linkit button to work in the ckeditor/wysiwyg editor toolbar. I can see the button, but no javascript function fires off. *sigh

anon’s picture

Status: Active » Closed (cannot reproduce)

So you have updated from Linkit 7.x-2.x to 7.x-3.x?
There is no upgrade path for that and that is my it doesnt work.

granticusiv’s picture

I can't remember if I updated from a previous version, but that may have been the case.

rerooting’s picture

I was having this same issue. Disabling the menu autocomplete handler allows us to circumvent this problem - content, terms, users, etc work fine after the menu autocomplete handler is disabled. Likely there is either a module causing a conflict or a patch that needs to be written to repair the menu_links autocomplete functionality.

This is with 7.3.1, no upgrade path, clean install.

granticusiv’s picture

Thanks rerooting. I turned off 'Menu link' in the Search plugins for my Linkit profile, and it appears to be working now. I'll do some more extensive testing and come back if there's still any remaining issues.

I have the following modules installed that relate to menu/url functions:
menu_attributes 7.x-1.0-rc2
menu_block 7.x-2.3
menu_breadcrumb 7.x-1.5
nodesymlinks 7.x-1.0-rc1
pathauto 7.x-1.2
redirect 7.x-1.0-rc1
taxonomy_menu 7.x-1.4

Drupal 7.23

klim_’s picture

Same error for me.
Disabling menu_links in linkit profile is not the solution...

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'menu_links.name' in 'where clause': SELECT menu_links.mlid AS entity_id, menu_links.vid AS revision_id, menu_links.menu_name AS bundle, :entity_type AS entity_type FROM {menu_links} menu_links WHERE (menu_links.name LIKE :db_condition_placeholder_0 ESCAPE '\\') AND (menu_links.menu_name IN (:db_condition_placeholder_1)) ORDER BY menu_links.name ASC; Array ( [:db_condition_placeholder_0] => %pro% [:db_condition_placeholder_1] => menu-main-menu-it [:entity_type] => menu_link )

fox mulder’s picture

Same here...

Switching of Menu links plugin resolves the problem form me

skylord’s picture

Version: 7.x-3.0 » 7.x-3.2
Status: Closed (cannot reproduce) » Needs review
FileSize
1.6 KB

This (and maybe some others related to entities support) bug is caused by linkit_entity_ctools_linkit_get_children function from plugins/linkit_search/entity.inc - it incorrectly overrides argument variable in cycle so all other entities except the ones supported by internal plugins recieve wrong handler info. Patch attached.

Status: Needs review » Needs work

The last submitted patch, 8: linkit-entity_plugins_fix-2133725-8.patch, failed testing.

anon’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
Status: Needs work » Fixed

Patch in #8 commited. Thanks for the patch.

  • anon committed 9d4d3f7 on 7.x-3.x authored by skylord
    Issue #2133725 by skylord: No search results appearing
    

Status: Fixed » Closed (fixed)

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