Picture of Nadia H
Course config settings error
by Nadia H - Thursday, 1 November 2018, 4:01 PM
 

I get a couple of different error messages on the course config settings pages of all my courses in the adapt authoring tool.

(0, this.schema.type) is not a constructor

 

Or

constructorFn is not a constructor

 

 

I am running Adapt authoring tool v0.5.0  (Adapt framework v2.2.5).

The following is an example of one of my courses config files:

{
"_defaultLanguage": "en",
"_defaultDirection": "ltr",
"_questionWeight": 1,
"_generateSourcemap": true,
"_forceRouteLocking": true,
"_id": "5b602b511092ca334589095d",
"_courseId": "5b602b511092ca334589095b",
"_drawer": {
"_showEasing": "easeOutQuart",
"_hideEasing": "easeInQuart",
"_duration": 400
},
"_accessibility": {
"_isEnabled": true,
"_isEnabledOnTouchDevices": false,
"_shouldSupportLegacyBrowsers": true,
"_isTextProcessorEnabled": false,
"_isSkipNavigationEnabled": false
},
"screenSize": {
"small": 519,
"medium": 759,
"large": 1600
},
"__v": 0,
"_logging": {
"_isEnabled": true,
"_level": "debug",
"_console": true
},
"_breadcrumb": {
"_isEnabled": true,
"_divider": "/",
"_nbUncollapsableCrumbs": 2,
"_nbFixedCrumbs": 0,
"_animate": false
},
"_spoor": {
"_isEnabled": true,
"_tracking": {
"_requireCourseCompleted": true,
"_requireAssessmentPassed": false,
"_shouldSubmitScore": false,
"_shouldStoreResponses": false,
"_shouldRecordInteractions": true
},
"_reporting": {
"_onTrackingCriteriaMet": "completed",
"_onAssessmentFailure": "incomplete",
"_resetStatusOnLanguageChange": false
},
"_advancedSettings": {
"_showDebugWindow": false,
"_commitOnStatusChange": true,
"_timedCommitFrequency": 10,
"_maxCommitRetries": 5,
"_commitRetryDelay": 2000,
"_suppressErrors": false,
"_commitOnVisibilityChangeHidden": true
}
},
"_trickle": {
"_completionAttribute": "_isComplete"
},
"_languagePicker": {
"_isEnabled": false,
"title": "",
"displayTitle": "",
"body": "",
"_showOnCourseLoad": true,
"_languagePickerIconClass": "icon-language-2",
"_classes": "",
"_languages": [],
"_accessibility": {
"accessibilityToggleTextOn": "Turn accessibility on?",
"accessibilityToggleTextOff": "Turn accessibility off?",
"_accessibilityInstructions": {
"touch": "Usage instructions. Use swipe right for next. Use swipe left for previous. Use a double tap to select. Use a two finger slide up to go to the top of the page.",
"notouch": "Usage instructions. Use tab for next. Use shift tab for previous. Use enter to select. Use escape to go to the top of the page.",
"ipad": "Usage instructions for touchscreens. Use swipe right for next. Use swipe left for previous. Use a double tap to select. Use a two finger slide up to go to the top of the page. Usage instructions for keyboard access. Use right for next. Use left for previous. Use up and down together to select."
}
}
},
"build": {
"includes": [
"adapt-custom-alive-thrive",
"adapt-contrib-boxMenu",
"adapt-article-reveal",
"adapt-contrib-assessment",
"adapt-contrib-bookmarking",
"adapt-contrib-drawerPageNavigation",
"adapt-contrib-glossary",
"adapt-contrib-pageLevelProgress",
"adapt-contrib-resources",
"adapt-contrib-tutor",
"adapt-breadcrumb",
"adapt-contrib-blockslider",
"adapt-contrib-spoor",
"adapt-contrib-trickle",
"adapt-contrib-languagePicker",
"adapt-contrib-text",
"adapt-contrib-graphic",
"adapt-contrib-mcq",
"adapt-contrib-slider",
"adapt-contrib-textInput",
"adapt-contrib-blank",
"adapt-contrib-accordion",
"adapt-contrib-flipcard",
"adapt-contrib-narrative",
"adapt-contrib-matching",
"adapt-tabs",
"adapt-contrib-openTextInput",
"adapt-contrib-hotgraphic",
"adapt-contrib-media",
"adapt-contrib-assessmentResults",
"adapt-contrib-gmcq",
"adapt-quicknav",
"adapt-expose",
"adapt-chat",
"adapt-stacklist",
"adapt-hotgrid"
]
}
}

 

Even when deleting them and them being regenerated by the tool, I get an error on attempting to view the settings page. Regenerating doesn't change the contents of the file.

 

Any help would be greatly appreciated. Do let me know if you require any further information about my course/set up.

Thanks!

 

 

Picture of Simon Date
Re: Course config settings error
by Simon Date - Wednesday, 21 November 2018, 6:21 PM
 

Hi Nadia,

Sorry for the late response. This error usually occurs when a plugin has an incorrect Schema that doesn't load properly. I suggest removing the plugins one by one to work out which one isn't working correctly.