Problem/Motivation

Would like to continue to use drupal after uninstalling a custom profile

Steps to reproduce

Have ace_editor as dependency.
Have a custom profile installed.
uninstall custom profile.
try to edit content type that uses ace_editor.
You will get:
Drupal\Core\Extension\Exception\UnknownExtensionException: The profile does not exist. in Drupal\Core\Extension\ExtensionList->getPathname() (line 519 of core/lib/Drupal/Core/Extension/ExtensionList.php).

Proposed resolution

Comment out line 43 of web/modules/contrib/ace_editor/ace_editor.module and the error is not thrown

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ✅ Code review by maintainers
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Release notes snippet
  • ✅ Release ace_editor-2.0.3

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

Issue fork ace_editor-3567987

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

    jarupal created an issue. See original summary.

    jarupal’s picture

    Issue summary: View changes

    Please see line that needs to be removed out or addressed.
    Profiles are no longer required in drupal 10.3.

    Once this is done the error no longer happens:

    $paths_to_check = [
    '/libraries/ace',
    '/libraries/ace-builds',
    '/' . \Drupal::service('extension.list.module')->getPath('ace_editor') . '/libraries',
    /* '/' . \Drupal::service('extension.list.profile')->getPath(\Drupal::installProfile()) . '/libraries/ace', */
    ];

    rajab natshah’s picture

    Thanks, Jason, for reporting.
    I confirm
    I'm facing the same issue - When installing ACE Editor with Drupal CMS ~2.0 too

    rajab natshah’s picture

    Issue summary: View changes
    Status: Active » Needs review
    Issue tags: +ace_editor-2.0.3
    rajab natshah’s picture

    Status: Needs review » Fixed

    Now that this issue is closed, review the contribution record.

    As a contributor, attribute any organization that helped you, or if you volunteered your own time.

    Maintainers, credit people who helped resolve this issue.

    rajab natshah’s picture

    Issue summary: View changes

    ✅ Released ace_editor-2.0.3

    Status: Fixed » Closed (fixed)

    Automatically closed - issue fixed for 2 weeks with no activity.