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

import crashes with SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given #30

Closed
peerlight opened this issue Sep 29, 2022 · 1 comment
Labels

Comments

@peerlight
Copy link

Bug description

import crashes with SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given

Steps to reproduce

hit button "Import ausführen" in Contao or let cron work

Expected behavior

import of data in files/maklermodul/upload

Log

Contao says SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given
Log writes

[2022-09-29 14:20:17] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://www.DOMAIN.de/contao?act=import&do=maklermodulSetup&ref=p9tdd8Nq","method":"GET"} []
[2022-09-29 14:20:17] request.CRITICAL: Uncaught PHP Exception TypeError: "SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given" at /www/htdocs/.../vendor/pdir/maklermodul-sync-bundle/src/Classes/Domain/Model/ImportTarget.php line 511 {"exception":"[object] (TypeError(code: 0): SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given at /www/htdocs/.../vendor/pdir/maklermodul-sync-bundle/src/Classes/Domain/Model/ImportTarget.php:511)"} []

Environment

PHP 7.4.30
Contao 4.9.34
maklermodul-bundle 2.8.1
maklermodul-sync-bundle 2.7.1

@peerlight peerlight added the bug label Sep 29, 2022
@MDevster
Copy link
Contributor

Fixed in 2.8.2

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

No branches or pull requests

2 participants