Fatal error: Class 'LinkitSearchPluginEntity' not found in /home/travis/build/wet-boew/wet-boew-drupal/build/profiles/wetkit/modules/contrib/linkit/plugins/linkit_search/entity.inc on line 75

Attaching patch to remove testing plugins feature till can determine what is doing this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sylus’s picture

Attaching patch.

anon’s picture

Oh, this most have something todo with how and when ctools adds the classes to the registry.

I'll take a look at this asap.

anon’s picture

Status: Active » Needs review
FileSize
763 bytes

Test this patch..

You have to uninstall Linkit and install it again to test this.

jeni_dc’s picture

I just tested the patch in #3. It applied cleanly to 7.x-3.x-dev and I was able to install, and use, linkit after without any problems.

sylus’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
tcalin’s picture

Works like a charm!

anon’s picture

Status: Reviewed & tested by the community » Fixed

pushed patch in #3.

Status: Fixed » Closed (fixed)

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

The last submitted patch, 1: linkit_fix_testing_plugins-2116273-1.patch, failed testing.

Status: Closed (fixed) » Needs work

The last submitted patch, 3: linkit_fix_testing_plugins-2116273-2.patch, failed testing.

anon’s picture

Status: Needs work » Closed (fixed)

Closing again, the test bot change the status for some reason.

matheushamonangan’s picture

Hi there,

I had this Fatal error issue yesterday when running updates for linkit module for drupal 7.38. Is it possible the patch failed testing because the patch not compatible with the latest drupal?

Thanks,

Matheus

dsoini’s picture

I am getting this error even though Linkit is not enabled.

diamondsea’s picture

This error can happen if LinkIt is not enabled, as it does not load the needed classes, which can be a problem when there is a database update in the module causing an error during an update.php/drush updb such as:

$ drush updb -y
 Field_group  7008  Clear cache to notice the CTools load callback.                               
 Linkit       7303  Fixed 7302. Set URL type to "Entity view page" to preserve current behavior.
Do you wish to run all pending updates? (y/n): y
PHP Fatal error:  Class 'LinkitSearchPluginEntity' not found in .../sites/all/modules/contrib/linkit/plugins/linkit_search/file.class.php on line 25

Fatal error: Class 'LinkitSearchPluginEntity' not found in .../sites/all/modules/contrib/linkit/plugins/linkit_search/file.class.php on line 25
Drush command terminated abnormally due to an unrecoverable error.      [error]
Error: Class 'LinkitSearchPluginEntity' not found in .../sites/all/modules/contrib/linkit/plugins/linkit_search/file.class.php, line 25
The external command could not be executed due to an application error.    

To fix the error:
1. Enable the LinkIt module.
2. Run your update.php/drush updb. This will allow the update process to complete normally for LinkIt and any other modules with pending updates.
3. Re-disable the LinkIt module and your system should return to the original functionality.

mezitlab’s picture

#14 fixed my issue. Thank you @diamondsea