Gelöst Synchronisation mit Webshop nicht möglich! Bitte prüfen Sie die Connector-Konfiguration.

Frank Hoffmeister

Sehr aktives Mitglied
11. Mai 2014
145
28
Nach neuinstallation von shopware 5.2.18 und Connector 2.0.14 kommt Fehlermeldung Die Shop-URL verweist nicht auf einen gültigen Shop! Bitte prüfen Sie die Connector-Konfiguration!

Jtlconnector im Browser aufgerufen, antwortet wie gewünscht.
Connectorsystemcheck durchgeführt, alles im grünen Bereich.

Kein Wartungsmodus aktiv, Shop und Wawi komplett leer, Install.log angeschaut, kein Fehler, Global log folgender Fehler: phar:Verzeichnis/Core/Rpc/RequestPacket.php - Line: 173 [] []
Notiz: phar: Verzeichnis/Core/Http/Request.php, 90): Undefined index: jtlrpc [] []
Sind aber nur zwei , also gehe ich davon aus, das es die Versuche über den Browser waren.

PS: hatte in dem gleichen Verzeichnis vorher schon einmal shopware 5.2.12 und connector 2.0.12 da funktionierte es einwandfrei.

Weiß jemand eine mögliche Lösung für mich?
 

Daniel B.

Moderator
17. Juni 2009
1.430
40
Puh,

schwierig zu sagen. Hast du vlt. mal das developer debug log aktiviert und nochmal versucht?
Welche Wawi Version nutzt du aktuell?
 

Frank Hoffmeister

Sehr aktives Mitglied
11. Mai 2014
145
28
Gibt es eine Anleitung für das debug log?
Mit 1.4.10 und mit 1.4.14 getestet.
Habe mir nur den errorlog und den Accesslog vom Server angeschaut. Im Errorlog steht nichts, und im Accesslog steht das sich der connector anmeldet und auf mytest.php will.
 

Daniel B.

Moderator
17. Juni 2009
1.430
40
Jap ... https://guide.jtl-software.de/jtl/K...#Verbindung_zum_Webshop_nicht_m.C3.B6glich.3F

Alternativ:

Im Root Verzeichnis vom Connector, gibt es einen Ordner "config" ... darin liegt eine config.json Datei.

Das Root Verzeichnis vom Connector liegt in:

1. engine/Shopware/Plugins/Community/Frontend/jtlconnector (Installiert via Store)
2. engine/Shopware/Plugins/Local/Frontend/jtlconnector (Installiert via FTP)

Dort müsstest du z.b. sowas hier sehen:

{
"category_mapping": true
}

Das sind Einstellungen im JSON Format. Bitte die Einstellung vom category_mapping nicht verändern oder löschen, lediglich etwas hinzufügen. Z.b.

{
"category_mapping": true,
"developer_logging": true
}

Mit "developer_logging" auf true, wird der Entwicklungsmodus aktiviert und es wird mehr gelogged.
Danach findest du im Root Verzeichnis des Connectors im Shopware einen Ordner "logs".
 

Frank Hoffmeister

Sehr aktives Mitglied
11. Mai 2014
145
28
Habe die config.json so geändert
{
"developer_logging": true,
"customer_order_pull_start_date": null,
"category_mapping": true,
}

developer logging stand schon drin habe es nur von false auf true geändert.
nachdem ich dann onlineshop url von http auf https geändert habe kam folgendes:

