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: Probleme mit Smart-Guestbook

    Brandmalerei24

    • Neu im Forum
    • Beiträge: 13
    • Geschlecht:
    Probleme mit Smart-Guestbook
    am: 02. März 2014, 22:24:38
    Hallo,

    bin gerade dabei das Smart-Guestbook einzubauen, scheitere aber an der guestbook.sql. Beim Hochladen auf dem Server bekomme ich (nach dem ich Type=mysiam in Engine=mysiam geändert habe) folgende Fehlermedung:

    Code: SQL  [Auswählen]
    SQL-Befehl: Dokumentation

    # --------------------------------------------------------
    #
    # TABLE STRUCTURE FOR TABLE `configuration`
    #
    INSERT INTO configuration( configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function )
    VALUES (

    '',  'GUESTBOOK_SHOW',  'true', 50, 1, NULL , NOW( ) , NULL ,  'xtc_cfg_select_option(array(\'true\', \'false\'),'
    );

    MySQL meldet: Dokumentation

    #1062 - Duplicate entry '0' FOR KEY 'PRIMARY'

    Wo liegt verdamt nochmal liegt der Fehler???  :datz: Nachdem ich mir jetzt den Sonntag versaut habe bitte ich um eure Hilfe!!!
    hier noch mal die Guestbook.sql:

    Code: SQL  [Auswählen]
    # phpMyAdmin MySQL-Dump
    # Host: localhost
    # PHP Version: 4.3.1
    # --------------------------------------------------------

    #
    # TABLE STRUCTURE FOR TABLE `guestbook`
    #

    CREATE TABLE guestbook (
      entry_id INT(11) NOT NULL AUTO_INCREMENT,
      visitors_name VARCHAR(64) NOT NULL DEFAULT '',
      visitors_email VARCHAR(96) DEFAULT '',
      entry_rating INT(1) DEFAULT NULL,
      entry_status INT(1) DEFAULT '1',
      date_added datetime DEFAULT NULL,
      last_modified datetime DEFAULT NULL,
      entry_read INT(5) NOT NULL DEFAULT '0',
      PRIMARY KEY  (entry_id)
    ) ENGINE=MyISAM;

    # --------------------------------------------------------

    #
    # TABLE STRUCTURE FOR TABLE `guestbook_description`
    #

    CREATE TABLE guestbook_description (
      entry_id INT(11) NOT NULL DEFAULT '0',
      languages_id INT(11) NOT NULL DEFAULT '0',
      entry_text text NOT NULL,
      PRIMARY KEY  (entry_id,languages_id)
    ) ENGINE=MyISAM;


    # --------------------------------------------------------

    #
    # TABLE STRUCTURE FOR TABLE `configuration`
    #

    INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_SHOW', 'true', 50, 1, NULL, now(), NULL, 'xtc_cfg_select_option(array(\'true\', \'false\'),');
    INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_MAX_DISPLAY_ENTRIES', '6', 50, 2, NULL, now(), NULL, NULL);
    INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_MAX_DISPLAY_PAGE_LINKS', '8', 50, 3, NULL, now(), NULL, NULL);
    INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_NAME_MIN_LENGTH', '4', 50, 4, NULL, now(), NULL, NULL);
    INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_TEXT_MIN_LENGTH', '25', 50, 5, NULL, now(), NULL, NULL);
    INSERT INTO configuration (configuration_id, configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'GUESTBOOK_ALLOW_GUEST_ENTRY', 'true', 50, 6, NULL, now(), NULL, 'xtc_cfg_select_option(array(\'true\', \'false\'),');


    # --------------------------------------------------------

    #
    # TABLE STRUCTURE FOR TABLE `configuration_group`
    #

    INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES ('50', 'Guestbook', 'Guestbook description', '50', '1');

    #
    # Modification FOR TABLE admin_access
    ALTER TABLE admin_access ADD guestbook INT(1) NOT NULL DEFAULT 0;
    UPDATE admin_access SET guestbook=1 WHERE customers_id=1;

     

    Danke für eure Hilfe

    Linkback: https://www.modified-shop.org/forum/index.php?topic=29541.0

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Probleme mit Smart-Guestbook
    Antwort #1 am: 02. März 2014, 22:27:54
    Geh mal in deine Datenbank und sende folgenden Befehl ab:
    Code: SQL  [Auswählen]
    SELECT * FROM configuration WHERE configuration_key = 'GUESTBOOK_SHOW';

    Wenn dort ein Ergebnis ist, dann ist der Eintrag schon vorhanden und du kannst ihn löschen, wenn du die SQL-Datei noch einmal einspielen möchtest.

    Gruß
    Ronny

    Brandmalerei24

    • Neu im Forum
    • Beiträge: 13
    • Geschlecht:
    Re: Probleme mit Smart-Guestbook
    Antwort #2 am: 02. März 2014, 22:55:26
    Danke ersteinmal! Jetzt habe ich allerdings das problem das er im Browser wenn ich das Gästebuch öffnen will wieder einen Fehler schmeißt: 1054 - Unknown column 'Gästebuch' in 'Feldliste' wählen Gästebuch von admin_access wo customers_id = '1 ' [XT SQL Error]

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Probleme mit Smart-Guestbook
    Antwort #3 am: 02. März 2014, 23:03:37
    Die Spalte in der Tabelle admin_access darf auch nicht "Gästebuch" heißen, sondern muss "guestbook" heißen.

    Gruß
    Ronny

    EDIT:
    Bevor ich am Gästebuch arbeiten würde, würde ich an deiner Stelle eine aktuelle Version vom modified benutzen.

    Brandmalerei24

    • Neu im Forum
    • Beiträge: 13
    • Geschlecht:
    Re: Probleme mit Smart-Guestbook
    Antwort #4 am: 02. März 2014, 23:28:43
    Danke habe  es schon hinbekommen!
    Die Version möchte ich eigentlich nicht gleich ändern, bin schon froh das ich die Module eingebaut bekomme.

    Aber vielen Dank für die schnelle Hilfe!

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Probleme mit Smart-Guestbook
    Antwort #5 am: 02. März 2014, 23:35:36
    Dann sei dir aber dessen bewusst, dass dein Shop nicht auf dem neuesten Stand ist. Schon aus der Verantwortung gegenüber deinen Kunden, wäre mir das jede Minute wert.

    Gruß
    Ronny

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.839
    • Geschlecht:
    Re: Probleme mit Smart-Guestbook
    Antwort #6 am: 03. März 2014, 02:43:32
    ...oder allermindestens alle Security-Patches einspielen...

    Gruß,
    noRiddle

    Brandmalerei24

    • Neu im Forum
    • Beiträge: 13
    • Geschlecht:
    Re: Probleme mit Smart-Guestbook
    Antwort #7 am: 03. März 2014, 09:33:57
    Danke für eure Ratschläge... werde mich noch ransetzen und die Aktuelle Version aufspielen. 
    Managed Server
    77 Antworten
    43290 Aufrufe
    10. Mai 2017, 10:04:52 von supercat1510
    12 Antworten
    4281 Aufrufe
    29. Dezember 2016, 16:50:22 von awids
    24 Antworten
    11207 Aufrufe
    14. Juni 2018, 14:44:53 von p3e
    34 Antworten
    15341 Aufrufe
    09. September 2012, 20:54:36 von Talismann