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
- Install the jcarousel module.
- Enable the module.
- Attempt to use the jcarousel functionality.
- 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
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
Comment #3
rishi.kulshreshthaComment #4
robcarrThanks Rishi. Seems that this is a common problem on many modules running on D10