Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RuntimeException] on composer update #193

Closed
emgiezet opened this issue Oct 11, 2012 · 15 comments
Closed

[RuntimeException] on composer update #193

emgiezet opened this issue Oct 11, 2012 · 15 comments

Comments

@emgiezet
Copy link
Contributor

Hi!

After your last commit mine project is throwing

[RuntimeException] The service "jms_serializer.doctrine_proxy_subscriber" (class: JMS\SerializerBundle\Serializer\EventDispatcher\Subscriber\DoctrineProxySubscriber) does not implement the EventSubscriberInterface.

When i just do the composer update. Symfony2 cache can't warmup also. I pulling code from dev-master.

@schmittjoh
Copy link
Owner

Could you check the exact version that composer checked out for you?

@emgiezet
Copy link
Contributor Author

    {
        "package": "jms/serializer-bundle",
        "version": "dev-master",
        "source-reference": "2309efe970dd1ad03ea2acfdf5e03b6404de341b",
        "commit-date": "1349900371"
    },

@schmittjoh
Copy link
Owner

I can't reproduce this.

Could you remove your vendor folder and re-install?

@emgiezet
Copy link
Contributor Author

After vendor removal I'm still having this problem.

This is mine composer required packages:

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.1.*",
    "doctrine/orm": ">=2.2.3,<2.4-dev",
    "doctrine/doctrine-bundle": "1.0.*",
    "twig/extensions": "1.0.*",
    "symfony/assetic-bundle": "2.1.*",
    "symfony/swiftmailer-bundle": "2.1.*",
    "symfony/monolog-bundle": "2.1.*",
    "sensio/distribution-bundle": "2.1.*",
    "sensio/framework-extra-bundle": "2.1.*",
    "sensio/generator-bundle": "2.1.*",
    "jms/security-extra-bundle": "1.2.*",
    "jms/di-extra-bundle": "1.1.*",
    "behat/behat":  "2.4.*@stable",
    "behat/mink":   "1.4.*@stable",
    "behat/symfony2-extension":      "*",
    "behat/mink-extension":          "*",
    "behat/mink-browserkit-driver":  "*",
    "behat/mink-selenium2-driver":   "*",
    "behat/mink-selenium-driver":   "*",
    "behat/mink-zombie-driver":      "*",
    "doctrine/doctrine-fixtures-bundle": "dev-master",
    "stof/doctrine-extensions-bundle":   "dev-master",
    "doctrine/doctrine-migrations-bundle":  "dev-master",
    "ornicar/apc-bundle":    "*",
    "exercise/elastica-bundle": "*",
    "jms/serializer-bundle": "dev-master",
    "stealth35/apc-profiler-bundle": "*",
    "whiteoctober/breadcrumbs-bundle":   "*",
    "liuggio/excelbundle": ">=1.0.0",
    "EasyCSV": "dev-master",
    "mockery/mockery": ">=0.7.2",
    "pest": "dev-master",
    "willdurand/expose-translation-bundle": "dev-master",
    "friendsofsymfony/jsrouting-bundle":  "dev-master"
}

@schmittjoh
Copy link
Owner

Could you please your complete composer.json, or better yet set-up a fork of the standard edition where I can see the bug.

Currently, I'm getting this error when trying to install your deps:

johannes@johannes-PC-ubuntu:~/workspace$ git clone [email protected]:symfony/symfony-standard.git testfoo
Cloning into 'testfoo'...
remote: Counting objects: 3102, done.
remote: Compressing objects: 100% (1411/1411), done.
remote: Total 3102 (delta 1899), reused 2708 (delta 1582)
Receiving objects: 100% (3102/3102), 455.23 KiB | 642 KiB/s, done.
Resolving deltas: 100% (1899/1899), done.
johannes@johannes-PC-ubuntu:~/workspace$ cd testfoo
johannes@johannes-PC-ubuntu:~/workspace/testfoo$ nano composer.json

Error leyendo /home/johannes/.nano_history: Permiso denegado

Pulsa intro para continuar iniciando nano

johannes@johannes-PC-ubuntu:~/workspace/testfoo$ composer install 
Loading composer repositories with package information
Installing dependencies from lock file
Your lock file is out of sync with your composer.json, run "composer.phar update" to update dependencies
  - Installing twig/twig (dev-master 120cde3)
    Cloning 120cde3fa54c31047edf1cd003752ca119dec9a8
^Cjohannes@johannes-PC-ubuntu:~/workspace/testfoo$ composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package twig/extensions 1.0.* could not be found.
  Problem 2
    - The requested package ornicar/apc-bundle * could not be found.
  Problem 3
    - The requested package exercise/elastica-bundle * could not be found.
  Problem 4
    - The requested package stealth35/apc-profiler-bundle * could not be found.
  Problem 5
    - The requested package whiteoctober/breadcrumbs-bundle * could not be found.
  Problem 6
    - The requested package easycsv dev-master could not be found.
  Problem 7
    - The requested package pest dev-master could not be found.
  Problem 8
    - Installation request for symfony/assetic-bundle 2.1.* -> satisfiable by symfony/assetic-bundle v2.1.0.
    - symfony/assetic-bundle v2.1.0 requires kriswallsmith/assetic 1.1.* -> no matching package found.
  Problem 9
    - Installation request for doctrine/doctrine-fixtures-bundle dev-master -> satisfiable by doctrine/doctrine-fixtures-bundle dev-master.
    - doctrine/doctrine-fixtures-bundle dev-master requires doctrine/data-fixtures * -> no matching package found.
  Problem 10
    - Installation request for doctrine/doctrine-migrations-bundle dev-master -> satisfiable by doctrine/doctrine-migrations-bundle dev-master.
    - doctrine/doctrine-migrations-bundle dev-master requires doctrine/migrations * -> no matching package found.
  Problem 11
    - Installation request for liuggio/excelbundle >=1.0.0 -> satisfiable by liuggio/ExcelBundle v1.0.0.
    - liuggio/ExcelBundle v1.0.0 requires n3bstreamresponse >=1.0.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.

johannes@johannes-PC-ubuntu:~/workspace/testfoo$ 

@Pop-Code
Copy link

Hi same problem here, after update

[RuntimeException]
The service "jms_serializer.doctrine_proxy_subscriber" (class: JMS\SerializerBundle\Serializer\EventDispatcher\Subscriber\DoctrineProxySubscriber) does not implement the EventSubscriberInterface.

@Pop-Code
Copy link

Is there a way to downgrade my version ?

@schmittjoh
Copy link
Owner

You can change your composer.json to require the 0.9.* version.

@Pop-Code
Copy link

Ok thanks. Will try that.

@emgiezet
Copy link
Contributor Author

I got the issue :D

It's because PHP 5.3.6 and his bug: http://grokbase.com/t/php/php-bugs/11431b4bxc/php-bug-bug-54457-new-is-subclass-of-inconsistent-result-when-used-with-interfaces

similiar issue here:
pixnet/pixframework#14

So you need to set required php version > 5.3.6

Or we can replace the is_subclass_of with instanceof i got the pull request

@emgiezet
Copy link
Contributor Author

Opened a Pull Request

@emgiezet
Copy link
Contributor Author

Code is waiting for merge. All because of that Ubuntu 12.04 got PHP 5.3.6 as a default package.

@schmittjoh
Copy link
Owner

Closing this in favor of the PR.

@hexmode
Copy link

hexmode commented May 16, 2013

Seeing this issue on Debian with php 5.4.4

@hexmode
Copy link

hexmode commented May 16, 2013

Sorry, maybe not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants