Closed (fixed)
Project:
Snippet Manager
Version:
2.0.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
17 Aug 2023 at 21:37 UTC
Updated:
5 Sep 2023 at 04:29 UTC
Jump to comment: Most recent
After upgrading to Drupal 10 I got a white screen with this error when editing a text format:
Error: Call to undefined function Drupal\snippet_manager\Plugin\CKEditorPlugin\drupal_get_path() in Drupal\snippet_manager\Plugin\CKEditorPlugin\Snippet->getButtons() (line 51 of modules/contrib/snippet_manager/src/Plugin/CKEditorPlugin/Snippet.php).
The solution is to replace drupal_get_path() with \Drupal::service('extension.path.resolver')->getPath().
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
keshavv commentedComment #4
keshavv commentedThere is an issue and the given MR works well.
Changing status to major as This will break the site.
Comment #6
kvantstudio commentedThanks for the help in fixing and testing.
Comment #7
kvantstudio commentedComment #8
kvantstudio commented