When visiting a term page I get the following message:
Fatal error: Call to a member function stem() on null in /web/modules/contrib/alinks/src/AlinkPostRenderer.php on line 94

This is on a local fresh Drupal install and also occurs on simplytest.me

Steps to reproduce:

  1. install Drupal 8.4 and Alinks 1.1 or use simplytest me with alinks
  2. create a vocabulary and add a text (long , with summary) field to it
  3. add some terms to it (with-to-become-links-to-other-terms words
  4. Next two steps are on the alinks settings page:
  5. in "Configure the displays on which alinks should be used" set (term -> your vocabulary -> taxonomy term page ) display for this new vocabulary
  6. check the box for your vocabulary under "Replace taxonomy terms"

If you know visit the termpage you get the error mentioned above.
Isn't it possible to have terms referencing each other or what is going on?

Comments

firfin created an issue. See original summary.

osopolar’s picture

Status: Active » Postponed

Does issue #2944336: Requires install with composer! help to fix your problem?

WriteCo’s picture

I get this error and I have installed alinks with composer. Everything on this install is installed with composer. Is there another linking module that does not produce errors? Perhaps one with installation instructions.

effortdee’s picture

Installed alinks on latest drupal and get white screen of death on article content type:

Error: Class 'Wamania\Snowball\English' not found in Drupal\alinks\AlinkPostRenderer->__construct() (line 52 of /home/feafccef/public_html/live/modules/alinks/src/AlinkPostRenderer.php) #0 /home/feafccef/public_html/live/modules/alinks/src/AlinkPostRenderer.php(218): Drupal\alinks\AlinkPostRenderer->__construct(Object(Drupal\Core\Render\Markup), Array, '//*//p//text()[...') #1 [internal function]: Drupal\alinks\AlinkPostRenderer::postRender(Object(Drupal\Core\Render\Markup), Array) #2 /home/feafccef/public_html/live/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(100): call_user_func_array(Array, Array) #3 /home/feafccef/public_html/live/core/lib/Drupal/Core/Render/Renderer.php(781): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #post_re...', 'silenced_deprec...', 'Drupal\\Core\\Ren...') #4 /home/feafccef/public_html/live/core/lib/Drupal/Core/Render/Renderer.php(496): Drupal\Core\Render\Renderer->doCallback('#post_render', Array, Array) #5 /home/feafccef/public_html/live/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Array, false) #6 /home/feafccef/public_html/live/core/lib/Drupal/Core/Template/TwigExtension.php(501): Drupal\Core\Render\Renderer->render(Array) #7 /home/feafccef/public_html/live/sites/default/files/php/twig/5e1fb18ebe7d7_ds-entity-view.html.twig_0l7vZL1VJ-zxTA2kPYRBg2j6e/JckJQlqnyW4OG-k5NMoCjJHzfY3TLtJaDFtkLAD3VNQ.php(55): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #8 /home/feafccef/public_html/live/vendor/twig/twig/src/Template.php(455):

firfin’s picture

@effortDee I don't think you're having the same issue. please see #2944336: Requires install with composer!