Problem/Motivation
322 15/Jan 16:45 php Error TypeError: array_intersect(): Argument #2 must be of type array, null given in array_intersect() (line 225 of /var/www/docroot/modules/contrib/piwik_pro/src/PiwikProSnippet.php).
321 15/Jan 16:45 php Error ArgumentCountError: Too few arguments to function Drupal\piwik_pro\PiwikProSnippet::__construct(), 5 passed in /var/www/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php
320 15/Jan 16:45 php Error ArgumentCountError: Too few arguments to function Drupal\piwik_pro\PiwikProSnippet::__construct(), 5 passed in /var/www/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php
319 15/Jan 16:45 php Error ArgumentCountError: Too few arguments to function Drupal\piwik_pro\PiwikProSnippet::__construct(), 5 passed in /var/www/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php
318 15/Jan 16:45 php Error ArgumentCountError: Too few arguments to function Drupal\piwik_pro\PiwikProSnippet::__construct(), 5 passed in /var/www/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php
317 15/Jan 16:45 page not found Warning /themes/custom/siu/images/icons/custom-icons/%20%20%20%20%20%20%20%20%20%20%20%20siu_stethescope_thick%20%20%20%20%20%20.svg
316 15/Jan 16:45 page not found Warning /themes/custom/siu/images/icons/custom-icons/%20%20%20%20%20%20%20%20%20%20%20%20siu_medical_cross_on_computer%20%20%20%20%20%20.svg
315 15/Jan 16:45 page not found Warning /themes/custom/siu/images/icons/custom-icons/%20%20%20%20%20%20%20%20%20%20%20%20siu_caduceus_sybmol%20%20%20%20%20%20.svg
314 15/Jan 16:45 page not found Warning /themes/custom/siu/images/icons/custom-icons/%20%20%20%20%20%20%20%20%20%20%20%20people%20%20%20%20%20%20.svg
313 15/Jan 16:45 php Error ArgumentCountError: Too few arguments to function Drupal\piwik_pro\PiwikProSnippet::__construct(), 5 passed in /var/www/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php
Steps to reproduce
- Upgrade from (1.1.1 => 1.2.0)
- Goto /admin/config/services/piwik-pro
- Populate fields
- Leave uncheck all roles
- Save
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3500094-piwik_pro-typeerror-fix-3.patch | 670 bytes | _renify_ |
Issue fork piwik_pro-3500094
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
_renify_ commentedComment #3
_renify_ commentedComment #6
heikkiy commentedThank you for reporting this. We noticed similar issues before releasing 1.2.0 but seems we missed this part.
I created a merge request and added fallback values for this and a couple more new configs.
Does this MR fix your issue?
Comment #7
heikkiy commentedAdded other fallback values also and all pipelines are now passing.
Comment #8
Anonymous (not verified) commentedTried reproducing the issue, was able to reproduce it
Applied the patch from the MR and it fixes the issue
All pipelines are also green
Moving it to RTBC+
Comment #9
heikkiy commentedExcellent thanks. I added a couple more automated tests to make sure that the default empty settings also work. We will try to get 1.2.1 released ASAP.
Comment #10
Anonymous (not verified) commentedGreat, thanks!
Comment #11
dimas11 commentedI’m unable to reproduce the issue as described. There is an update hook (piwik_pro_update_9102()) that writes the configurations, so they should not be null if the update has been applied. Additionally, after saving the configuration form, the configurations are always populated with the corresponding values.
Could it be that the workflow is more complex than described in the task? In any case, the fix seems fine.
Comment #13
heikkiy commentedFixed and merged.