Author Topic: Invalid directory supplied to the AddressBook constructor  (Read 831 times)

daveozric

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
Invalid directory supplied to the AddressBook constructor
« on: September 04, 2010, 10:04:45 AM »
Invalid directory supplied to the AddressBook constructor
Called by: undefined
Please report this error to gcontactsync at pirules.org (in English, if possible)

I added an account and it doesn't show up, but I can't add the account.  Says it's already being synced.  Even Weirder is my wife's profile works fine.

Thanks

EDIT:  I removed the log file after I downloaded it, thanks.  --Josh
« Last Edit: September 04, 2010, 10:38:42 AM by Josh Geenen »

Josh Geenen

  • gContactSync Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 439
  • Karma: +0/-0
    • Pi Rules.org
Re: Invalid directory supplied to the AddressBook constructor
« Reply #1 on: September 04, 2010, 11:05:17 AM »
Can you go to Tools -> Error Console then copy and paste this entire line under Code:, then click Evaluate:
Code: [Select]
var Ci=Components.interfaces,abManager=Components.classes["@mozilla.org/abmanager;1"].getService(Ci.nsIAbManager), iter=abManager.directories,str="";while(iter.hasMoreElements()){var data=iter.getNext();if(data instanceof Ci.nsIAbDirectory){str+=data.dirName+","+data.URI+"," +data.dirType+"\n";}}throw str;
It will then show something like "uncaught exception:" ...  Right-click that entry and hit Copy then please paste that in a reply here.  It should list all of your address books.
gContactSync: info FAQs

daveozric

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
Re: Invalid directory supplied to the AddressBook constructor
« Reply #2 on: September 04, 2010, 11:26:10 AM »
Error: uncaught exception: Buisness',moz-abmdbdirectory://impab-2.mab,2
Buisness Contacts,moz-abmdbdirectory://Buisness%20Contacts.mab,2
Collected Addresses,moz-abmdbdirectory://history.mab,2
Collected Addresses,moz-abmdbdirectory://history.mab,2
Collected Addresses,moz-abmdbdirectory://history.mab,2
Collected Addresses,moz-abmdbdirectory://history.mab,2
Collected Addresses,moz-abmdbdirectory://history.mab,2
Collected Addresses,moz-abmdbdirectory://history.mab,2
Computer Clients,moz-abmdbdirectory://impab-7.mab,2
Contractors,moz-abmdbdirectory://Contractors.mab,2
Doctors,moz-abmdbdirectory://impab-4.mab,2
Family ,moz-abmdbdirectory://impab-3.mab,2
Financial,moz-abmdbdirectory://impab-6.mab,2
Friends,moz-abmdbdirectory://impab-5.mab,2
Gov.,moz-abmdbdirectory://abook-1.mab,2
MATC,moz-abmdbdirectory://impab-15.mab,2
Music,moz-abmdbdirectory://impab-11.mab,2
Neighbors,moz-abmdbdirectory://Neighbors.mab,2
Other Contacts,moz-abmdbdirectory://impab-9.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Personal Address Book,moz-abmdbdirectory://abook.mab,2
Stores,moz-abmdbdirectory://abook-4.mab,2
ToO,moz-abmdbdirectory://abook-3.mab,2
Web Design,moz-abmdbdirectory://impab-17.mab,2
,moz-abldapdirectory://pab.mab,0
Collected Addresses,moz-abmdbdirectory://history.mab,2

daveozric

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
Re: Invalid directory supplied to the AddressBook constructor
« Reply #3 on: September 04, 2010, 11:32:24 AM »
That does remind me I see lots of extra personal address books and multiple collected address if I open the address book sidebar when composing a email and open the drop down. 

Josh Geenen

  • gContactSync Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 439
  • Karma: +0/-0
    • Pi Rules.org
Re: Invalid directory supplied to the AddressBook constructor
« Reply #4 on: September 04, 2010, 11:38:39 AM »
Quote
,moz-abldapdirectory://pab.mab,0
This looks like the cause of the error to me; I check to make sure that the each address book's name isn't blank since that isn't supposed to happen, but you've managed to create an address book with a blank name.

Did you have all those Personal Address Books and Collected Address Books before installing gContactSync?  What other add-ons do you have installed in that profile?
gContactSync: info FAQs

daveozric

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
Re: Invalid directory supplied to the AddressBook constructor
« Reply #5 on: September 04, 2010, 11:53:49 AM »
Can I just delete it. 

I have 595 31KB .mab files.  1 - 595.mab and one .mab at the top. Opening them in notepad ++ they all look the same too.  They were there before I installed gsync I believe.

I don't have many add-ons
manually sort folders
minimize to tray plus
profile switcher
sync kolab  -  need to get rid of when gcontacsync works on my profile
toolbar buttons


Josh Geenen

  • gContactSync Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 439
  • Karma: +0/-0
    • Pi Rules.org
Re: Invalid directory supplied to the AddressBook constructor
« Reply #6 on: September 04, 2010, 12:34:32 PM »
I would recommend actually creating a new profile.  in Windows I believe you can go to Start and type thunderbird -profilemanager to open the Profile Manager but I'm in Linux at the moment and can't test that theory.

If you would prefer to keep your existing profile, first make a complete backup of your profile folder.  You can probably delete all those files with just ".mab"  Any file with ".mab" that doesn't appear in the Config Editor (Tools -> Options -> Advanced -> General and click Config Editor... then type the filename) can be deleted since it isn't used.

Once you clean that up you should clean up the duplicate entries for the Personal and Collected Address Books as well as "    ,moz-abldapdirectory://pab.mab,0"
gContactSync: info FAQs

daveozric

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
Re: Invalid directory supplied to the AddressBook constructor
« Reply #7 on: September 04, 2010, 12:48:50 PM »
New profile sounds the best.  However I have 11 email accounts in my profile.  Is there an easy way to save all the settings so I don't have to add them all again.  I don't care about the email, they are all imap.   Address books I can import.

This would be great if I could use this!  Will donate $$

Josh Geenen

  • gContactSync Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 439
  • Karma: +0/-0
    • Pi Rules.org
Re: Invalid directory supplied to the AddressBook constructor
« Reply #8 on: September 04, 2010, 01:17:20 PM »
I have not attempted this in the past as I only have 2 - 4 e-mail accounts that I really care about.  There are some instructions here on transferring data into a new profile, but it hasn't been updated in 2010.  Also, copying all of prefs.js might be a bad idea in your case as that's where the duplicate address books are stored.

In prefs.js settings are kept in mail.server.serverX where X is the number of the account, starting at 1.  You can at least look at those lines to see what your settings were, but copying those won't be enough to import all your accounts.

So the short answer is no, I do not know of a way to just import e-mail account information.  The article may have some hints if you read it closely enough but I think it would be faster to enter the account details yourself.
gContactSync: info FAQs

daveozric

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
Re: Invalid directory supplied to the AddressBook constructor
« Reply #9 on: September 04, 2010, 01:21:10 PM »
I have been trying mozbackup and it seems to be working.  I am on my 4 try and think I got it.  I'll keep you posted.

Thanks

daveozric

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
Re: Invalid directory supplied to the AddressBook constructor
« Reply #10 on: September 04, 2010, 01:25:47 PM »
NO go.  Will try the instructions you sent.

daveozric

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
Re: Invalid directory supplied to the AddressBook constructor
« Reply #11 on: September 04, 2010, 01:34:28 PM »
That didn't work either.  It still moves the address books and has some bizarre stuff when starting.  I am going to do a fresh start.  If it works I can move the new profile to all 4 computers and U3 drive.  You see why I need your extension!

daveozric

  • Jr. Member
  • **
  • Posts: 30
  • Karma: +0/-0
Re: Invalid directory supplied to the AddressBook constructor
« Reply #12 on: September 04, 2010, 01:55:43 PM »
Thanks for your help.  I sent you some funds for development.

I can migrate my profile as I have time and still use the old one.  Great idea on your part!

Cheers

Josh Geenen

  • gContactSync Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 439
  • Karma: +0/-0
    • Pi Rules.org
Re: Invalid directory supplied to the AddressBook constructor
« Reply #13 on: September 04, 2010, 01:59:57 PM »
OK, good luck and thanks!

Josh
gContactSync: info FAQs