-
Notifications
You must be signed in to change notification settings - Fork 125
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
String could not be parsed as XML #133
Comments
@divined Do you have a __construct function in one of your commands where you do something else than dependency injection? |
I don't have custom commands ( |
I've got same error with snc/redis-bundle enabled in version 2 because it used ContainerAwareCommand in SF4.3 wich throw exception. Solved by updating this package. If you have an error, try searching "ContainerAwareCommand" with vscode in vendors folder (don't forgot to add an * to included files to search in any folder) |
I have the same error. It writes DEBUG messages to I solved it by adding an ugly line of code to the $xml = substr($xml, strpos($xml, '<?xml')); |
I have the same issue (Symfony 4.4), the XML passed into 11:35:40 DEBUG [snc_redis] Executing command "GET domain_doctrine[App\Entity\DomainStatistic$CLASSMETADATA][1]"
[
"tags" => [
"domain"
],
"url" => "/command-scheduler/detail/new",
"ip" => "192.168.33.1",
"http_method" => "GET",
"server" => "domain.dev",
"referrer" => "https://domain.dev/command-scheduler/list"
]
<?xml version="1.0" encoding="UTF-8"?> When I checked the monolg config for dev env: monolog:
handlers:
...
console:
type: console
process_psr_3_messages: false
channels: ['!event', '!doctrine', '!console'] Which I changed to: monolog:
handlers:
...
console:
type: console
process_psr_3_messages: false
channels: ['console'] This fixed it! |
The same as in #113
php bin/console list --format=xml - dont throw error, but i still get String could not be parsed as XML
The text was updated successfully, but these errors were encountered: