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

Comments

freelylw created an issue. See original summary.

shiv_yadav’s picture

StatusFileSize
new78.17 KB

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.

dineshkumarbollu’s picture

StatusFileSize
new9.48 KB

Hi freelylw

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

dineshkumarbollu’s picture

The error message is accessCheck() is not defined, It happening when module uses any EntityQuery's in code especially in Drupal 10 version, Thanks.

dineshkumarbollu’s picture

Status: Active » Needs review
StatusFileSize
new448 bytes

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

Thanks

hmendes’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +D10 compatibility

Thanks for the patch :)

  • dineshkumarbollu authored c9e929c2 on 8.x-3.x
    Issue #3385556 by dineshkumarbollu, shiv_yadav, freelylw, hmendes: The...
hmendes’s picture

Status: Reviewed & tested by the community » Fixed
Related issues: +#3385951: Drupal 10 Compatibility

Status: Fixed » Closed (fixed)

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

vincent_jo’s picture

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?