Steps to recreate:
1. Download module on Drupal core 8.3.2 version
2. Turn on Adobe Analytics module
3. Add variables to list and save
Get error in phplog:
Uncaught PHP Exception InvalidArgumentException: "The configuration property extra_variables.0.name doesn't exist." at webroot/core/lib/Drupal/Core/Config/Schema/ArrayElement.php line 74
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 2880940-9-adobe_analytics-fix_extra_variables_schema.patch | 825 bytes | juampynr |
| #3 | 2880940-schema-fix-extra_variables-error.patch | 467 bytes | EsmeraldaUBM |
Comments
Comment #2
EsmeraldaUBM commentedSorry so after having looked at this (and researching similar problems) it seems like this might be fixable in the schema by just adding:
.* to end of extra_variables
So the schema would be:
extra_variables.*:
does this seem correct?
Comment #3
EsmeraldaUBM commentedComment #4
damienmckennaDon't forget to set the issue status to "needs review" when you upload a patch, it helps others know there's something to look at. Thanks!
Comment #5
EsmeraldaUBM commentedSorry about that thanks! :)
Comment #6
kmoll commentedI will review this at the code sprint at Drupacon Vienna this week.
Comment #7
kmoll commentedComment #8
juampynr commentedWorks for me.
Comment #9
juampynr commentedActually, when I started working on the module's tests I discovered that the configuration schema is broken. Here is a patch that fixes it.
Comment #10
kmoll commentedThanks, @juampynr, I just circled back around to this. I tested your patch and can confirm its working and fixed the issue. I like declaring the config objects better than just adding the .* to the config element. I will commit shortly. Thanks!
Comment #11
kmoll commentedComment #13
kmoll commentedChange has been committed, I will cut a new alpha2 tag with the change shortly to make it easier to be fetched by composer.
Comment #14
kmoll commented