When using Symfony/Yaml::parse the input needs to be a string containing all the YAML. This means that just inserting the filepath is not working anymore.

Solution:

Change every Yaml::parse call from:

<?php
$source = "{$this->path}/{$this->id}.yml";
$this->data = Yaml::parse($source);
?>

To:

<?php
$source = "{$this->path}/{$this->id}.yml";
$content = file_get_contents($source);
$this->data = Yaml::parse($content);
?>
CommentFileSizeAuthor
#2 2923104-2.patch925 bytesjaapjan

Comments

jaapjan created an issue. See original summary.

jaapjan’s picture

StatusFileSize
new925 bytes

See attached patch, this should solve the issue for symfony/yaml:2x and symfony/yaml:3x.

jaapjan’s picture

kedramon’s picture

Status: Needs review » Reviewed & tested by the community

Tested, works good!

nielsvandermolen’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the work included the patch in the new release.

https://www.drupal.org/project/kpi_analytics/releases/8.x-1.0-alpha2

Status: Fixed » Closed (fixed)

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