Problem/Motivation

The jcarousel module is encountering an issue where it's triggering a Symfony\Component\DependencyInjection\Exception,
indicating that the "site.path" service is missing. This issue needs to be addressed to ensure the proper functioning
of the jcarousel module.

Steps to reproduce

  1. Install the jcarousel module.
  2. Enable the module.
  3. Attempt to use the jcarousel functionality.
  4. Observe the Symfony\Component\DependencyInjection\Exception error related to the missing "site.path" service.

Proposed resolution

To resolve this issue, we can use the following solution:

\Drupal::getContainer()->getParameter('site.path');

This code retrieves the "site.path" service parameter, ensuring that it is available when using the jcarousel module.

Remaining tasks

  • Implement the solution by incorporating the provided code to address the missing "site.path" service issue.

User interface changes

This issue does not involve any user interface changes.

API changes

This issue may involve changes to the module's code to ensure that the "site.path" service is available using the provided code.

Data model changes

This issue does not involve any data model changes.

Issue fork jcarousel-3396927

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

Rishi Kulshreshtha created an issue. See original summary.

rishi.kulshreshtha’s picture

Assigned: rishi.kulshreshtha » Unassigned
Status: Needs work » Needs review
robcarr’s picture

Status: Needs review » Reviewed & tested by the community

Thanks Rishi. Seems that this is a common problem on many modules running on D10