Boolean passed as argument instead of AccessResultInterface in SnippetAccess which results in site failure.

Error message "TypeError: Argument 1 passed to Drupal\Core\Access\AccessResult::andIf() must implement interface Drupal\Core\Access\AccessResultInterface, boolean given, called in /var/www/html/web/modules/contrib/hotjar/src/SnippetAccess.php on line 158 in Drupal\Core\Access\AccessResult->andIf() (line 375 of core/lib/Drupal/Core/Access/AccessResult.php)."

Comments

CbStuart created an issue. See original summary.

cbstuart’s picture

  • tikaszvince committed 4f89eb1 on 8.x-1.x authored by CbStuart
    Issue #3035425 by CbStuart: Boolean passed as argument instead of...

  • tikaszvince committed 68f749b on 8.x-2.x authored by CbStuart
    Issue #3035425 by CbStuart: Boolean passed as argument instead of...
tikaszvince’s picture

Version: 8.x-1.2 » 7.x-1.3
Status: Active » Fixed

Hi @CbStuart,
Thank you for your contribution. New release contains your work.

cbstuart’s picture

Hey, just noticed you changed the version to D7. When picking a version I couldn't find 8x-1.3 maybe you can change it over to that?

tikaszvince’s picture

Version: 7.x-1.3 » 8.x-1.3

Change it D8. (Sorry, I don't understand what happened)
Thanks again

Status: Fixed » Closed (fixed)

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