sonata-project / SonataMediaBundle

Symfony SonataMediaBundle
https://docs.sonata-project.org/projects/SonataMediaBundle
MIT License
450 stars 496 forks source link

[3.0] Unable to parse file gaufrette.xml #987

Closed froid1911 closed 8 years ago

froid1911 commented 8 years ago

Hello my friends,

i've started a new project with symfony 3.0 and the mediabundle (dev-master) and run into an error

[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
Unable to parse file "/home/frank/masterarbeit/ecoin/vendor/sonata-project/media-bundle/DependencyInjection/../Resources/config/gaufrette.xml".  

[InvalidArgumentException]
[ERROR 1866] Element '{http://symfony.com/schema/dic/services}service', attribute 'factory-class': The attribute 'factory-class' is not allowed. (in /home/frank/masterarbeit/ecoin/ - line 16, column 0)

[ERROR 1866] Element '{http://symfony.com/schema/dic/services}service', attribute 'factory-method': The attribute 'factory-method' is not allowed. (in /home/frank/masterarbeit/ecoin/ - line 16, column 0)  

[ERROR 1866] Element '{http://symfony.com/schema/dic/services}service', attribute 'factory-service': The attribute 'factory-service' is not allowed. (in /home/frank/masterarbeit/ecoin/ - line 50, column  0)

[ERROR 1866] Element '{http://symfony.com/schema/dic/services}service', attribute 'factory-method': The attribute 'factory-method' is not allowed. (in /home/frank/masterarbeit/ecoin/ - line 50, column 0 )

Do you have any idea how i can fix this?

kind regards, frank

LeoPelan commented 8 years ago

Look here, hope it helps Fixed deprecated factory-*

I'm also on symfony 3.0 but I can't get MediaBundle worked. I think this bundle is not compatible with symfony 3.

- sonata-project/media-bundle 2.3.3 requires symfony/symfony ~2.3 -> no matching package found.
- sonata-project/media-bundle 2.3.2 requires symfony/symfony ~2.3 -> no matching package found.
- sonata-project/media-bundle 2.3.1 requires symfony/symfony ~2.3 -> no matching package found.
- sonata-project/media-bundle 2.3.0 requires symfony/symfony ~2.3 -> no matching package found.
- Installation request for sonata-project/media-bundle ~2.3 -> satisfiable by sonata-project/media-bundle[2.3.0, 2.3.1, 2.3.2, 2.3.3].

If you succeed noticed me please ! Thanks,

EDIT : In fact it's not compatible with 3.0 source I'm so disappointed...

deantomasevic commented 8 years ago

I have the same issue. Is there a roadmap for the compatibility to symfony3?

Thanks!

php-nik commented 8 years ago

please fix this bug

greg0ire commented 8 years ago

@php-nik : If you are in such a hurry, pick up #993 and make it mergeable.

OskarStark commented 8 years ago

this should be fixed through #1049 in 3.x, but is not released yet

mysterty commented 8 years ago

Hello, i still have this issue, any news ?

greg0ire commented 8 years ago

@Soullivaneuh , can you release 3.0.1 to fix this ?

soullivaneuh commented 8 years ago

@greg0ire Some minor PR are already merged. It will be a 3.1.0.

soullivaneuh commented 8 years ago

@greg0ire @mysterty https://github.com/sonata-project/SonataMediaBundle/releases/tag/3.1.0

greg0ire commented 8 years ago

Thanks @Soullivaneuh . @mysterty , can you run composer update -v and confirm the bug is fixed?

mysterty commented 8 years ago

This one bug is fixed, but still some work on documentation

  - Removing sonata-project/media-bundle (3.0.0)
  - Installing sonata-project/media-bundle (3.1.0)

i go back to https://github.com/sonata-project/SonataMediaBundle/issues/1083