Notices are thrown when we try to install module and run some tests on CI (for our case Travis). This can be avoided.
stdClass Object
│ (
│ [wid] => 361
│ [uid] => 0
│ [type] => php
│ [message] => %type: @message in %function (line %line of %file) @backtrace_string.
│ [variables] => Array
│ (
│ [%type] => Notice
│ [@message] => Drupal\Core\Render\Markup Object
│ (
│ [string:protected] => Undefined variable: alias
│ )
│
│ [%function] => cookieconsent_page_attachments()
│ [%file] => /home/travis/build/docroot/modules/contrib/cookieconsent/cookieconsent.module
│ [%line] => 90
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2946306-3.patch | 1.01 KB | nikunjkotecha |
Comments
Comment #2
nikunjkotechaComment #3
nikunjkotechaComment #4
ericshell commentedI am also experiencing this issue. @nikunjkotecha's patch in #3 worked perfectly.
Comment #5
markhalliwellI too created a similar issue/patch (#2975400: Notice: Undefined variable: alias in cookieconsent_page_attachments()) and closing it as a dup of this one.
Comment #7
nitebreed