Problem/Motivation

The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\tooltip\Plugin\CKEditorPlugin\Tooltip::getModulePath() in Drupal\tooltip\Plugin\CKEditorPlugin\Tooltip->getPluginFolderPath() (line 27 of modules/contrib/tooltip/src/Plugin/CKEditorPlugin/Tooltip.php).

Steps to reproduce

D 9.2.18 and several other module.
Installed via composer. Checked the files, all are in place.

Issue fork tooltip-3284139

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

    bennos created an issue. See original summary.

    Priyansh Chourasiya’s picture

    Status: Active » Needs review
    Issue tags: +undefined function
    StatusFileSize
    new2.31 KB

    I have defined the function getModulePath.

    himanshu_jhaloya’s picture

    Assigned: Unassigned » himanshu_jhaloya

    Hi @Priyansh Chourasiya
    i am reviewing this patch

    himanshu_jhaloya’s picture

    StatusFileSize
    new147.24 KB
    new215.95 KB

    Hi @Priyansh Chourasiya I reviewed your patch.

    himanshu_jhaloya’s picture

    Assigned: himanshu_jhaloya » Unassigned
    Status: Needs review » Reviewed & tested by the community
    himanshu_jhaloya’s picture

    himanshu_jhaloya’s picture

    Assigned: Unassigned » himanshu_jhaloya
    StatusFileSize
    new34.09 KB
    new56.8 KB

    It is applied cleanly. I tested the patch no error found

    himanshu_jhaloya’s picture

    Assigned: himanshu_jhaloya » Unassigned
    himanshu_jhaloya’s picture

    himanshu_jhaloya’s picture

    This issue moving to RTBC

    sudishth’s picture

    Status: Reviewed & tested by the community » Needs work

    Drush updb not working with this patch

     PHP Fatal error:  Declaration of Drupal\tooltip\Plugin\CKEditorPlugin\Tooltip::getModulePath($module_name) must be compatible with Drupal\ckeditor\CKEditorPluginBase::getModulePath(string $module_name): string in /app/docroot/modules/contrib/tooltip/src/Plugin/CKEditorPlugin/Tooltip.php on line 190
    >  [warning] Drush command terminated abnormally.