When module installed. In the page /admin/config/content/nodeviewcount
has the errors:

Warning: in_array() expects parameter 2 to be array, null given in Drupal\nodeviewcount\Form\NodeViewCountSettingsForm->getRoleNamesOptions() (line 205 of modules/contrib/nodeviewcount/src/Form/NodeViewCountSettingsForm.php).
Warning: Invalid argument supplied for foreach() in Drupal\Core\Render\Element\Checkboxes::valueCallback() (line 100 of core/lib/Drupal/Core/Render/Element/Checkboxes.php).

Comments

lexy49 created an issue. See original summary.

adci_contributor’s picture

Thanks for bug report! We were fix it.

  • adci_contributor committed fd5eeb5 on 8.x-1.x
    Issue #2974957 by lexy49, adci_contributor: After install module null...
adci_contributor’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

nblack69’s picture

I still have this problem, how should i fix it and make module works ?
latest release nodeviewcount 8.x-1.0-alpha2

nblack69’s picture

Priority: Normal » Major