Incorrect path to yml file
  • Look at this error message:

    [19-Feb-2014 14:27:58 Europe/Stockholm] Newscoop error: file_get_contents(/www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/library/Newscoop/Gimme/../../../../newscoop/src/Newscoop/GimmeBundle/Resources/config/serializer/newscoop/Article.yml): failed to open stream: No such file or directory in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/library/Newscoop/Gimme/PropertyMatcher.php:33

    It looks for a folder called newscoop, but on my system the folder name is public_html so it can't find the file!

    In the file PropertyMatcher.php, this line:
            $entityDescription = $yaml->parse(file_get_contents(__DIR__.'/../../../../newscoop/src/Newscoop/GimmeBundle/Resources/config/serializer/newscoop/'.$class.'.yml'));

    should be changed to this:
            $entityDescription = $yaml->parse(file_get_contents(__DIR__.'/../../../src/Newscoop/GimmeBundle/Resources/config/serializer/newscoop/'.$class.'.yml'));

    Post edited by Sebastian Olsson (2) at 2014-02-19 09:22:54
  • 3 Comments sorted by
  • These files have this type of error:

    application/phpunit.bootstrap.php
    src/Newscoop/GimmeBundle/Tests/ContainerAwareUnitTestCase.php
    src/Newscoop/GimmeBundle/Serializer/Article/FieldsHandler.php
    library/Newscoop/Gimme/PropertyMatcher.php

    Maybe even more files have this mistake?
  • Vote Up0Vote Down Paweł MikołajczukPaweł Mikołajczuk
    Posts: 72Member, Sourcefabric Team
    Hey,

    thia will be fixed in 4.3.

    For now you can update library/Newscoop/Gimme/PropertyMatcher.php with https://github.com/sourcefabric/Newscoop/blob/959f52689916bc55528a30ac72563824d18e9dc6/newscoop/library/Newscoop/Gimme/PropertyMatcher.php
  • I created a pull request for the other files. 
    https://github.com/sourcefabric/Newscoop/pull/719