Mietzshop Posted July 1, 2021 Share Posted July 1, 2021 Hallo ihr Lieben, nachdem ich auf die neuste Version geupdatet hatte, hat mir diese doch nicht so zugesagt. Also habe ich das BackUp (1.7.7.5), welches ich zuvor gemacht habe, wieder draufgespielt. Bisher war das nie ein Problem...jetzt komme ich allerdings weder ins Backoffice, noch ins Frontend - und bin ein wenig aufgeschmissen. Debug ist an. Folgende Fehler werden mir angezeigt: [PrestaShopDatabaseException] Table 'usr_web28994495_6.ps1761_shop_url' doesn't exist<br /><br /><pre>SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM ps1761_shop_url su LEFT JOIN ps1761_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'www.mietzshop.de' OR su.domain_ssl = 'www.mietzshop.de') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC</pre> at line 769 in file classes/db/Db.php 764. if ($webservice_call && $errno) { 765. $dbg = debug_backtrace(); 766. WebserviceRequest::getInstance()->setError(500, '[SQL Error] ' . $this->getMsgError() . '. From ' . (isset($dbg[3]['class']) ? $dbg[3]['class'] : '') . '->' . $dbg[3]['function'] . '() Query was : ' . $sql, 97); 767. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) { 768. if ($sql) { 769. throw new PrestaShopDatabaseException($this->getMsgError() . '<br /><br /><pre>' . $sql . '</pre>'); 770. } 771. 772. throw new PrestaShopDatabaseException($this->getMsgError()); 773. } 774. } DbCore->displayError - [line 385 - classes/db/Db.php] - [1 Arguments] 380. $this->result = $this->_query($sql); 381. } 382. } 383. 384. if (_PS_DEBUG_SQL_) { 385. $this->displayError($sql); 386. } 387. 388. return $this->result; 389. } 390. DbCore->query - [line 613 - classes/db/Db.php] - [1 Arguments] 608. } 609. 610. return $this->execute($sql, $use_cache); 611. } 612. 613. $this->result = $this->query($sql); 614. 615. if (!$this->result) { 616. $result = false; 617. } else { 618. if (!$array) { Argument [0] SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM ps1761_shop_url su LEFT JOIN ps1761_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'www.mietzshop.de' OR su.domain_ssl = 'www.mietzshop.de') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC DbCore->executeS - [line 1341 - classes/shop/Shop.php] - [1 Arguments] 1336. WHERE (su.domain = \'' . pSQL($host) . '\' OR su.domain_ssl = \'' . pSQL($host) . '\') 1337. AND s.active = 1 1338. AND s.deleted = 0 1339. ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC'; 1340. 1341. $result = Db::getInstance()->executeS($sql); 1342. 1343. return $result; 1344. } 1345. } ShopCore::findShopByHost - [line 337 - classes/shop/Shop.php] - [1 Arguments] 332. $found_uri = ''; 333. $is_main_uri = false; 334. $host = Tools::getHttpHost(false, false, true); 335. $request_uri = rawurldecode($_SERVER['REQUEST_URI']); 336. 337. $result = self::findShopByHost($host); 338. 339. // If could not find a matching, try with port 340. if (empty($result)) { 341. $host = Tools::getHttpHost(false, false, false); 342. $result = self::findShopByHost($host); ShopCore::initialize - [line 118 - config/config.inc.php] 113. 114. $context = Context::getContext(); 115. 116. /* Initialize the current Shop */ 117. try { 118. $context->shop = Shop::initialize(); 119. } catch (PrestaShopException $e) { 120. $e->displayMessage(); 121. } 122. define('_THEME_NAME_', $context->shop->theme->getName()); 123. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: ''); require - [line 27 - index.php] - [1 Arguments] Argument [0] /var/www/web28994495/html/Mietzshop/config/config.inc.php www.mietzshop.de.pdf Link to comment Share on other sites More sharing options...
JBW Posted July 1, 2021 Share Posted July 1, 2021 6 hours ago, Mietzshop said: shop_url' doesn't exist Wenn diese Tabelle wirklich nicht mehr existiert ist deine Datenbank zerstört. Ich würde diese manuell aus dem Backup einspielen (z.b. über phpMyAdmin) Link to comment Share on other sites More sharing options...
Claudiocool Posted July 1, 2021 Share Posted July 1, 2021 Wurde beim Backup die DB-Struktur geändert? Dann hilft wirklich nur Einlesen der alten Datenbank und hoffen, dass da vor dem Update wirklich alles gesichert wurde. Link to comment Share on other sites More sharing options...
Mietzshop Posted July 1, 2021 Author Share Posted July 1, 2021 Ich hab das BackUp manuell per FTP hochgeladen...das ist ja das Problem, wieso ich nicht verstehe, dass es nicht klappt. Link to comment Share on other sites More sharing options...
Nickz Posted July 1, 2021 Share Posted July 1, 2021 2 hours ago, Mietzshop said: Ich hab das BackUp manuell per FTP hochgeladen...das ist ja das Problem, wieso ich nicht verstehe, dass es nicht klappt. Eventuell eine PHP version zu hoch? Link to comment Share on other sites More sharing options...
Claudiocool Posted July 1, 2021 Share Posted July 1, 2021 Die Datenbank ist nicht per ftp zu laden, die musst du separat zurücksichern Link to comment Share on other sites More sharing options...
Mietzshop Posted July 2, 2021 Author Share Posted July 2, 2021 Nope, PHP hatte ich probehalber schon runtergeschraubt. Daran lags nicht. Da der Datenbank-Safe vom 22. ist bleibt mir nichts anderes übrig, als alles nochmal neu drauf zu spielen. Bin froh, dass ich wenigstens Texte gespeichert hab und noch keine Produkte hochgeladen hatte... Schön ist trotzdem was anderes aber den dümmsten Mist brockt man sich ja bekanntlich selbst ein. Link to comment Share on other sites More sharing options...
Nickz Posted July 4, 2021 Share Posted July 4, 2021 Backup ist das Brot eines jeden Entwicklers. Wo hostest du denn? Link to comment Share on other sites More sharing options...
Mietzshop Posted July 4, 2021 Author Share Posted July 4, 2021 Und ich hab es dieses Mal vergessen...passiert - ärgerlich aber ist eben so. Da noch nichts online war und ich an sich von allem BackUps hab zwar nervig aber keine Katastrophe im Sinne von "es ist alles weg" und ich muss bei null anfangen. Das ist schon mal viel wert. Und irgendwie vllt. gar nicht mal verkehrt nochmal "neu" aufzuziehen. Hat alles seinen Grund Alfahosting - die hätten allerdings nur bis zum 22. wiederherstellen können. Link to comment Share on other sites More sharing options...
Nickz Posted July 4, 2021 Share Posted July 4, 2021 (edited) 3 minutes ago, Mietzshop said: Alfahosting Schau dir mal an was die als Leistung bringen. Das kann auch zu Problemen führen. Wenn du mehr als €60 imJahr zahlst nimm einen VPS S Klasse Contabo. Edited July 4, 2021 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
GrafFoto Posted July 5, 2021 Share Posted July 5, 2021 Das mit dem Backup solltest du aber unbedingt mal klären, bevor du richtig online gehst, sonst schießt du dir irgendwann deinen Produktivshop mit allen Bestellungen und Kundendaten ab. Ich benutze für mein Presta-Backup schon länger Akeeba: https://www.akeeba.com/products/akeeba-solo.html Die Installation und Ersteinrichtung ist etwas fummelig, wenn man kein Serverexperte ist, aber nach der Ersteinrichtung kannst du mit einem Klick alle Dateien des Servers + Datenbank sichern. Die Wiederherstellung geht dann ähnlich einfach. Es treten bei Akeeba (im Gegensatz zu allen Presta-Modulen, die ich getestet hatte) auch keine Timeout Fehler auf, die zum Abbruch des Backups führen. Link to comment Share on other sites More sharing options...
Mietzshop Posted July 5, 2021 Author Share Posted July 5, 2021 Ich bin mit Alfahosting bisher sehr zufrieden Ebensp mit phpMyAdmin Da ich nicht nur den Onlineshop habe und das auch nicht der erste Anbieter ist (und vllt auch nicht der letzte 🤷♀️) habe ich (momentan) das was ich brauche und mehr. Der Kundenservice ist tiptop und konnte mir bisher sonst immer helfen und das auch sehr schnell. Also da kann ich mich wirklich nicht beschweren und möchte auch defintiv zum jetzigen Zeitpunkt nicht wechseln. Es war doppelt gesehen meine Schuld 🙈 Ich habe 1. das Backup nicht gezogen und zweitens viel zu spät den Kundenservice kontaktiert (über 2 Wochen danach) 🤷♀️ Klassischer Anwenderfehler also Aus Fehlern lernt man Link to comment Share on other sites More sharing options...
Nickz Posted July 6, 2021 Share Posted July 6, 2021 Wohl wahr. Nur alle Eier in einem Korb ist nicht gerade weise. Du wirst dein Hosting kennenlernen wenn du ein Domain aus dem Packeten lösen willst. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now