Shopware: 5.2.27
PHP: 5.6 und 7.0
Import von PrestaShop zu Shopware
bei mir funktioniert in verschiedenen Installationen das Plug-in Shop-Migration nicht. Ich bekomme folgenden fehler wenn ich nach der Eingabe der Datenbank Daten auf weiter klicke:
Uncaught TypeError: Cannot read property 'message' of undefined
at i.failure (VM1786 Wizard&no-cache=1500549386+1+1:1270)
at Object.callback (ext-all.js?201706221543:21)
at i.afterAction (ext-all.js?201706221543:21)
at i.onFailure (ext-all.js?201706221543:21)
at Object.callback (ext-all.js?201706221543:21)
at i.onComplete (ext-all.js?201706221543:21)
at i.onStateChange (ext-all.js?201706221543:21)
at XMLHttpRequest. (ext-all.js?201706221543:21)
failure @ VM1786 Wizard&no-cache=1500549386+1+1:1270
callback @ ext-all.js?201706221543:21
afterAction @ ext-all.js?201706221543:21
onFailure @ ext-all.js?201706221543:21
callback @ ext-all.js?201706221543:21
onComplete @ ext-all.js?201706221543:21
onStateChange @ ext-all.js?201706221543:21
(anonymous) @ ext-all.js?201706221543:21
uncaught exception: Ext.JSON.decode(): You're trying to decode an invalid JSON String:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'c1wlanbox_test.s_core_snippets' doesn't exist' in /var/www/clients/client1/web24/web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:91
Stack trace:
#0 /var/www/clients/client1/web24/web/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(91): PDOStatement->execute(Array)
Das Migrations Tool greift auf die falsche Datenbank Tabelle zu “c1wlanbox_test.s_core_snippets”. Die gibt es aber nicht in der Quell DB. Soll ja von Presta zu Shopware.
ja ich musste das prefix angeben was bei der Quell Datenbank angegeben wurde “p_” schau ob du in deiner xt datenbank auch eins hast und gib es bei der Migration an. Mir hat es geholfen.
danke für deine schnelle Antwort. Das habe ich auch schon probiert. Leider kommt bei mir wieder der gleiche Fehler.
sourceClass: "Ext.JSON", sourceMethod: "decode", msg: "You're trying to decode an invalid JSON String: on line 234↵", message: "You're trying to decode an invalid JSON String: on line 234↵"}
message
:
"You're trying to decode an invalid JSON String: ↵Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'zsp_xtc_live.s_core_snippets' doesn't exist' in /Applications/MAMP/htdocs/zsp/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:91↵Stack trace:↵#0 /Applications/MAMP/htdocs/zsp/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(91): PDOStatement->execute(Array)↵#1 /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Statement/Pdo.php(228): Doctrine\DBAL\Driver\PDOStatement->execute(Array)↵#2 /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array)↵#3 /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)↵#4 /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DESCRIBE `s_cor...', Array)↵#5 /Applications/MAMP/htdocs/zsp/engine/Library/Enlight/Components/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abs in /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Statement/Pdo.php on line 234↵"
msg
:
"You're trying to decode an invalid JSON String: ↵Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'zsp_xtc_live.s_core_snippets' doesn't exist' in /Applications/MAMP/htdocs/zsp/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:91↵Stack trace:↵#0 /Applications/MAMP/htdocs/zsp/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(91): PDOStatement->execute(Array)↵#1 /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Statement/Pdo.php(228): Doctrine\DBAL\Driver\PDOStatement->execute(Array)↵#2 /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array)↵#3 /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)↵#4 /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DESCRIBE `s_cor...', Array)↵#5 /Applications/MAMP/htdocs/zsp/engine/Library/Enlight/Components/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abs in /Applications/MAMP/htdocs/zsp/engine/Library/Zend/Db/Statement/Pdo.php on line 234↵"
sourceClass
:
"Ext.JSON"
sourceMethod
:
"decode"
Ich bin auch gerade über den Fehler gestolpert bei dem Versuch eine WooCommerce Datenbank zu migrieren.
Aktuelle Shopware Version ( Shopware 5.3.4 Build Rev 201710241020) mit Migration Plugin 2.5.1
... Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'wordpress.s_core_snippets' doesn't exist in ...
ich konnte das Problem bei mir beheben. Da es sich bei mir um die Migration von XT Commerce 5 handelt musste ich die Datenbank anpassen. Ich habe in der Tabelle xt_store das Feld shop_title oder shop_name hinzufügen müssen. Da ich nicht am PC bin kann ich das gerade nicht genau sagen. Im Anschluss hat bis auf den Kategorie Import und die Artikelzuordnung alles funktioniert.