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

Comments

EsmeraldaUBM created an issue. See original summary.

EsmeraldaUBM’s picture

Sorry 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?

EsmeraldaUBM’s picture

damienmckenna’s picture

Status: Active » Needs review

Don'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!

EsmeraldaUBM’s picture

Sorry about that thanks! :)

kmoll’s picture

I will review this at the code sprint at Drupacon Vienna this week.

kmoll’s picture

Assigned: Unassigned » kmoll
juampynr’s picture

Status: Needs review » Reviewed & tested by the community

Works for me.

juampynr’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new825 bytes

Actually, when I started working on the module's tests I discovered that the configuration schema is broken. Here is a patch that fixes it.

kmoll’s picture

Thanks, @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!

kmoll’s picture

  • kmoll committed 510c412 on 8.x-1.x authored by juampynr
    Issue #2880940 by EsmeraldaUBM, juampynr, kmoll: Error: Configuration...
kmoll’s picture

Change has been committed, I will cut a new alpha2 tag with the change shortly to make it easier to be fetched by composer.

kmoll’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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