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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3385556-5.patch | 448 bytes | dineshkumarbollu |
| #3 | Screenshot from 2023-09-06 15-31-38.png | 9.48 KB | dineshkumarbollu |
| #2 | Screenshot from 2023-09-06 15-28-12.png | 78.17 KB | shiv_yadav |
Comments
Comment #2
shiv_yadavHello 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.
Comment #3
dineshkumarbollu commentedHi freelylw
I am able to uninstall the module successfully in my system having drupal 9.5.2 version.
Comment #4
dineshkumarbollu commentedThe error message is accessCheck() is not defined, It happening when module uses any EntityQuery's in code especially in Drupal 10 version, Thanks.
Comment #5
dineshkumarbollu commentedIn D10 i am unable to uninstall the module-Adobe Edge Fonts, providing patch please review.
Thanks
Comment #6
hmendes commentedThanks for the patch :)
Comment #8
hmendes commentedComment #10
vincent_jo commentedHi,
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?