i upgraded symfony-sonata to 3.x and getting error.
Fatal error: Uncaught Doctrine\ORM\Mapping\MappingException: The target-entity Application\Sonata\ClassificationBundle\Entity\Category cannot be found in 'App\Sonata\MediaBundle\Entity\Media#category'. in /vagrant/src/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php on line 762
Which. I don't know how to resolve. Any Ideas?
in sonata 2.x everything worked
Why error pointing to Application\ instead of App\ ?
The classification bundle has been made optional recently. Just reinstall it ;)
Related
Did somebody tried Doctrine 2.9.x-dev? I am using with symfony 5.2.6. I know it is a dev version but when run any command I get an error for example:
[critical] Error thrown while running command "'doctrine:schema:create'". Message: "An option named "em" already exists."
and when I run only bin/console i get error
[critical] An error occurred while using the console. Message: "An option named "em" already exists."
An option named "em" already exists.
It is because this is dev version (2.8.4 is working) or am I missing something?
The error comes from doctrine/doctrine-bundle - it seems like it is not compatible with doctrine/orm 2.9.x-dev yet.
The problem is already being worked on, but the PR has not been merged yet, see: https://github.com/doctrine/DoctrineBundle/pull/1327
If you really need the dev version to work with Symfony right now, you will need to apply the changes manually, but I would recommend waiting for a stable release.
Trying to update drupal through drush, I get the following error:
phpDocumentor\Reflection\DocBlock\Tags\BaseTag cannot implement
phpDocumentor\Reflection\DocBlock\Tag - it is not an interface in
/Users/team1/workspace/xxxxx/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/BaseTag.php,
line 21
How can it be solved?
I had this issue, and at the I discovered that upgrading to phpunit 5.7 (from phpunit 4.8) solved it.
Hope it helps anyone.
Excuse my english, i am french. I have a error when i install fos User bundle of symfony2.
I follow all instructions on this page : http://symfony.com/doc/current/bundles/FOSUserBundle/index.html
When i do this command : php bin/console doctrine:schema:update --force, i have a error.
This is my error :
Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput' not found in C:\P
rogram Files\EasyPHP-DevServer-14.1VC9\Ecommerce\app\console on line 19
Help me please
It's late but it could help others people who are facing the same problem.
It seems like you are missing a component. I would suggest trying a "composer update" (I don't think it will work) in this case, i will be a bit more brutal and delete my vendor folder and reinstall everything with a "composer install".
i've just installed the RabbitMqBundle for Symfony2.
https://github.com/videlalvaro/RabbitMqBundle
I've followed the example on the page, literally copy&pasted the configuration and i'm always getting this error:
Warning: DOMElement::setAttribute() expects parameter 2 to be string, object given
A bit further down the line:
at DOMElement->setAttribute('class', object(Definition)) in XmlDumper.php line 182
Does anyone have an idea? Did i do anything wrong? Just installed via composer etc.
Regards
Actually updating from Symfony 2.6.3 to 2.6.8 fixed it!
Sorry.
Regards
after installing symfony 2.6 and when executing an error message is displayed:
FatalErrorException in DirectoryResource.php line 82:
Error: Undefined class constant 'FOLLOW_SYMLINKS'
the error is in the bundle: kriswallsmith
Please help me.
thank you in advance
Which versio of PHP are you running under? 5.2?
This sounds awfully similar to this issue report: https://github.com/caefer/sfImageTransformExtraPlugin/issues/5
The class constant, FOLLOW_SYMLINKS, is part of the RecursiveDirectoryIterator, which according to the PHP.net manual page, was added in 5.3.1 and also 5.2.11. At least version 5.3.9 is usually recommended or required by various frameworks because of various issues in prior versions.
The package is "kriswallsmith/assetic"