Beantwortet

Artikelsynchronisation zu Shopware 6 schlägt fehl, es wird nur eine Variante übertragen

  • 1 March 2022
  • 1 Antwort
  • 246 Ansichten

Hallo,

 

wir haben Xentral einen Artikel angelegt und diverse Varianten durch die Matrixprodukt-Funktion erstellt. 

WIr wollten den Artikel dann mit allen Varianten zu Shopware 6.4.4 übertragen. 

Dort kommt genau eine Variante an, der Rest wird ignoriert. Wir haben vorher die neuste Shopware Version im Einsatz gehabt und den Verdacht, das es daran liegen könnte. Leider hat sich nach der Installation von 6.4.4 auch nichts an dem Fehler geändert.

 

Der Prozess “artikelübertragen” liefert folgende Fehlermeldung im Log:

 

Array( [cmd] => cd /var/www/xentral/cronjobs && /usr/bin/php7.4 command.php 22 12294 2>&1 [parameter] => artikeluebertragen [returnvar] => 0 [lastLines] => Array ( [0] =>

Referer: --

[1] =>

UserAgent: --

[2] =>

AJAX-Request: false

[3] =>

HTTPS-Request: false

[4] =>

Timestamp: 1646151542

[5] =>

ArgumentCountError

Too few arguments to function Shopimporter_Shopware6::exportBulkPrices(), 2 passed in /var/www/xentral/www/pages/shopimporter_shopware6.php on line 3195 and exactly 3 expected

/var/www/xentral/www/pages/shopimporter_shopware6.php:1323

8Shopimporter_Shopware6→exportBulkPrices()

/var/www/xentral/www/pages/shopimporter_shopware6.php:3195

7Shopimporter_Shopware6→exportVariants()

/var/www/xentral/www/pages/shopimporter_shopware6.php:1299

6Shopimporter_Shopware6→ImportSendList()

/var/www/xentral/www/lib/class.remote.php:2964

5Remote→handleInternalModuleCall()

/var/www/xentral/www/lib/class.remote.php:2833

4Remote→RemoteCommand()

/var/www/xentral/www/lib/class.remote.php:3166

3Remote→sendlist()

/var/www/xentral/www/lib/class.remote.php:2147

2Remote→RemoteSendArticleList()

/var/www/xentral/cronjobs/artikeluebertragen.php:158

1→include()

/var/www/xentral/cronjobs/command.php:241

) [output] => Array ( [0] => {"message":"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN (SELECT nummer,artikel FROM artikelnummer_fremdnummern WHERE shopid=0 ' at line 7","context":{"exception":{"class":"mysqli_sql_exception","message":"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN (SELECT nummer,artikel FROM artikelnummer_fremdnummern WHERE shopid=0 ' at line 7","code":1064,"file":"/var/www/xentral/phpwf/plugins/class.mysql.php:1505"}},"level":400,"level_name":"ERROR","channel":"production","datetime":"2022-03-01T17:19:03.225979+01:00","extra":{}} [1] => {"message":"ArgumentCountError: Too few arguments to function Shopimporter_Shopware6::exportBulkPrices(), 2 passed in /var/www/xentral/www/pages/shopimporter_shopware6.php on line 3195 and exactly 3 expected in /var/www/xentral/www/pages/shopimporter_shopware6.php:1323\nStack trace:\n#0 /var/www/xentral/www/pages/shopimporter_shopware6.php(3195): Shopimporter_Shopware6->exportBulkPrices('52c9bb726be8461...', Array)\n#1 /var/www/xentral/www/pages/shopimporter_shopware6.php(1299): Shopimporter_Shopware6->exportVariants(Array, '652bb94665d0490...', 'b7d2554b0ce847c...')\n#2 /var/www/xentral/www/lib/class.remote.php(2964): Shopimporter_Shopware6->ImportSendList()\n#3 /var/www/xentral/www/lib/class.remote.php(2833): Remote->handleInternalModuleCall(Object(App\\Modules\\Shop\\Models\\ShopConfig), 2, 'sendlist', Array)\n#4 /var/www/xentral/www/lib/class.remote.php(3166): Remote->RemoteCommand('2', 'sendlist', Array)\n#5 /var/www/xentral/www/lib/class.remote.php(2147): Remote->sendlist(0, '2', Array, true)\n#6 /var/www/xentral/cronjobs/artikeluebertragen.php(158): Remote->RemoteSendArticleList('2', Array)\n#7 /var/www/xentral/cronjobs/command.php(241): include('/var/www/xentra...')\n#8 {main}","context":{},"level":400,"level_name":"ERROR","channel":"production","datetime":"2022-03-01T17:19:08.923048+01:00","extra":{}} [2] => [3] => [4] => [5] => [6] => [7] => [47] => [48] =>

Xentral: Es ist ein unerwarteter Fehler aufgetreten!

Too few arguments to function Shopimporter_Shopware6::exportBulkPrices(), 2 passed in /var/www/xentral/www/pages/shopimporter_shopware6.php on line 3195 and exactly 3 expected

Systeminformationen

[49] =>

Software

[50] =>

Xentral-Revision: 22.1.8

[51] =>

Xentral-Version: ENT [52] =>

FPDF-Version: 3 [53] =>

PHP

[54] =>

Version: 7.4.27 (7.4.27)

[55] =>

Server-API: cli

[56] =>

Binary-Pfad: /usr/bin

[57] =>

php.ini: /etc/php/7.4/cli/php.ini

[58] =>

PHP-Einstellungen:

[59] =>

max_execution_time = 0

[60] =>

max_input_time = -1

[61] =>

post_max_size = 100M

[62] =>

upload_max_filesize = 100M

[63] =>

memory_limit = 512M

[64] =>

PHP-Erweiterungen

[65] =>
Benötigt

mysqlimysqlndPDOcurlxmlstream_socket_enable_cryptofsocketopensslmbstringjsoniconvsoapimapzipgdldapioncube

[66] =>

Umgebung

[67] =>

Username:

[68] =>

Home-Directory: /var/www

[69] =>

Document-Root:

[70] =>

Script-Filename: command.php

[71] =>

Script-Owner/-Group: www-data:www-data

[72] =>

Webserver

[73] =>

Software: --

[74] =>

Signatur: --

[75] =>

Host: (:)

[76] =>

Request

[77] =>

Schema:

[78] =>

Method/Uri:

[79] =>

Referer: --

[80] =>

UserAgent: --

[81] =>

AJAX-Request: false

[82] =>

HTTPS-Request: false

[83] =>

Timestamp: 1646151542

[84] =>

ArgumentCountError

Too few arguments to function Shopimporter_Shopware6::exportBulkPrices(), 2 passed in /var/www/xentral/www/pages/shopimporter_shopware6.php on line 3195 and exactly 3 expected

/var/www/xentral/www/pages/shopimporter_shopware6.php:1323

8Shopimporter_Shopware6→exportBulkPrices()

/var/www/xentral/www/pages/shopimporter_shopware6.php:3195

7Shopimporter_Shopware6→exportVariants()

/var/www/xentral/www/pages/shopimporter_shopware6.php:1299

6Shopimporter_Shopware6→ImportSendList()

/var/www/xentral/www/lib/class.remote.php:2964

5Remote→handleInternalModuleCall()

/var/www/xentral/www/lib/class.remote.php:2833

4Remote→RemoteCommand()

/var/www/xentral/www/lib/class.remote.php:3166

3Remote→sendlist()

/var/www/xentral/www/lib/class.remote.php:2147

2Remote→RemoteSendArticleList()

/var/www/xentral/cronjobs/artikeluebertragen.php:158

1→include()

/var/www/xentral/cronjobs/command.php:241

 

icon

Beste Antwort von Dennis Frick 8 March 2022, 17:08

Original anzeigen

1 Antwort

Benutzerebene 6
Abzeichen +2

Hallo Jan,

 

vielen Dank für deinen Beitrag zu Shopware 6. Wie bereits via Ticket-System erfahren, wurde dein Problem durch ein Update deiner xentral-Instanz behoben.

 

Beste Grüße,

Dennis

Antworten