Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Update oder neu aufsetzen?

    Erik F

    • Neu im Forum
    • Beiträge: 5
    Update oder neu aufsetzen?
    am: 08. Mai 2024, 03:35:35
    Hallo Community!
    Bin neu hier und ziemlich begeistert. Leider hab ich die Zeit des gratis Handbuchs verpasst und mir fehlen ein paar konkrete Infos.
    Ein Freund hat einen kleinen Shop (knapp 90 Artikel) der Version 2.0.4.1 rev 11327 auf HostEurope laufen. Diese stellen demnächst vollständig auf PHP 8 um und eine Aktualisierung des Shops steht an.

    Ich sehe 2 Möglichkeiten:

    1) Manuell die 7 Updates bis 2.0.7.1 von (https://www.modified-shop.org/forum/index.php?action=downloads;cat=3) installieren denn "Ab Shopversion 2.0.7.1 rev 14605 ist ein Update des Shops nun über den Adminbereich möglich. Die dafür vorbereitete Funktion haben wir nun über die API freigeschaltet." nutzen? Hab schon öfter über Probleme dabei gelesen.
    Dafür den tollen Beitrag von Timm nutzen (https://www.modified-shop.org/forum/index.php?topic=43389.0)

    2) Neuen Shop 3.0.2 (aktuellster) aufsetzen und die produkte wieder einpflegen oder (https://www.modified-shop.org/wiki/Tutorial:_Datenbestand_eines_xt:Commerce_Shops_in_die_modified_eCommerce_Shopsoftware_%C3%BCbernehmen) nutzen. Ist dieses Tutorial noch aktuell?
    Die in mehreren Tutorials (wie auch hier https://www.modified-shop.org/wiki/Tutorial:_Alte_Datenbank-Tabellen_(xt:Commerce_/_modified-1.x)_in_einen_neuen_Shop_%C3%BCbernehmen_(ab_Shopversion_2.0.0.0) ) genannte Software r23/MyOOS-Dumper ist leider nicht mehr auf github zu finden.

    Welcher Weg ist zu empfehlen und kann mir jemand weiter nützliche Infos geben?
    MfG Erik

    Linkback: https://www.modified-shop.org/forum/index.php?topic=43423.0
    Modulshop - Eine große Auswahl an neuen und hilfreichen Modulen für die modified eCommerce Shopsoftware

    manne35

    • Fördermitglied
    • Beiträge: 599
    • Geschlecht:
    Re: Update oder neu aufsetzen?
    Antwort #1 am: 08. Mai 2024, 09:27:18
    Hallo,
    probiere doch in einem Testshop mit anderer domain oder subdomain:

    Neue Shopdateien hochladen.
    Neue Datenbank anlegen, Befüllen mit aktueller Datenbank
    _installer order aufrufen in neuem Testshop
    nun NUR die datenbank updates der Reihe nach
    dann systemupdate  und strukturaupdate

    wenns geht hast Du einen neuen Shop mit den alten Produkten.
    gruss
    manne

    Erik F

    • Neu im Forum
    • Beiträge: 5
    Re: Update oder neu aufsetzen?
    Antwort #2 am: 14. Mai 2024, 05:07:12
    Hallo manne und danke für die fixe Antwort.
    Also generell empfiehlst du mir Option 2)
    Du schreibst ich solle erst die DB updaten und dann die DB Struktur.
    Hier im Tutorial (LINK) wird zuerst die DB Struktur und dann die DB geupdated. Genau umgekehrt. AGI meint der Installer entscheidet :D

    Zur Klarheit, versteh ichs richtig?:
    /www/new anlegen; dort
    Neue Shopdateien (3.0.2) hochladen.
    Neue Datenbank bei Host anlegen, Befüllen mit aktueller Datenbank
    subdomain anlegen
    subdomain/_installer aufrufen
    nun NUR die datenbank updates der Reihe nach (jeweils herunterladen und dem _installer verfügbar machen, oder wie läuft der prozess?)
    dann systemupdate  und strukturupdate (leitet der installer durch dabei?)

    kundendaten, rechnungsnummern etc bleiben erhalten?

    andere story: hälfte vom shop (1,4gb) sind alte logfiles oO
    die werd ich mal bereinigen, aber das scheint sich zu wiederhohlen:
    Zitat
    [14-05-2024 02:42:46] E_WARNING   : LoggingManager: Use of undefined constant MODULE_SHOPVOTE_TEXT_TITLE - assumed 'MODULE_SHOPVOTE_TEXT_TITLE' (this will throw an Error in a future version of PHP) in File: /www/htdocs/.../abhd4ppa/includes/modules/system/shopvote.php on Line: 22
    [14-05-2024 02:42:46] E_WARNING   : LoggingManager: Backtrace #0 - /www/htdocs/.../abhd4ppa/module_export.php called at Line 209
    [14-05-2024 02:42:46] E_WARNING   : LoggingManager: Backtrace #1 - /www/htdocs/.../abhd4ppa/module_export.php called at Line 302

    Danke für Zeit, Aufwand und Verständnis :)
    Grüße!

    karsta.de

    • Experte
    • Beiträge: 3.059
    Re: Update oder neu aufsetzen?
    Antwort #3 am: 14. Mai 2024, 05:50:33
    Wenn du von allem eine Sicherung gemacht hast, vor allem von der Datenbank, musst du dich einfach nur trauen. Denn dann könntest du auch alles wieder zurück spielen.
    Falls Hosteurope das anbietet, kannst du die Sicherung auch direkt beim Provider machen. Und wenn es wirklich Probleme gibt, das gesamte Backup inkl. Datenbank von dort aus wieder zurück setzen.
    Wenn du erst einmal eines der modified-Templates verwenden willst und später dein Template anpassen möchtest, dann nimm das ausgewählte Standardtemplate und benenne es wie dein momentan verwendetes und führe das Update durch.

    Log-Ordner am Besten komplett löschen und neu aus dem Installation-Ordner hochladen.

    BG Karsta

    PS. Wenn du Anfänger bist, ist das mit der Subdomain, denke ich, zu schwierig für dich.

    manne35

    • Fördermitglied
    • Beiträge: 599
    • Geschlecht:
    Re: Update oder neu aufsetzen?
    Antwort #4 am: 15. Mai 2024, 07:15:10
    Hallo,
    Reihenfolge Strukturupdate oder anderes Datenupdate zuerst,hatte ich auch schon gefragt. .. Reihenfolge des Installers wird empfohlen. Da ich nicht weiß was da überhaupt passiert habe ich es so gemacht und es geht.

    Klar bei nur 90 Produkten kannst du es nach Sicherungen auch am live Shop versuchen. Aber ich würde es immer über eine Testinstallation, wie oben beschrieben mit anderer Domain machen und wenn das Läuft, die Domain umrouten ufs neue Verzeichnis, configure Datei anpassen und fertig.
    Grüße manne

    Erik F

    • Neu im Forum
    • Beiträge: 5
    Re: Update oder neu aufsetzen?
    Antwort #5 am: 17. Mai 2024, 01:56:51
    So neuer Shop ist mit den Daten befüllt, Updates gemacht, läuft soweit!
    Ich komme allerdings nicht in den Admin Bereich; die Seite bleibt leer und der mod-error-admin-log meint:

    Zitat
    [2024-05-17 01:42:27]   [error]   [modified]   [pid:29798]   ERROR found for URL: /myadmin/start.php   {}   {}
    [2024-05-17 01:42:27]   [error]   [modified]   [pid:29798]   Undefined constant "USE_ADMIN_TOP_MENU" in File: /is/htdocs/user/www/newshop/myadmin/includes/head.php on Line: 43   {}   {}

    und der mod-installer-warning:

    Zitat
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   WARNING found for URL: /_installer/update.php?action=doupdate   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   1071 - Specified key was too long; max key length is 1000 bytes<br/><br/>CREATE TABLE _mod_geo_zones (     geo_zone_id INT(11) NOT NULL AUTO_INCREMENT,     geo_zone_name VARCHAR(255) NOT NULL,     geo_zone_description VARCHAR(255) NOT NULL,     geo_zone_info INT(1) DEFAULT 0,     geo_zone_tax INT(1) DEFAULT 0,     last_modified DATETIME NULL,     date_added DATETIME NOT NULL,     PRIMARY KEY (geo_zone_id),     UNIQUE idx_geo_zone_name (geo_zone_name)   ); in File: /is/htdocs/user/www/newshop/inc/db_functions_mysqli.inc.php on Line: 179   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/includes/update_action.php called at Line 62   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   Backtrace #1 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 269   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   WARNING found for URL: /_installer/update.php?action=doupdate   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   1146 - Table 'db123456789._mod_geo_zones' doesn't exist<br/><br/>DESCRIBE `_mod_geo_zones` in File: /is/htdocs/user/www/newshop/inc/db_functions_mysqli.inc.php on Line: 179   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/includes/update_action.php called at Line 91   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   Backtrace #1 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 269   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   WARNING found for URL: /_installer/update.php?action=doupdate   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   1146 - Table 'db123456789._mod_geo_zones' doesn't exist<br/><br/>SHOW INDEX FROM `_mod_geo_zones` in File: /is/htdocs/user/www/newshop/inc/db_functions_mysqli.inc.php on Line: 179   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/includes/update_action.php called at Line 151   {}   {}
    [2024-05-17 01:23:58]   [warning]   [modified]   [pid:18359]   Backtrace #1 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 269   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   WARNING found for URL: /_installer/update.php?action=doupdate   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   1071 - Specified key was too long; max key length is 1000 bytes<br/><br/>CREATE TABLE _mod_newsletter_recipients (     mail_id INT(11) NOT NULL AUTO_INCREMENT,     customers_email_address VARCHAR(255) NOT NULL DEFAULT '',     customers_id INT(11) NOT NULL DEFAULT 0,     customers_status INT(5) NOT NULL DEFAULT 0,     customers_firstname VARCHAR(64) NOT NULL DEFAULT '',     customers_lastname VARCHAR(64) NOT NULL DEFAULT '',     mail_status INT(1) NOT NULL DEFAULT 0,     mail_key VARCHAR(32) NOT NULL DEFAULT '',     date_added DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',     ip_date_added varchar(50) DEFAULT NULL,     date_confirmed datetime NOT NULL DEFAULT '0000-00-00 00:00:00',     ip_date_confirmed varchar(50) DEFAULT NULL,     PRIMARY KEY (mail_id),     KEY idx_mail_key (mail_key),     KEY idx_mail_status (mail_status),     UNIQUE idx_customers_email_address (customers_email_address)   ); in File: /is/htdocs/user/www/newshop/inc/db_functions_mysqli.inc.php on Line: 179   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/includes/update_action.php called at Line 62   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   Backtrace #1 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 269   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   WARNING found for URL: /_installer/update.php?action=doupdate   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   1146 - Table 'db123456789._mod_newsletter_recipients' doesn't exist<br/><br/>DESCRIBE `_mod_newsletter_recipients` in File: /is/htdocs/user/www/newshop/inc/db_functions_mysqli.inc.php on Line: 179   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/includes/update_action.php called at Line 91   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   Backtrace #1 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 269   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   WARNING found for URL: /_installer/update.php?action=doupdate   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   1146 - Table 'db123456789._mod_newsletter_recipients' doesn't exist<br/><br/>SHOW INDEX FROM `_mod_newsletter_recipients` in File: /is/htdocs/user/www/newshop/inc/db_functions_mysqli.inc.php on Line: 179   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/includes/update_action.php called at Line 151   {}   {}
    [2024-05-17 01:24:02]   [warning]   [modified]   [pid:18404]   Backtrace #1 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 269   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   WARNING found for URL: /_installer/update.php?action=doupdate   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   1071 - Specified key was too long; max key length is 1000 bytes<br/><br/>CREATE TABLE _mod_payment_moneybookers (     mb_TRID VARCHAR(255) NOT NULL DEFAULT '',     mb_ERRNO SMALLINT(3) unsigned NOT NULL DEFAULT 0,     mb_ERRTXT VARCHAR(255) NOT NULL DEFAULT '',     mb_DATE DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',     mb_MBTID BIGINT(18) unsigned NOT NULL DEFAULT 0,     mb_STATUS TINYINT(1) NOT NULL DEFAULT 0,     mb_ORDERID INT(11) unsigned NOT NULL DEFAULT 0,     PRIMARY KEY (mb_TRID)   ); in File: /is/htdocs/user/www/newshop/inc/db_functions_mysqli.inc.php on Line: 179   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/includes/update_action.php called at Line 62   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   Backtrace #1 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 269   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   WARNING found for URL: /_installer/update.php?action=doupdate   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   1146 - Table 'db123456789._mod_payment_moneybookers' doesn't exist<br/><br/>DESCRIBE `_mod_payment_moneybookers` in File: /is/htdocs/user/www/newshop/inc/db_functions_mysqli.inc.php on Line: 179   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/includes/update_action.php called at Line 91   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   Backtrace #1 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 269   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   WARNING found for URL: /_installer/update.php?action=doupdate   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   1146 - Table 'db123456789._mod_payment_moneybookers' doesn't exist<br/><br/>SHOW INDEX FROM `_mod_payment_moneybookers` in File: /is/htdocs/user/www/newshop/inc/db_functions_mysqli.inc.php on Line: 179   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/includes/update_action.php called at Line 151   {}   {}
    [2024-05-17 01:24:07]   [warning]   [modified]   [pid:18459]   Backtrace #1 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 269   {}   {}
    [2024-05-17 01:24:29]   [warning]   [modified]   [pid:18776]   WARNING found for URL: /_installer/update.php?action=configure   {}   {}
    [2024-05-17 01:24:29]   [warning]   [modified]   [pid:18776]   chmod(): Operation not permitted in File: /is/htdocs/user/www/newshop/_installer/includes/update_configure.php on Line: 51   {}   {}
    [2024-05-17 01:24:29]   [warning]   [modified]   [pid:18776]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 94   {}   {}
    [2024-05-17 01:24:29]   [warning]   [modified]   [pid:18796]   WARNING found for URL: /_installer/update.php?action=configure   {}   {}
    [2024-05-17 01:24:29]   [warning]   [modified]   [pid:18796]   chmod(): Operation not permitted in File: /is/htdocs/user/www/newshop/_installer/includes/update_configure.php on Line: 51   {}   {}
    [2024-05-17 01:24:29]   [warning]   [modified]   [pid:18796]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/update.php called at Line 94   {}   {}
    [2024-05-17 01:24:45]   [warning]   [modified]   [pid:18967]   WARNING found for URL: /_installer/?action=shop   {}   {}
    [2024-05-17 01:24:45]   [warning]   [modified]   [pid:18967]   chmod(): Operation not permitted in File: /is/htdocs/user/www/newshop/_installer/index.php on Line: 22   {}   {}
    [2024-05-17 01:24:45]   [warning]   [modified]   [pid:18967]   WARNING found for URL: /_installer/?action=shop   {}   {}
    [2024-05-17 01:24:45]   [warning]   [modified]   [pid:18967]   rmdir(/is/htdocs/user/www/newshop/_installer/): Permission denied in File: /is/htdocs/user/www/newshop/_installer/includes/functions.php on Line: 74   {}   {}
    [2024-05-17 01:24:45]   [warning]   [modified]   [pid:18967]   Backtrace #0 - /is/htdocs/user/www/newshop/_installer/index.php called at Line 38   {}   {}

    habt ihr ne idee?
    Beste Grüße!!

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.762
    • Geschlecht:
    Re: Update oder neu aufsetzen?
    Antwort #6 am: 17. Mai 2024, 15:40:26
    Die mod-installer-warning  würde ich ignorieren.
    Der Error in mod-error-admin  sagt, daß eine Konstante fehlt. Die kommt aus der Datenbank-Tabelle configuration.
    Schau mal, ob es in der genannten Tabelle den configuration_key  USE_ADMIN_TOP_MENU gibt.
    Ich vermute Nein.
    Allerdings wurde der bereits im Update von Shop-Version 1.0.2.0 auf 1.0.3.0 eingefügt, sodaß sich die Frage stellt warum er fehlt, wenn er denn fehlt.
    Falls dies der Fall ist versuche Folgendes:
    In phpMyAdmin (bzw. dem verwendeten DB-Administrationstool) ausführen:
    Code: SQL  [Auswählen]
    INSERT INTO configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES   ('USE_ADMIN_TOP_MENU', 'true', 1, 30, NULL , NOW( ) , NULL , 'xtc_cfg_select_option(array(\'true\', \'false\'),');
    und dann
    Code: SQL  [Auswählen]
    UPDATE configuration SET configuration_group_id = '1000', sort_order = '20', last_modified = NOW() WHERE configuration_key = 'USE_ADMIN_TOP_MENU';

    Allerdings vermute ich, daß weitere Fehler auftauchen werden, wenn ein Konfiguarations-Eintrag fehlt er schon vor ewigen Zeiten hinzugefügt wurde.

    Gruß,
    noRiddle

    Erik F

    • Neu im Forum
    • Beiträge: 5
    Re: Update oder neu aufsetzen?
    Antwort #7 am: 17. Mai 2024, 19:00:24
    gemeinsam stark, bin in den admin bereich gekommen. danke dir noRiddle.

    jetzt sehe ich, dass bestellungen und kunden nicht dem originalen image entsprechen/vollständig sind (daten gehen nur bis 2022 und nicht gestern).
    In der DB sehe ich in der orders Tabelle dass es viele Einträge mit 0000-00-00 00:00:00 als timestamp (date_purchased) gibt...
    Hatte ursprünglich über myPhpAdmin den sql dump gezogen und auf der neuen DB aufgespielt...
    mod_installer_info gibt keine Info über orders und timestamps.

    Danke für den support!!!

    Mega Grüße,
    Erik

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.762
    • Geschlecht:
    Re: Update oder neu aufsetzen?
    Antwort #8 am: 17. Mai 2024, 19:05:34
    Ich habe nicht verfolgt was du genau gemacht hast.
    Ich würde ein Update so machen wie ich hier dargelegt habe (gilt nur wenn die mom. Shop-Version niedriger als 2.0.7.2 ist):
    Übernahme Nutzerdaten "only" aus altem Shop | Antwort #8

    Du müsstest natürlich mit update_2.0.4.1_to_2.0.4.2.sql  beginnen.

    Gruß,
    noRiddle
    3 Antworten
    1374 Aufrufe
    06. Juni 2020, 10:57:31 von p3e
    18 Antworten
    11343 Aufrufe
    08. Januar 2010, 09:26:12 von Tomcraft
    4 Antworten
    1231 Aufrufe
    04. Februar 2020, 12:40:06 von Timm