The website encountered an unexpected error. when uninstalling the module

Created on 6 September 2023, about 1 year ago
Updated 7 September 2023, about 1 year ago

When I am uninstalling the @fontyourface - Adobe Edge Fonts, I got the error screen "The website encountered an unexpected error. Please try again later."

I got this from log :

Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of /home/aaa/aaa.com/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

please advise how can I uninstall this module

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code (general)

Created by

🇬🇧United Kingdom freelylw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @freelylw
  • 🇮🇳India shiv_yadav

    Hello freelylw, i have install & uninstall both process using drush command. i have not got any error.
    my system configuration: drupal-9.5.10
    php - 8.1.2

    * Attached screenshot for command as well.

  • 🇮🇳India dineshkumarbollu

    Hi freelylw

    I am able to uninstall the module successfully in my system having drupal 9.5.2 version.

  • 🇮🇳India dineshkumarbollu

    The error message is accessCheck() is not defined, It happening when module uses any EntityQuery's in code especially in Drupal 10 version, but module is compatible for drupal 9 only can you check drupal version once.Thanks

  • Status changed to Needs review about 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update about 1 year ago
    7 pass
  • 🇮🇳India dineshkumarbollu

    In D10 i am unable to uninstall the module-Adobe Edge Fonts, providing patch please review.

    Thanks

  • Status changed to RTBC about 1 year ago
  • 🇧🇷Brazil hmendes

    Thanks for the patch :)

  • Status changed to Fixed about 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Hi,

    the same issue here at modules version 4.0.0 and Drupal 10.1.

    Error after uninstalling local fonts at:
    /admin/appearance/font/local_font_config_entity
    Error: Call to a member function id() on false in Drupal\local_fonts\LocalFontConfigEntityListBuilder->buildRow() (line 39 of modules/contrib/fontyourface/modules/local_fonts/src/LocalFontConfigEntityListBuilder.php).

    AND Error:
    Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

    when trying to uninstall @fontyourface - Local Fonts

    The provided patch from above is already implemented in the .module file.

    can somebody help?

Production build 0.71.5 2024