Nach Shop Update: Detailseite -> Shop offline

Hallo,

ich quäle mich gerade mit einem Shop-Update rum.
Ich habe den Shop neu installiert und alle relevanten Daten aus der Datenbank rüber kopiert.

Wenn ich nun einen Artikel anklicke, erscheint die “Shop offline” Meldung.

Im Exception-Log steht folgendes

oxConnectionException-oxException (time: 2015-06-20 15:20:18): [1176]: mysql error: [1176: Key 'oxartid' doesn't exist in table 'd'] in EXECUTE (select distinct oxv_oxarticles_de.* from (
                   select d.oxorderid as suborderid from oxorderarticles as d use index ( oxartid ) where d.oxartid in (  '7558c1d52005b9f7c1f196f9b8880346'  ) limit 30
               ) as suborder
               left join oxorderarticles force index ( oxorderid ) on suborder.suborderid = oxorderarticles.oxorderid
               left join oxv_oxarticles_de on oxv_oxarticles_de.oxid = oxorderarticles.oxartid
               where oxv_oxarticles_de.oxid not in (  '7558c1d52005b9f7c1f196f9b8880346'  )
               and ( oxv_oxarticles_de.oxissearch = 1 or oxv_oxarticles_de.oxparentid <> '' ) and (  oxv_oxarticles_de.oxactive = 1   and ( oxv_oxarticles_de.oxstockflag != 2 or ( oxv_oxarticles_de.oxstock + oxv_oxarticles_de.oxvarstock ) > 0  )  and IF( oxv_oxarticles_de.oxvarcount = 0, 1, ( select 1 from oxv_oxarticles_de as art where art.oxparentid=oxv_oxarticles_de.oxid and ( art.oxactive = 1  ) and ( art.oxstockflag != 2 or art.oxstock > 0 ) limit 1 ) )  )  LIMIT 0, 3, ) with user root
 
 Stack Trace: #0 /var/www/ronja.de/www/newstore/core/adodblite/adodbSQL_drivers/mysql/mysql_driver.inc(369): adodb_throw('mysql', 'EXECUTE', 1176, 'Key 'oxartid' d...', 'select distinct...', false, Object(object_ADOConnection))
#1 /var/www/ronja.de/www/newstore/core/adodblite/adodb.inc.php(334): mysql_driver_ADOConnection->do_query('select distinct...', 0, '3', false)
#2 /var/www/ronja.de/www/newstore/core/oxlegacydb.php(184): ADOConnection->SelectLimit('select distinct...', '3', 0, false)
#3 /var/www/ronja.de/www/newstore/core/oxlist.php(384): oxLegacyDb->selectLimit('select distinct...', '3', 0)
#4 /var/www/ronja.de/www/newstore/application/models/oxarticlelist.php(79): oxList->selectString('select distinct...')
#5 /var/www/ronja.de/www/newstore/application/models/oxarticle.php(1321): oxArticleList->selectString('select distinct...')
#6 /var/www/ronja.de/www/newstore/application/components/widgets/oxwarticledetails.php(758): oxArticle->getCustomerAlsoBoughtThisProducts()
#7 /var/www/ronja.de/www/newstore/tmp/smarty/eaa3955806c6c02e911115da08e05f4c^%%A5^A59^A595DDB8%%fullproductinfo.tpl.php(19): oxwArticleDetails->getAlsoBoughtTheseProducts()
#8 /var/www/ronja.de/www/newstore/core/smarty/Smarty.class.php(1870): include('/var/www/ronja....')
#9 /var/www/ronja.de/www/newstore/tmp/smarty/eaa3955806c6c02e911115da08e05f4c^%%79^790^7907FF72%%details.tpl.php(88): Smarty->_smarty_include(Array)
#10 /var/www/ronja.de/www/newstore/core/smarty/Smarty.class.php(1264): include('/var/www/ronja....')
#11 /var/www/ronja.de/www/newstore/core/oxshopcontrol.php(508): Smarty->fetch('widget/product/...', 'ox|0|0|0|0')
#12 /var/www/ronja.de/www/newstore/core/oxshopcontrol.php(353): oxShopControl->_render(Object(oePayPalOxwArticleDetails))
#13 /var/www/ronja.de/www/newstore/core/oxshopcontrol.php(126): oxShopControl->_process('oxwarticledetai...', NULL, Array, Array)
#14 /var/www/ronja.de/www/newstore/core/oxwidgetcontrol.php(73): oxShopControl->start('oxwarticledetai...', NULL, Array, Array)
#15 /var/www/ronja.de/www/newstore/core/smarty/plugins/function.oxid_include_widget.php(55): oxWidgetControl->start('oxwarticledetai...', NULL, Array, Array)
#16 /var/www/ronja.de/www/newstore/tmp/smarty/eaa3955806c6c02e911115da08e05f4c^%%08^08A^08ABD53A%%details.tpl.php(10): smarty_function_oxid_include_widget(Array, Object(Smarty))
#17 /var/www/ronja.de/www/newstore/core/smarty/Smarty.class.php(1264): include('/var/www/ronja....')
#18 /var/www/ronja.de/www/newstore/core/oxshopcontrol.php(508): Smarty->fetch('page/details/de...', 'ox|0|0|0|0|7558...')
#19 /var/www/ronja.de/www/newstore/core/oxshopcontrol.php(353): oxShopControl->_render(Object(oeThemeSwitcherDetails))
#20 /var/www/ronja.de/www/newstore/core/oxshopcontrol.php(126): oxShopControl->_process('details', NULL, NULL, NULL)
#21 /var/www/ronja.de/www/newstore/core/oxid.php(40): oxShopControl->start()
#22 /var/www/ronja.de/www/newstore/index.php(26): Oxid::run()
#23 /var/www/ronja.de/www/newstore/oxseo.php(44): require('/var/www/ronja....')
#24 {main}

 Connection Adress --> 
Connection Error --> 

Ich komme damit leider nicht weiter.

Von welcher und auf welche Version hast du ein Update gemacht?
Und wie hast du die “relevanten Daten” rüberkopiert?

Von Version 4.8.8 auf 4.9.4.
Ich habe die Tabellen, von denen ich dachte, dass sie relevant sind, mittels phpmyadmin in die neue Datenbank kopiert.

Also original 4.9er Tabellen gelöscht und dann die alten 4.8er Tabellen samt Inhalt kopiert? SQL update script vorher auf die 4.8er Datenbank angewendet?

Ja. Datenbank-Update hatte ich vorher gemacht.

Was soll mir denn “Key ‘oxartid’ doesn’t exist in table ‘d’” sagen?

[QUOTE=milhouse;160532]Ich habe die Tabellen, von denen ich dachte, dass sie relevant sind, mittels phpmyadmin in die neue Datenbank kopiert.[/QUOTE]

und wie war Dein Entscheidungskriterium um eine Tabelle als relevant anzusehen?

Hast Du nach Deiner Kopieraktion auch die Views aktualisiert?

[QUOTE=milhouse;160547]Was soll mir denn “Key ‘oxartid’ doesn’t exist in table ‘d’” sagen?[/QUOTE]
Schau mal, ob es einen Index auf oxartid in der Tabelle oxorderarticles deiner Shop-Datenbank gibt: https://github.com/OXID-eSales/oxideshop_ce/blob/v4.8.8/source/setup/sql/database.sql#L1747

Mittlerweile läuft es. Ich habe nochmal alles neu gemacht. Anscheinend war irgendwo was auf der Strecke geblieben.
Trotzdem Danke!