RabbitMqBundle, always getting error. Symfony2 - symfony

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

Related

Suddenly getting error in Wpbakey plugin/ Visual Composer

I am wokring on a theme in wordpress which contains visual composer and it was working perfectly last day. But today when i am trying to edit the page using visual composer frontend it keeps on loading and in backed when i click on save button nothing happens. So i check the chrome console and fond this error. Any help will be appriciated and thanks in advance i am attaching the error below.
Uncaught TypeError: Cannot read property 'label' of undefined
at Object.defaults (frontend-editor.min.js:3)
at frontend-editor.min.js:7
at Function.m.each.m.forEach (load-scripts.php:97)
at Object.<anonymous> (frontend-editor.min.js:7)
at Object.getDefaults (frontend-editor.min.js:1)
at n.vcAddShortcodeDefaultParams (frontend-editor.min.js:1)
at _ (load-scripts.php:99)
at m (load-scripts.php:99)
at f (load-scripts.php:99)
at Object.u.trigger (load-scripts.php:99)
I am not an expert by any means but i have found the solution by myself so wanted to share the answer if it can help anybody. The problem was the PHP version. After I changed the PHP version of my server form PHP 7.1 to PHP 5.6 it solved the issue.

"it is not an interface in" error updating drupal (from 8.3.2 to 8.3.4)

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.

Upgrading symfony sonata to 3.x

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 ;)

Sylius - empty string insted of ShippingMethod in shipping action

In http://localhost:8000/checkout/shipping I got an error
CRITICAL - Uncaught PHP Exception
Symfony\Component\Form\Exception\UnexpectedTypeException: "Expected
argument of type "Sylius\Component\Core\Model\ShippingMethod",
"string" given" at
/home/krzysztof/Dokumenty/praca/smartbyte/sylius/src/Sylius/Bundle/ResourceBundle/Form/DataTransformer/ObjectToIdentifierTransformer.php
line 58
and the $value of transform method is an empty string.
It's strange because I got this error only on my project version, and on contribute version everything is ok, despite the version of sylius is in both the same (latest commit). Moreover I don't overwrite ShippingMethod so I don't now why this strange behaviour happens.
Today, I found the same error.
But just days ago everything worked. I often update the project from the git (master branch) and by composer. Therefore I started to look for errors in the last commit. After half a day with the debugger I found no critical changes in the last Sylius commits.
I drew attention to the version of Symfony. It's: 2.8.3. I rolled up to 2.8.0 and the problem has been resolved. I did not understand what was the cause of the error. But the fact remains - selection the delivery method form of Sylius with Symfony v2.8.3 is not working.
I hope this helps.

Undefined class constant 'FOLLOW_SYMLINKS

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"

Resources