Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Not possible to add a new calendar anymore #213

Closed
zioalex opened this issue Nov 6, 2018 · 12 comments
Closed

Not possible to add a new calendar anymore #213

zioalex opened this issue Nov 6, 2018 · 12 comments

Comments

@zioalex
Copy link

zioalex commented Nov 6, 2018

Hi I just retried to add the Calendar because some events were missed. The I could not do it.
I go the follow error in the console:

> 1st-setup: Error: Warning: Error during creation of erPrimarySMTPCheckRequest. Err=TypeError: this.logDebug is not a function
> 
>   mivFunctions.js:515
> XPCWrappedNative_NoHelper { QueryInterface: QueryInterface(), logLevel: Getter, timeStamp: Getter, message: Getter, errorMessage: Getter, sourceName: Getter, sourceLine: Getter, lineNumber: Getter, columnNumber: Getter, flags: Getter, 21 more… }  mivFunctions.js:520
> 
> 
> calICalendarACLEntry getOwnerIdentities:null
> console.error: 
>   1st-setup: Error: Warning: Error during creation of erPrimarySMTPCheckRequest. Err=TypeError: this.logDebug is not a function
> 
> 
> console.error: 
> Object
>     - QueryInterface = function QueryInterface() { [native code] }
>     - logLevel = 3
>     - timeStamp = 1541510254075
>     - message = [JavaScript Error: "1st-setup: Warning: Error during creation of erPrimarySMTPCheckRequest. Err=TypeError: this.logDebug is not a function|"]
>     - toString = function toString() { [native code] }
>     - errorMessage = 1st-setup: Warning: Error during creation of erPrimarySMTPCheckRequest. Err=TypeError: this.logDebug is not a function|
>     - sourceName = 
>     - sourceLine = null
>     - lineNumber = 0
>     - columnNumber = 0
>     - flags = 0
>     - category = component javascript
>     - outerWindowID = 0
>     - innerWindowID = 0
>     - isFromPrivateWindow = false
>     - stack = undefined
>     - errorMessageName = 
>     - notes = {"length":0}
>     - init = function init() { [native code] }
>     - initWithWindowID = function initWithWindowID() { [native code] }
>     - initWithSanitizedSource = function initWithSanitizedSource() { [native code] }
>     - initWithSourceURI = function initWithSourceURI() { [native code] }
>     - debug = 0
>     - info = 1
>     - warn = 2
>     - error = 3
>     - errorFlag = 0
>     - warningFlag = 1
>     - exceptionFlag = 2
>     - strictFlag = 4
>     - infoFlag = 8

I am using Thunderbird 60.2.1 and Lighting 6.2.2.1 coming out of the box with Thunderbird.
I tried with both v5.0.0-alpha1 and alpha2 the problem is the same.
So at the moment I am out of the order with TB!

@zioalex
Copy link
Author

zioalex commented Nov 6, 2018

I looked in the code but I cannot find out where this error come from.
common/interface/global/mivFunctions.js
In that lines I have:

514     ERROR: function _ERROR(aMessage) {
515         console.error("1st-setup: Error: " + aMessage + '\n');
516         var scriptError = Cc["@mozilla.org/scripterror;1"].createInstance(Ci.nsIScriptError);
517         scriptError.init("1st-setup: " + aMessage, null, null, 0, 0,
518             Ci.nsIScriptError.errorFlag,
519             "component javascript");
520         console.error(scriptError);
521     },

@ruohomaa-ericsson
Copy link

Could not reproduce this on my setup and a particular networked calendar, software versions match. I have also cloned and then edited-clone of an existing calendar to add a new calendar (with alpha1) and the new calendar is working.

@zioalex
Copy link
Author

zioalex commented Nov 7, 2018 via email

@wrouesnel
Copy link

I'm having a similar problem. Somewhere in the javascript that logDebug function is being blanked out (or called in the wrong order).

@isorochan
Copy link

I'm observing same issue

advancingu added a commit that referenced this issue Nov 11, 2018
* Add missing function declaration.
@advancingu
Copy link
Member

Can someone please check if #216 fixes the issue.

@zioalex
Copy link
Author

zioalex commented Nov 11, 2018 via email

@advancingu
Copy link
Member

@zioalex Did you build from branch 213-logging-fix? This PR is not yet in a release.

@wrouesnel
Copy link

wrouesnel commented Nov 11, 2018

@advancingu pulled and tested the PR and it fixes calendars for me perfectly thanks!

@zioalex I recommend adding this stanza to .git:

[remote "origin"]
	url = https://github.com/ExchangeCalendar/exchangecalendar.git
	fetch = +refs/heads/*:refs/remotes/origin/*
  fetch = +refs/pull/*/head:refs/remotes/origin/pr/*

so you can just pull the PRs directly - makes life a lot easier

advancingu added a commit that referenced this issue Nov 11, 2018
@advancingu
Copy link
Member

Fixed in #216.

@zioalex
Copy link
Author

zioalex commented Nov 12, 2018

Nope I didn't try from that branch. Yep now it works also for me. Many thanks.
Thanks @wrouesnel for the advise.

@Mechtilde
Copy link

I want to open this issue. It doesn't work in version 5.0.0-alpha 2.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918591

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants