Author Topic: Error  (Read 210 times)

0 Members and 1 Guest are viewing this topic.

bart.leyen

  • Level 1
  • *
  • Posts: 2
    • View Profile
Error
« on: April 27, 2017, 03:23:17 AM »
Hello, when I try to open my database i get an error message.

Could not read file - XML parse error at line 264, column 27:
The teacher Aimable has attached an inexistent qualified subject . Please note that starting with FET version 5.31.5 the list of subjects (tag <Subjects_List> in the .fet XML file) must appear before the list of teachers (tag <Teachers_List> in the .fet XML file)

Can someone please help me with this, because I spend a lot of time in the creation of this timetable  :'(

Kind regards
Bart

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5163
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: Error
« Reply #1 on: April 27, 2017, 04:03:16 AM »
Hello,

The FET bug is that it should write "5.30.0" instead of "5.31.5" (thank you for this bug report!). I think the rest is your bug. Please attach your file or send it by email. Basically, you should follow what the message says.

Is your file generated by FET or by another program?
« Last Edit: April 27, 2017, 04:04:56 AM by Liviu Lalescu »

bart.leyen

  • Level 1
  • *
  • Posts: 2
    • View Profile
Re: Error
« Reply #2 on: April 27, 2017, 06:35:48 AM »
Hi

Thanks for your reply, I already found the problem. I used '&' in the name of a subject. Aperently this was the problem.

Kind regards

Volker Dirr

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 1892
    • View Profile
Re: Error
« Reply #3 on: April 27, 2017, 08:10:17 AM »
You are right. We printed "&" into the qualified subject name instead of protecting that string to "&amp;". Will be easy to fix (i think). Thank you for report.

Volker Dirr

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 1892
    • View Profile
Re: Error
« Reply #4 on: April 27, 2017, 08:16:03 AM »
Liviu: In teacher.cpp line 40 the protection is missing. It must be "+protect(sbj)+"

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5163
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: Error
« Reply #5 on: April 27, 2017, 09:48:38 AM »
Thanks, Volker :)

Thank you, bart.leyen! I released a new version to fix the bug.