sql problem update 2.5.5. auf 2.6.2

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

sql problem update 2.5.5. auf 2.6.2

Post by carhartt »

ich bekommen erst folgende fehlermeldung:

Code: Select all

DB error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'FALSE, mime_type varchar(255) NULL,

Query:

CREATE TABLE faqattachment (
                    id int(11) NOT NULL,
                    record_id int(11) NOT NULL,
                    record_lang varchar(5) NOT NULL,
                    real_hash char(32) NOT NULL,
                    virtual_hash char(32) NOT NULL,
                    password_hash char(40) NULL,
                    filename varchar(255) NOT NULL,
                    filesize int NOT NULL,
                    encrypted tinyint NOT NULL DEFAULT FALSE,
                    mime_type varchar(255) NULL,
                    PRIMARY KEY (id))
und wenn ich das updatescript erneut laufen lass, kommen solche fehlermeldungen:

Code: Select all

DB error: Duplicate entry 'main.enableUpdate' for key 1

Query:

INSERT INTO faqconfig VALUES ('main.enableUpdate', 'false')

wenn ich den eintrag löcsh kommt ne fehlermeldung mit usessllogins, templateset, numbersearchterms, ...

wenn ich die dann alle gelöscht habe, bin ich wieder bei obigem fehler.

hhhiiiillllffeee!
carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

Re: sql problem update 2.5.5. auf 2.6.2

Post by carhartt »

und wenn ich mir die faq anzeigen lasse, ist es noch immer v 2.5.5 und es kommen folgende meldungen:

Code: Select all

phpMyFAQ notice [8]: Undefined index: main.attachmentsPath in Configuration.php on line 127

phpMyFAQ notice [8]: Undefined index: main.attachmentsPath in Configuration.php on line 135

phpMyFAQ notice [8]: Uninitialized string offset: 0 in Init.php on line 127

phpMyFAQ warning [2]: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /faq/inc/functions.php:173) in index.php on line 50

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /faq/inc/functions.php:173) in Session.php on line 330

phpMyFAQ notice [8]: Undefined index: main.useAjaxSearchOnStartpage in Configuration.php on line 127

phpMyFAQ notice [8]: Undefined index: main.useAjaxSearchOnStartpage in Configuration.php on line 135

phpMyFAQ warning [2]: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in functions.php on line 859

phpMyFAQ warning [2]: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in functions.php on line 859

phpMyFAQ warning [2]: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in functions.php on line 859

phpMyFAQ warning [2]: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in functions.php on line 859

phpMyFAQ warning [2]: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in functions.php on line 859

phpMyFAQ warning [2]: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in functions.php on line 859

phpMyFAQ warning [2]: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in functions.php on line 859

phpMyFAQ warning [2]: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in functions.php on line 859

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /faq/inc/functions.php:173) in index.php on line 574

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /faq/inc/functions.php:173) in index.php on line 575

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /faq/inc/functions.php:173) in index.php on line 576

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /faq/inc/functions.php:173) in index.php on line 577

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /faq/inc/functions.php:173) in index.php on line 578

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /faq/inc/functions.php:173) in index.php on line 579

phpMyFAQ warning [2]: Cannot modify header information - headers already sent by (output started at /faq/inc/functions.php:173) in index.php on line 580
ich hoffe dies hilft bei der problemlösung, ich weiss leider nicht mehr weiter :(
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: sql problem update 2.5.5. auf 2.6.2

Post by Thorsten »

Hi,

welche MySQL Version nutzt du denn?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

Re: sql problem update 2.5.5. auf 2.6.2

Post by carhartt »

version 4
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: sql problem update 2.5.5. auf 2.6.2

Post by Thorsten »

Hi,

MySQL 4.0 oder 4.1? 4.0 unterstützen wir nicht mehr... Wenn 4.1, muss ich mir das mal genauer ansehen.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

Re: sql problem update 2.5.5. auf 2.6.2

Post by carhartt »

hm, das ist 1und1, bei der einrichtung steht 4.0 oder 5.0 zur auswahl. allerdings glaube ich nicht das es wirklich diese versionen sind.

ich hab nun versucht die sicherung auf einer frischen installation einzuspielen.
allerdings mag phpmyadmin die sicherungsdetei nicht, und wenn ich es über die backup funktion von pmf versuche kommt "dies scheint keine pmf sicherung zu sein".

ich werd morgen mal versuchen die jetzige datenbank in eine mxsql 5 einzuspielen - hoffentlich klappts...
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: sql problem update 2.5.5. auf 2.6.2

Post by Thorsten »

Hi,

du solltest die 5.0 nutzen, MySQL 4.0 ist schon länger ohne Support.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

Re: sql problem update 2.5.5. auf 2.6.2

Post by carhartt »

jo, das hab ich nun, fast alles scheint zu funktionieren.
nur msste ich das attachment script ausführen, da die attachments nicht angezeigt wurden, aber da waren (auf dem ftp).

nun hab ich leider das problem das die deteien encrypted wurden, obwohl uch angegeben hab sie nicht zu encrypten?!

viele grüße,
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: sql problem update 2.5.5. auf 2.6.2

Post by Thorsten »

Hi,

welcher Wert steht denn in der faqattachment Tabelle bei der encryption drin?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

Re: sql problem update 2.5.5. auf 2.6.2

Post by carhartt »

nichts, und der haken ist auch nicht gesetzt.

ich würde die attachments gerne so erhalten wie sie sind!
carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

Re: sql problem update 2.5.5. auf 2.6.2

Post by carhartt »

was ich noch dazu sagen sollte: er brachte mit beim konvertieren den fehler, das die alten verzeichnisse entfernt werden konnten (weil doppel / am ende).
liegt es viellecht daran?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: sql problem update 2.5.5. auf 2.6.2

Post by Thorsten »

Hi,

hm, dann ist die Konvertierung nicht sauber durchgelaufen. Sind die Attachments noch da?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

Re: sql problem update 2.5.5. auf 2.6.2

Post by carhartt »

ja, die sind noch da.
die alten (weil die verzeichnise nicht gelöscht werden konnten, ein "/" zuviel), unverschlüsselten
und die neuen, verschlüsselten.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: sql problem update 2.5.5. auf 2.6.2

Post by Thorsten »

Hi,

dann lösche die verschlüsselten Attachments und ändere den Wert in der Tabelle faqattachments bei der Spalte "encryption" auf 0. Dann sollte es wieder gehen.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

Re: sql problem update 2.5.5. auf 2.6.2

Post by carhartt »

danke schonmal, das werd ich morgen probieren und dann berichten! :D
Post Reply