Restore eines phpmyfaq Backups

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
perl01
Posts: 7
Joined: Sat Oct 23, 2010 8:32 pm

Restore eines phpmyfaq Backups

Post by perl01 »

Hallo Thorsten
Wenn ich meinen Backup einspielen will, den ich mit phpmyfaq gemacht habe, so erhalte ich immer folgende Fehlermeldung:

"This does not seem to be a backup of phpmyfaq. (Wrong filetype)"

Ich benutze phpmyfaq 2.6.9 auf (K)ubuntu 10.04 mit MySQL 5.1

Vielen Dank für deine Antwort zum Voraus.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Restore eines phpmyfaq Backups

Post by Thorsten »

Hi,

wie sieht das Backup denn aus? Sind da Daten drin?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
perl01
Posts: 7
Joined: Sat Oct 23, 2010 8:32 pm

Re: Restore eines phpmyfaq Backups

Post by perl01 »

Hi Thorsten

Ja, da sind Daten drin, unten stehend die ersten paar Zeilen:

-- pmf2.6: faquser faqadminlog faqattachment faqattachment_file faqcaptcha faqcategories faqcategory_group faqcategory_user faqcategoryrelations faqchanges faqcomments faqconfig faqdata faqdata_group faqdata_revisions faqdata_tags faqdata_user faqglossary faqgroup faqgroup_right faqlinkverifyrules faqnews faqquestions faqright faqsearches faqsessions faqstopwords faqtags faquser_group faquser_right faquserdata faquserlogin faqvisits faqvoting
-- DO NOT REMOVE THE FIRST LINE!
-- pmftableprefix:
-- DO NOT REMOVE THE LINES ABOVE!
-- Otherwise this backup will be broken.
-- Table: faquser
INSERT INTO faquser (user_id,login,session_id,session_timestamp,ip,account_status,last_login,auth_source,member_since) VALUES (1,'admin','n01t5aaemp5u9uov4ucerde6a1',1287860024,'192.168.1.31','protected',20101023205242,'local',20101023204155);
INSERT INTO faquser (user_id,login,session_id,session_timestamp,ip,account_status,last_login,auth_source,member_since) VALUES (-1,'anonymous',NULL,1287859315,NULL,'protected',NULL,NULL,20101023204155);
-- Table: faqadminlog
-- Table: faqattachment
-- Table: faqattachment_file
-- Table: faqcaptcha
-- Table: faqcategories
-- Table: faqcategory_group
-- Table: faqcategory_user
-- Table: faqcategoryrelations
-- Table: faqchanges
-- Table: faqcomments
-- Table: faqconfig
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.administrationMail','xxxxxx@yy.zz');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.bannedIPs','');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.contactInformations','');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.currentVersion','2.6.9');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.currentApiVersion',1);
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.disableAttachments','true');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.enableAdminLog','true');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.enableRewriteRules','false');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.enableUserTracking','true');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.ipCheck','false');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.language','language_en.php');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.languageDetection','true');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.ldapSupport','false');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.maxAttachmentSize',100000);
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.metaDescription','phpMyFAQ should be the answer for all questions in life');
INSERT INTO faqconfig (config_name,config_value) VALUES ('main.metaKeywords','');

Gruss Hansueli.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Restore eines phpmyfaq Backups

Post by Thorsten »

Hi,

okay, dann kommen die Daten mit einem falschem MIME Typ an. Welchen Browser nutzt du?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
perl01
Posts: 7
Joined: Sat Oct 23, 2010 8:32 pm

Re: Restore eines phpmyfaq Backups

Post by perl01 »

meistens Firefox
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Restore eines phpmyfaq Backups

Post by Thorsten »

Hi,

könntest du mir deinen Dump mal schicken, dann überprüfe ich das gerne.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
perl01
Posts: 7
Joined: Sat Oct 23, 2010 8:32 pm

Re: Restore eines phpmyfaq Backups

Post by perl01 »

Hi Thorsten

Der Backup muss in Ordnung sein, denn ich konnte ihn ohne Probleme auf einen XAMPP-Server auf Windows importieren.


Gruss Hansueli.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Restore eines phpmyfaq Backups

Post by Thorsten »

Hi,

dann kommt das File mit einem unerwartetem MIME Typ an... den müsste ich wissen.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
perl01
Posts: 7
Joined: Sat Oct 23, 2010 8:32 pm

Re: Restore eines phpmyfaq Backups

Post by perl01 »

Hi Thorsten

Wie finde ich den raus?


Gruss Hansueli.
perl01
Posts: 7
Joined: Sat Oct 23, 2010 8:32 pm

Re: Restore eines phpmyfaq Backups

Post by perl01 »

Hi Thorsten

Der mime Type des Files ist wie folgt:

phpmyfaq-data.2010-10-27-21-45-37.sql: text/plain; charset=us-ascii


Gruss Hansueli.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Restore eines phpmyfaq Backups

Post by Thorsten »

Hi,

text/plain sollte funktionieren, ich checke auf
  • application/octet-stream
  • text/plain
  • text/x-sql
Ich checke das genauer.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Restore eines phpmyfaq Backups

Post by Thorsten »

Hi,

kannst du die Datei admin/backup.import.php mal an der Stelle ändern:

Code: Select all

diff --git a/phpmyfaq/admin/backup.import.php b/phpmyfaq/admin/backup.import.php
index e11d791..01b839e 100644
--- a/phpmyfaq/admin/backup.import.php
+++ b/phpmyfaq/admin/backup.import.php
@@ -100,7 +100,9 @@ if ($permission['restore']) {
             print "<p>".$g." ".$PMF_LANG["ad_csv_of"]." ".$anz." ".$PMF_LANG["ad_csv_suc"]."</p>\n";
         }
     } else {
-        print "<p>".$PMF_LANG["ad_csv_no"]." (Wrong filetype)</p>";
+        printf("<p>%s (Wrong filetype: %s)</p>",
+            $PMF_LANG['ad_csv_no'],
+            $_FILES['userfile"]["type']);
     }
 } else {
     print $PMF_LANG["err_NotAuth"];
Danke!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
perl01
Posts: 7
Joined: Sat Oct 23, 2010 8:32 pm

Re: Restore eines phpmyfaq Backups

Post by perl01 »

Hi Thorsten

Der Output ist wie folgt:

===========================

Restore a backup

This does not seem to be a backup of phpmyfaq. (Wrong filetype: )

====================================

Es scheint so, als könnte er den Filetype gar nicht ermitteln.


Gruss Hansueli.
Post Reply