Exception bei core.connector.auth: Syntax error
Response:{"result":null,"error":{"code":0,"message":"Syntax error","data":"Exception: ParseException - File:
\/home\/users\usw. config.json - Line:15"},"jtlrpc":"2.0","id":"unknown"}

in der log Datei:

[2017-02-20 13:59:10] global.ERROR: Exception: SessionException - File: phar:///home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/connector.phar/vendor/jtl/connector/src/jtl/Connector/Application/Application.php - Line: 587 [] []
[2017-02-20 13:59:10] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []
[2017-02-20 13:59:10] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []
[2017-02-20 13:59:11] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []
[2017-02-20 13:59:12] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []
[2017-02-20 13:59:13] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []
[2017-02-20 13:59:15] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []
[2017-02-20 13:59:18] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []
[2017-02-20 13:59:22] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []
[2017-02-20 13:59:27] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []
[2017-02-20 13:59:33] global.ERROR: Exception: ParseException - File: /home/users/frank/www/shopware/engine/Shopware/Plugins/Local/Frontend/jtlconnector/config/config.json - Line: 15 [] []

sagt mir jetzt gar nichts, vor allem weil es keine Zeile 15 in der config.json gibt.

Bitte um Erleuchtung 🙂
 

Frank Hoffmeister

Sehr aktives Mitglied
11. Mai 2014
145
28
Hab noch einen errorlog per Mail vom Server bekommen.

Shopware\Components\CSRFTokenValidationException: The provided X-CSRF-Token for path "/shopware/jtlconnector//dbeS/mytest.php" is invalid. Please go back, reload the page and try again. in /home/users/frank/www/shopware/engine/Shopware/Components/CSRFTokenValidator.php:158
Stack trace:
#0 /home/users/frank/www/shopware/engine/Library/Enlight/Event/Handler/Default.php(91): Shopware\Components\CSRFTokenValidator->checkFrontendTokenValidation(Object(Enlight_Controller_ActionEventArgs))
#1 /home/users/frank/www/shopware/engine/Library/Enlight/Event/EventManager.php(214): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs))
#2 /home/users/frank/www/shopware/engine/Library/Enlight/Controller/Action.php(141): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#3 /home/users/frank/www/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight_Controller_Action->dispatch('dbeSAction')
#4 /home/users/frank/www/shopware/engine/Library/Enlight/Controller/Front.php(223): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#5 /home/users/frank/www/shopware/engine/Shopware/Kernel.php(180): Enlight_Controller_Front->dispatch()
#6 /home/users/frank/www/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel->handle(Object(Enlight_Controller_Request_RequestHttp), 1, true)
#7 /home/users/frank/www/shopware/engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#8 /home/users/frank/www/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#9 /home/users/frank/www/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(275): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true)
#10 /home/users/frank/www/shopware/engine/Shopware/Components/HttpCache/AppCache.php(133): Symfony\Component\HttpKernel\HttpCache\HttpCache->invalidate(Object(Symfony\Component\HttpFoundation\Request), true)
#11 /home/users/frank/www/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(206): Shopware\Components\HttpCache\AppCache->invalidate(Object(Symfony\Component\HttpFoundation\Request), true)
#12 /home/users/frank/www/shopware/engine/Shopware/Components/HttpCache/AppCache.php(114): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /home/users/frank/www/shopware/shopware.php(117): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#14 {main}​

Als Request:

{
"uri": "/shopware/jtlconnector//dbeS/mytest.php",
"method": "POST",
"query": {
"module": "frontend",
"controller": "jtlconnector",
"action": "dbeS",
"mytest.php": ""
},
"post": {
"uID": "",
"uPWD": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
"kKunde": "0",
"kBestellung": "0",
"kLieferadresse": "0",
"kZahlungseingang": "0",
"wawiversion": "114100"
}
}​

Das uPWD habe ich durch xx ersetzt, steht das Passwort aus der Wawi drin und ist auch identisch.
 

Frank Hoffmeister

Sehr aktives Mitglied
11. Mai 2014
145
28
OK, also der csrf token validation exception ist weg. Lag daran das ich es mal mit https statt http versucht habe.

Der Fehler mit json in Zeile 15 ist noch da.

Durch den tokenfehler weiß ich aber jetzt das er den Shop anspricht und der Shop auch antwortet.
 

Daniel B.

Moderator
17. Juni 2009
1.430
40
Jetzt hast du eine ParseException in deiner config.json

{
"developer_logging": true,
"customer_order_pull_start_date": null,
"category_mapping": true,
}

Das letzte Komma muss hinter dem true weg.
 
  • Gefällt mir
Reaktionen: Frank Hoffmeister

Frank Hoffmeister

Sehr aktives Mitglied
11. Mai 2014
145
28
Danke schön, jetzt geht es, ob es tatsächlich daran lag weiß ich nicht, weil gestern abend gab es auch noch eine Aktualisierung diverser Pakete für Ubuntu 16.04.
Das Komma hatte ich aus Versehen gesetzt, sonst eigentlich keine Änderung bis auf den Validation Token und developer_logging: true gemacht.🙂
 

Daniel B.

Moderator
17. Juni 2009
1.430
40
Aber an der config.json kann es nicht gelegen haben 🙂 Vielleicht war wirklich ein Ubuntu Paket nicht ganz ok.
 

Ähnliche Themen