[Solved] Strange Bug – Edition Impossible

Cardbook for Thunderbird Forums Main Forum [Solved] Strange Bug – Edition Impossible

This topic contains 16 replies, has 2 voices, and was last updated by CardBook CardBook 1 year, 10 months ago.

  • Author
    Posts
  • #497
    Avatar
    Supporter
    Participant

    Thunderbird 52.0.1, CardBook 18.6, NextCloud Server 11.0.3

    __________________________________________

    Hello,

    first of all many thanks for this great addon, it works like a charm on several machines!

    In one case however, cardbook seems to be broken. There is only one adress book which was filled with about 300 contacts. The user revised the whole thing, deleted duplicates etc. and now there are 150 contacts left.

    From this moment on several errors appeared when sychronizing with NextCloud. Furthermore it ist not possible to add new contacts or edit existing ones anymore.

    This is the window we archive:

    http://[url=http://www.fotos-hochladen.net/view/editwindowwg9r2idzx7.png%5D%5Bimg%5Dhttp://img5.fotos-hochladen.net/thumbnail/editwindowwg9r2idzx7_thumb.jpg%5B/img%5D%5B/url%5D

    I tried many things to get Cardbook back to work, but nothing was of help. I deleted the adressbook with all contacts, uninstalled Cardbook and even deleted it’s lines in the prefs-js before re-installing. I deleted the adressbook on the NextCloud server with all it’s contacts and set up the whole configuration process from the beginning again.

    Finally I created a dummy entry for IMPP in Cardbook’s settings for “instant massenger”, because one user gave this advice somewhere in this board.

    What can I do to repair Cardbook? Any help is appreciated!

     

    • This topic was modified 1 year, 10 months ago by Avatar Supporter.
    • This topic was modified 1 year, 10 months ago by Avatar Supporter.
    • This topic was modified 1 year, 10 months ago by Avatar Supporter.
    • This topic was modified 1 year, 10 months ago by CardBook CardBook.
  • #500
    CardBook
    CardBook
    Keymaster

    initial comment :

    Thunderbird 52.0.1, CardBook 18.6, NextCloud Server 11.0.3

    Hello, first of all many thanks for this great addon, it works like a charm on several machines! In one case however, cardbook seems to be broken.

    There is only one adress book which was filled with about 300 contacts. The user revised the whole thing, deleted duplicates etc. and now there are 150 contacts left.

    From this moment on several errors appeared when sychronizing with NextCloud. Furthermore it ist not possible to add new contacts or edit existing ones anymore.

    This is the window we archive: I tried many things to get Cardbook back to work, but nothing was of help. I deleted the adressbook with all contacts, uninstalled Cardbook and even deleted it’s lines in the prefs-js before re-installing. I deleted the adressbook on the NextCloud server with all it’s contacts and set up the whole configuration process from the beginning again. Finally I created a dummy entry for IMPP in Cardbook’s settings for “instant massenger”, because one user gave this advice somewhere in this board. What can I do to repair Cardbook? Any help is appreciated!

  • #501
    CardBook
    CardBook
    Keymaster

    have you got errors in the javascript console : CTRL+SHIFT+J ? seems your database is broken…

  • #503
    Avatar
    Supporter
    Participant

    I can see nothing with a hint to Cardbook, but i can paste the entries, if it is helpfull…

    I wanted to display the window I recieve in my innitial posting, but it does not seem to show up. Here it is:

    http://www.fotos-hochladen.net/view/editwindowwg9r2idzx7.png

  • #504
    Avatar
    Supporter
    Participant
  • #509
    CardBook
    CardBook
    Keymaster

    if there are no entries related to indexeddb in the javascript console, set the debug mode and increase the log size in CardBook preferences, restart Thunderbird and send me the CardBook log (for it click on the text at the bottom right in the Cardbook tab)

  • #519
    Avatar
    Supporter
    Participant

    Thanks for your quick replies!

    At the moment, there’s only one contact in the adress book, that is because I tested a lot of things (like I wrote above).

    This is the log:

    2017.04.26 12:30:41:458 : test : Adressbuch geöffnet
    2017.04.26 12:30:41:461 : Kontakte : Adressbuch geöffnet
    2017.04.26 12:30:42:105 : Kontakte : debug mode : Contact Alexander Nutz added to display
    2017.04.26 12:30:42:106 : Kontakte: Kontakt Alexander Nutz aus dem Cache geladen (IndexedDB)
    2017.04.26 12:30:42:490 : Richte periodischen Sync ein (Intervall: 600000 ms, ID: 23)
    2017.04.26 12:30:42:517 : test : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:42:517 : test : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:42:520 : test: Suche Kontakte …
    2017.04.26 12:30:42:528 : test : debug mode : method : (new String(“PROPFIND”))
    2017.04.26 12:30:42:528 : test : debug mode : body : (new String(“<?xml version=\”1.0\” encoding=\”utf-8\”?><D:propfind xmlns:D=\”DAV:\”><D:prop><D:getcontenttype/><D:getetag/></D:prop></D:propfind>”))
    2017.04.26 12:30:42:528 : test : debug mode : headers : (new String(“({depth:\”1\”, ‘content-type’:\”application/xml; charset=utf-8\”, ‘X-client’:\”CardBook (Thunderbird)\”, ‘User-Agent’:\”Thunderbird\”, Authorization:\”Basic Q29ubnk6QyMyMDE3\”})”))
    2017.04.26 12:30:42:528 : test : debug mode : username : (new String(“Conny”))
    2017.04.26 12:30:42:528 : test : debug mode : url : (new String(“https://www.xyz.de/nextcloud/remote.php/dav/addressbooks/users/Conny/test/”))
    2017.04.26 12:30:42:533 : Kontakte : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:42:533 : Kontakte : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:42:535 : Kontakte: Suche Kontakte …
    2017.04.26 12:30:42:538 : Kontakte : debug mode : method : (new String(“PROPFIND”))
    2017.04.26 12:30:42:538 : Kontakte : debug mode : body : (new String(“<?xml version=\”1.0\” encoding=\”utf-8\”?><D:propfind xmlns:D=\”DAV:\”><D:prop><D:getcontenttype/><D:getetag/></D:prop></D:propfind>”))
    2017.04.26 12:30:42:538 : Kontakte : debug mode : headers : (new String(“({depth:\”1\”, ‘content-type’:\”application/xml; charset=utf-8\”, ‘X-client’:\”CardBook (Thunderbird)\”, ‘User-Agent’:\”Thunderbird\”, Authorization:\”Basic Q29ubnk6QyMyMDE3\”})”))
    2017.04.26 12:30:42:538 : Kontakte : debug mode : username : (new String(“Conny”))
    2017.04.26 12:30:42:538 : Kontakte : debug mode : url : (new String(“https://www.xyz.de/nextcloud/remote.php/dav/addressbooks/users/Conny/Kontakte/”))
    2017.04.26 12:30:43:571 : test : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:43:571 : test : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:43:572 : test : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:43:578 : Kontakte : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:43:578 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:43:578 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncTotal : (new Number(1))
    2017.04.26 12:30:43:578 : Kontakte : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:43:578 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncDone : (new Number(1))
    2017.04.26 12:30:44:588 : test : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:44:588 : test : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:44:589 : test : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:44:603 : Kontakte : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:44:603 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:44:603 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncTotal : (new Number(1))
    2017.04.26 12:30:44:603 : Kontakte : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:44:604 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncDone : (new Number(1))
    2017.04.26 12:30:45:607 : test : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:45:607 : test : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:45:608 : test : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:45:643 : Kontakte : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:45:643 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:45:643 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncTotal : (new Number(1))
    2017.04.26 12:30:45:643 : Kontakte : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:45:644 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncDone : (new Number(1))
    2017.04.26 12:30:46:628 : test : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:46:628 : test : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:46:629 : test : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:46:673 : Kontakte : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:46:673 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:46:673 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncTotal : (new Number(1))
    2017.04.26 12:30:46:673 : Kontakte : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:46:673 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncDone : (new Number(1))
    2017.04.26 12:30:47:067 : Kontakte : debug mode : response text : (new String(“<?xml version=\”1.0\”?>\n<d:multistatus xmlns:d=\”DAV:\” xmlns:s=\”http://sabredav.org/ns\” xmlns:cal=\”urn:ietf:params:xml:ns:caldav\” xmlns:cs=\”http://calendarserver.org/ns/\” xmlns:card=\”urn:ietf:params:xml:ns:carddav\” xmlns:oc=\”http://owncloud.org/ns\” xmlns:nc=\”http://nextcloud.org/ns\”>\n <d:response>\n  <d:href>/nextcloud/remote.php/dav/addressbooks/users/Conny/Kontakte/</d:href>\n  <d:propstat>\n   <d:prop>\n    <d:getcontenttype/>\n    <d:getetag/>\n   </d:prop>\n   <d:status>HTTP/1.1 404 Not Found</d:status>\n  </d:propstat>\n </d:response>\n <d:response>\n  <d:href>/nextcloud/remote.php/dav/addressbooks/users/Conny/Kontakte/3ebbf819-9172-4d31-90a2-78dab6f3c475.vcf</d:href>\n  <d:propstat>\n   <d:prop>\n    <d:getcontenttype>text/x-vcard</d:getcontenttype>\n    <d:getetag>&quot;7fb0281b54d1bfb6b4cd09f4d962cef0&quot;</d:getetag>\n   </d:prop>\n   <d:status>HTTP/1.1 200 OK</d:status>\n  </d:propstat>\n </d:response>\n</d:multistatus>\n”))
    2017.04.26 12:30:47:067 : Kontakte : debug mode : response code : (new Number(207))
    2017.04.26 12:30:47:091 : Kontakte: Kontakt Alexander Nutz bereits aus dem Cache gelesen
    2017.04.26 12:30:47:646 : test : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:47:646 : test : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:47:647 : test : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:47:679 : test : debug mode : response text : (new String(“<?xml version=\”1.0\”?>\n<d:multistatus xmlns:d=\”DAV:\” xmlns:s=\”http://sabredav.org/ns\” xmlns:cal=\”urn:ietf:params:xml:ns:caldav\” xmlns:cs=\”http://calendarserver.org/ns/\” xmlns:card=\”urn:ietf:params:xml:ns:carddav\” xmlns:oc=\”http://owncloud.org/ns\” xmlns:nc=\”http://nextcloud.org/ns\”>\n <d:response>\n  <d:href>/nextcloud/remote.php/dav/addressbooks/users/Conny/test/</d:href>\n  <d:propstat>\n   <d:prop>\n    <d:getcontenttype/>\n    <d:getetag/>\n   </d:prop>\n   <d:status>HTTP/1.1 404 Not Found</d:status>\n  </d:propstat>\n </d:response>\n</d:multistatus>\n”))
    2017.04.26 12:30:47:680 : test : debug mode : response code : (new Number(207))
    2017.04.26 12:30:47:687 : Kontakte : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:47:687 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:47:688 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncTotal : (new Number(2))
    2017.04.26 12:30:47:688 : Kontakte : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:47:688 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncResponse : (new Number(1))
    2017.04.26 12:30:47:688 : Kontakte : debug mode : cardbookRepository.cardbookServerSyncDone : (new Number(2))
    2017.04.26 12:30:47:690 : Kontakte: Synchronisation beendet. Ergebnisse:
    2017.04.26 12:30:47:690 : Kontakte: Nicht veränderte Kontakte: 1
    2017.04.26 12:30:47:690 : Kontakte: Neue Kontakte auf dem Server: 0
    2017.04.26 12:30:47:690 : Kontakte: Auf dem Server aktualisierte Kontakte: 0
    2017.04.26 12:30:47:691 : Kontakte: Auf dem Server gelöschte Kontakte: 0
    2017.04.26 12:30:47:691 : Kontakte: Lokal gelöschte Kontakte: 0
    2017.04.26 12:30:47:691 : Kontakte: Lokal gelöschte aber auf dem Server aktualisierte Kontakte: 0
    2017.04.26 12:30:47:691 : Kontakte: Neue lokale Kontakte: 0
    2017.04.26 12:30:47:691 : Kontakte: Lokal aktualisierte Kontakte: 0
    2017.04.26 12:30:47:691 : Kontakte: Lokal und auf dem Server aktualisierte Kontakte: 0
    2017.04.26 12:30:47:691 : Kontakte: Lokal aktualisierte aber auf dem Server gelöschte Kontakte: 0
    2017.04.26 12:30:47:691 : Kontakte: Erfolgreich vom Server empfangene Änderungen: 0
    2017.04.26 12:30:47:692 : Kontakte: Erfolglos vom Server empfangene Änderungen: 0
    2017.04.26 12:30:47:692 : Kontakte: Erfolgreich an den Server gesendete Änderungen: 0
    2017.04.26 12:30:47:692 : Kontakte: Erfolglos an den Server gesendete Änderungen: 0
    2017.04.26 12:30:47:692 : Kontakte: Bilder heruntergeladen: 0
    2017.04.26 12:30:47:692 : Kontakte: Bilder mit Fehlern: 0
    2017.04.26 12:30:47:693 : Total : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:47:693 : Total : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:47:694 : Total : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:47:694 : Total : debug mode : cardbookRepository.cardbookServerSyncResponse : (new Number(1))
    2017.04.26 12:30:48:668 : test : debug mode : cardbookRepository.cardbookDBRequest : (new Number(1))
    2017.04.26 12:30:48:668 : test : debug mode : cardbookRepository.cardbookServerSyncRequest : (new Number(1))
    2017.04.26 12:30:48:669 : test : debug mode : cardbookRepository.cardbookDBResponse : (new Number(1))
    2017.04.26 12:30:48:669 : test : debug mode : cardbookRepository.cardbookServerSyncResponse : (new Number(1))
    2017.04.26 12:30:48:671 : test: Synchronisation beendet. Ergebnisse:
    2017.04.26 12:30:48:672 : test: Nicht veränderte Kontakte: 0
    2017.04.26 12:30:48:672 : test: Neue Kontakte auf dem Server: 0
    2017.04.26 12:30:48:672 : test: Auf dem Server aktualisierte Kontakte: 0
    2017.04.26 12:30:48:672 : test: Auf dem Server gelöschte Kontakte: 0
    2017.04.26 12:30:48:673 : test: Lokal gelöschte Kontakte: 0
    2017.04.26 12:30:48:673 : test: Lokal gelöschte aber auf dem Server aktualisierte Kontakte: 0
    2017.04.26 12:30:48:674 : test: Neue lokale Kontakte: 0
    2017.04.26 12:30:48:674 : test: Lokal aktualisierte Kontakte: 0
    2017.04.26 12:30:48:674 : test: Lokal und auf dem Server aktualisierte Kontakte: 0
    2017.04.26 12:30:48:675 : test: Lokal aktualisierte aber auf dem Server gelöschte Kontakte: 0
    2017.04.26 12:30:48:675 : test: Erfolgreich vom Server empfangene Änderungen: 0
    2017.04.26 12:30:48:675 : test: Erfolglos vom Server empfangene Änderungen: 0
    2017.04.26 12:30:48:675 : test: Erfolgreich an den Server gesendete Änderungen: 0
    2017.04.26 12:30:48:676 : test: Erfolglos an den Server gesendete Änderungen: 0
    2017.04.26 12:30:48:676 : test: Bilder heruntergeladen: 0
    2017.04.26 12:30:48:676 : test: Bilder mit Fehlern: 0
    2017.04.26 12:30:48:678 : Alle Synchronisationen beendet.

    • This reply was modified 1 year, 10 months ago by Avatar Supporter.
  • #521
    Avatar
    Supporter
    Participant

    Note: The syncing does not seem to cause troubles, it is the strange (broken) window I recieve when opening an existing contact or trying to add a new one.

  • #522
    CardBook
    CardBook
    Keymaster

    arglll… try to delete your custom fields… I can’t understand why there are no errors in the javascript console… have you got set up something in the fifth tab in CardBook preferences ?…

  • #523
    Avatar
    Supporter
    Participant

    All custom fields deleted. The fifth tab is empty (i guess you mean “business information”?)

    No changes.

    But it remains strange, suddenly i recieve a more specific error in js console when i open the existing contact entry. Hope this will help you (and me 🙂 ):

    NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIFile.remove] – cardbookUtils.js:1887

    cardbookUtils.purgeEditionPhotoTempFile chrome://cardbook/content/cardbookUtils.js:1887:5
    wdw_cardEdition.load chrome://cardbook/content/cardEdition/wdw_cardEdition.js:690:4
    onload chrome://cardbook/content/cardEdition/wdw_cardEdition.xul:1:1
    cardbookUtils.openEditionWindow chrome://cardbook/content/cardbookUtils.js:2528:20
    wdw_cardbook.editCard chrome://cardbook/content/wdw_cardbook.js:366:6
    wdw_cardbook.chooseActionCardsTree chrome://cardbook/content/wdw_cardbook.js:960:5
    wdw_cardbook.doubleClickCardsTree chrome://cardbook/content/wdw_cardbook.js:942:7
    ondblclick chrome://messenger/content/messenger.xul:1:1

     

  • #524
    Avatar
    Supporter
    Participant

    One more, don’t know if it’s related to my problem:

    ReferenceError: InitViewLayoutStyleMenu is not defined[Weitere Informationen]  ovl_cardbookLayout.js:102:6
    <anonym> chrome://cardbook/content/layout/ovl_cardbookLayout.js:102:6
    <anonym> chrome://cardbook/content/layout/ovl_cardbookLayout.js:100:2
    wdw_cardbook.openOptionsEdition chrome://cardbook/content/wdw_cardbook.js:1425:19
    oncommand chrome://messenger/content/messenger.xul:1:1

  • #525
    CardBook
    CardBook
    Keymaster

    ok very good, this will help a lot :O)… I’ll come back to you

    has this contact a photo ?

  • #526
    Avatar
    Supporter
    Participant

    I’m glad to hear this!

    This contact does not have a photo, but my impression is, that the whole problem started after the user added photos to some of the other contacts.

    Those photos were particularly added in NextClouds adress book and should be synced with CardBook. Perfectly possible, that the error was caused by this.

     

     

  • #527
    CardBook
    CardBook
    Keymaster

    this is because CardBook needs a temporary file for writing its pictures when editting… in your case CardBook can not delete a previous temporary photo (I don’t know why)… so on windows this temporary photo is located in this file : C:\Users\myuser\AppData\Local\Temp\cardbook

    so add the correct grants to enable its deletion…

  • #529
    Avatar
    Supporter
    Participant

    Thank you very much, that was a big step towards the solution!

    I had to delete the temp folder (there was only one photo in it, 2,3 MB) and after this i can edit contacts as intended again.

    I don’t know why CardBook was not able to write within this folder anymore, there were no changes in NTFS access rights or else. (Yes, it’s a windows computer.)

    After this was fixed, i deleted the adress book in CardBook and NextCloud again, created a new one, configered everything like it has been before and imported the 152 contacts.

    Now CardBook is fine again, but when I tried to sync everything, only 72 contacts reached NextCloud. For 80 contacts I recieve the error message:

    “2017.04.26 14:16:35:698 : Kontakte: Kontakt XYZ konnte nicht auf dem Server erstellt werden (URL: https://www.xyz.de/nextcloud/remote.php/dav/addressbooks/users/Conny/Kontakte/fefc44a1-1565-4a69-a866-e8c80575a167.vcf, Status: 415)”

    This seams to refer to an “unsupported media type”, but why is that? It does not seam to be related with contact photos, because entries with and without photos are affected, as well as entries with and without photos succeeded the sync process…

  • #530
    Avatar
    Supporter
    Participant

    Well, i’ve overseen another line in the log, this last error has sth. to do with birthdays, sorry.

    “2017.04.26 14:41:24:358 : Kontakte : debug mode : response text : (new String(“<?xml version=\”1.0\” encoding=\”utf-8\”?>\n<d:error xmlns:d=\”DAV:\” xmlns:s=\”http://sabredav.org/ns\”>\n  <s:exception>Sabre\\DAV\\Exception\\UnsupportedMediaType</s:exception>\n  <s:message>Validation error in vCard: The supplied value (16.06.) is not a correct DATE-AND-OR-TIME property</s:message>\n</d:error>\n”))”

  • #531
    CardBook
    CardBook
    Keymaster

    yes this should be birthdays problem… (and use the last version 18.7 which avoid empty types ;O)

You must be logged in to reply to this topic.