Error parsing XML file

Bug #746062 reported by Micah Gersten on 2011-03-30
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
High
Izidor Matušov

Bug Description

Binary package hint: gtg

Error parsing XML file /home/micah/.local/share/gtg/projects.xml: no element found: line 1, column 0

The file in question is empty.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: gtg 0.2.4-5
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
Architecture: amd64
Date: Wed Mar 30 16:32:26 2011
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/bash
SourcePackage: gtg
UpgradeStatus: Upgraded to natty on 2011-03-06 (24 days ago)

Micah Gersten (micahg) wrote :
Izidor Matušov (izidor) wrote :

The XML backend of GTG is buggy when you turn your computer off in the middle of saving operation (another problem is that you have some garbage after end element)

Workaround: GTG stores backups in ~/.local/share/gtg/. Just rename projects.xml.bak.0 to projects.xml and everything should be in order.

PhuniX (xavierouvray) wrote :

I have a soluce :

1) Backup all task files wich named like that : gtg_tasks-1c74a83b-ebb0-48ba-9f28-c1098e91ff1c.xml.2012-07-19.bak
2) delete folder : ~/.local/share/gtg/
3) Open GTG , a new folder ~/.local/share/gtg/ is created
3b) Close GTG
4) Paste your backup in this folder
5) Open projects.xml and change the Hexacode following "~/gtg-tasks-" :

path="/home/xavier/.local/share/gtg/gtg_tasks-1c74a83b-ebb0-48ba-9f28-c1098e91ff1c.xml"

You must find this code in the name of an old backup and superseded the Hexacode of the new created backup.

6) at the next open of GTG, you must find your old backups.

Phen-X

Izidor Matušov (izidor) wrote :

GTG can automatically handle situations like this one and restore tasks/projects from backup.

affects: gtg (Ubuntu) → gtg
Changed in gtg:
assignee: nobody → Izidor Matušov (izidor)
status: New → Fix Committed
milestone: none → 0.3
importance: Undecided → High
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers