{"record":{"id":"1cf96f704da09040","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-1cf96f","errorCode":null,"errorMessage":"The method you called is not defined","messagePattern":"The method you called is not defined","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/definitions/modules/tab.js","lineNumber":924,"sourceCode":"  loadOnce        : false,      // Whether tab data should only be loaded once when using remote content\n  cacheType       : 'response', // Whether to cache exact response, or to html cache contents after scripts execute\n  ignoreFirstLoad : false,      // don't load remote content on first load\n\n  apiSettings     : false,      // settings for api call\n  evaluateScripts : 'once',     // whether inline scripts should be parsed (true/false/once). Once will not re-evaluate on cached content\n\n  onFirstLoad : function(tabPath, parameterArray, historyEvent) {}, // called first time loaded\n  onLoad      : function(tabPath, parameterArray, historyEvent) {}, // called on every load\n  onVisible   : function(tabPath, parameterArray, historyEvent) {}, // called every time tab visible\n  onRequest   : function(tabPath, parameterArray, historyEvent) {}, // called ever time a tab beings loading remote content\n\n  templates : {\n    determineTitle: function(tabArray) {} // returns page title for path\n  },\n\n  error: {\n    api        : 'You attempted to load content without API module',\n    method     : 'The method you called is not defined',\n    missingTab : 'Activated tab cannot be found. Tabs are case-sensitive.',\n    noContent  : 'The tab you specified is missing a content url.',\n    path       : 'History enabled, but no path was specified',\n    recursion  : 'Max recursive depth reached',\n    legacyInit : 'onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.',\n    legacyLoad : 'onTabLoad has been renamed to onLoad in 2.0. Please adjust your code',\n    state      : 'History requires Asual\\'s Address library <https://github.com/asual/jquery-address>'\n  },\n\n  metadata : {\n    tab    : 'tab',\n    loaded : 'loaded',\n    promise: 'promise'\n  },\n\n  className   : {\n    loading : 'loading',\n    active  : 'active'","sourceCodeStart":906,"sourceCodeEnd":942,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/tab.js#L906-L942","documentation":"Generic Semantic UI method-not-found error from the tab module's invoke dispatcher (tab.js:834). Calling $('.menu .item').tab('xyz') where 'xyz' is not a defined tab method triggers it.","triggerScenarios":"Misspelled method names, calling tab methods on the wrong selector, or invoking a method that doesn't exist in the installed version (e.g. 'change tab' vs. just passing the path).","commonSituations":"Typos; mixing up tab method names with form/sidebar methods; copy-pasting from mismatched Semantic UI docs.","solutions":["Check the method name against the Semantic UI Tab docs for the installed version.","Ensure you call tab methods on the tab navigation element, not the content pane.","Quote the method name exactly (e.g. 'change tab', not 'changetab')."],"exampleFix":"// before\n$('.menu .item').tab('changetab', 'settings');\n// after\n$('.menu .item').tab('change tab', 'settings');","handlingStrategy":"type-guard","validationCode":"var TAB_METHODS = ['change tab','set state','get state','is tab','cache read','cache add','destroy'];\nfunction safeTabCall($el, method) {\n  if (TAB_METHODS.indexOf(method) === -1) { console.warn('Unknown tab method:', method); return; }\n  return $el.tab(method);\n}","typeGuard":"function isKnownTabMethod(name) { return ['change tab','set state','get state','is tab','cache read','cache add','destroy'].indexOf(name) !== -1; }","tryCatchPattern":null,"preventionTips":["Quote multi-word method names exactly (e.g. 'change tab').","Call tab methods on the nav element, not the content pane.","Pin the Semantic UI version and consult that version's docs."],"tags":["semantic-ui","method-not-found","tab"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}