Fatal error: Class 'Drupal\facets\Processor\WidgetOrderPluginBase' not found in /xxxx/modules/search_api_glossary/src/Plugin/facets/processor/GlossaryAZWidgetOrderProcessor.php on line 22
Drush command terminated abnormally due to an unrecoverable error.                                                                                  [error]
Error: Class 'Drupal\facets\Processor\WidgetOrderPluginBase' not found in
/xxxx/modules/search_api_glossary/src/Plugin/facets/processor/GlossaryAZWidgetOrderProcessor.php, line 22

When trying to use w/Facets 8.x-1.0-alpha4. I believe according to https://www.drupal.org/node/2731347 WidgetOrderPluginBase has been replaced with SortProcessorPluginBase in Facets

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kducharm created an issue. See original summary.

d.novikov’s picture

Title: PHP Error on WidgetOrderPluginBase with Facets » Refactor the module to work with latest Facets dev version
Status: Active » Needs review
FileSize
12.77 KB

Please check the patch attached.

dakku’s picture

Hi Dmytro,
Just tried your patch, but i think you have not moved the plugin and the patch fails at:

Checking patch src/Plugin/search_api/processor/SearchApiGlossaryAZProcessor.php...
error: src/Plugin/search_api/processor/SearchApiGlossaryAZProcessor.php: No such file or directory

Can you revise and re-attach?

d.novikov’s picture

Sorry for that, it looks like I used a wrong command to create the patch. Attaching a newer version (applied cleanly for me on 8.x-1.x branch).

  • dakku committed 853d271 on 8.x-1.x authored by d.novikov
    Issue #2796649 by d.novikov: Refactor the module to work with latest...
dakku’s picture

Hi Dmytro,
Thanks for the patch.

dakku’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

d.novikov’s picture

Hi @dakku,

Unfortunately facets module was updated once again :) Here is the most recent patch against the current 8.x-1.x-dev branch.

It includes fix for the following error:
Recoverable fatal error: Object of class Drupal\\Core\\Url could not be converted to string in .../modules/contrib/search_api_glossary/src/Plugin/facets/processor/GlossaryAZAllItemsProcessor.php on line 42

d.novikov’s picture

Updated the patch a bit.

d.novikov’s picture

dakku’s picture

Hi Dmytro,
Thanks for the patch - again :)
Much appreciate your contribution. I will check it out and merge to a new release

dakku’s picture

latest patch is applied. Please open a new issue for any subsequent patches :)