Problem

The latest version has issue when the frontend is calling "/language-suggestion/get-county-code"

The errorshows

The website encountered an unexpected error. Try again later.

InvalidArgumentException: The controller for URI "/en/language-suggestion/get-county-code" is not callable. in Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition() (line 53 of core/lib/Drupal/Core/Controller/ControllerResolver.php).

Steps to reproduce

  1. Install the latest 8.x-1.x
  2. Enable module
  3. Try open '/en/language-suggestion/get-county-code'

Proposed resolution

The service registered in language_suggestion.services.yml doesn't matches the service name retrieved in LanguageSuggestionController.php line 37

Fix the language_suggestion.services.yml file to resolve the issue

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

amourow created an issue. See original summary.

amourow’s picture

Title: Unable to call controller function due to wrong service name » Unable to call LanguageSuggestionController function due to wrong service name
amourow’s picture

Status: Active » Needs review

Committed and made a MR for review.