Extension talk:SyntaxHighlightThemes

"BadMethodCallException" from load.php
Getting this in the browser's console every time I load any page. It seems that load.php catches the exception and turns it into a JS snippet that logs it with a console.error call. Need to enable $wgShowExceptionDetails to get the full stack trace, otherwise it only says "BadMethodCallException". Stack trace line #9 indicates that it comes from this extension.

[6afca5bc934bfebb41a03c1a] /w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector  BadMethodCallException: Sessions are disabled for load entry point Backtrace: from /var/www/bg3/w/includes/session/SessionManager.php(900) https://bg3.wiki/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:31 TaylanKammer (talk) 01:02, 22 July 2023 (UTC)
 * 1) 0 /var/www/bg3/w/includes/session/SessionManager.php(248): MediaWiki\Session\SessionManager->getSessionFromInfo
 * 2) 1 /var/www/bg3/w/includes/WebRequest.php(841): MediaWiki\Session\SessionManager->getSessionForRequest
 * 3) 2 /var/www/bg3/w/includes/user/User.php(1117): WebRequest->getSession
 * 4) 3 /var/www/bg3/w/includes/user/User.php(438): User->loadFromSession
 * 5) 4 /var/www/bg3/w/includes/user/User.php(1660): User->load
 * 6) 5 /var/www/bg3/w/includes/user/User.php(2312): User->getId
 * 7) 6 /var/www/bg3/w/includes/user/UserOptionsManager.php(645): User->isRegistered
 * 8) 7 /var/www/bg3/w/includes/user/UserOptionsManager.php(497): MediaWiki\User\UserOptionsManager->getCacheKey
 * 9) 8 /var/www/bg3/w/includes/user/UserOptionsManager.php(148): MediaWiki\User\UserOptionsManager->loadUserOptions
 * 10) 9 /var/www/bg3/w/extensions/SyntaxHighlightThemes/includes/ResourceLoaderSyntaxHighlightThemeModule.php(20): MediaWiki\User\UserOptionsManager->getOption
 * 11) 10 /var/www/bg3/w/includes/ResourceLoader/FileModule.php(525): ResourceLoaderSyntaxHighlightThemeModule->getStyleFiles
 * 12) 11 /var/www/bg3/w/includes/ResourceLoader/FileModule.php(626): MediaWiki\ResourceLoader\FileModule->getFileHashes
 * 13) 12 /var/www/bg3/w/includes/ResourceLoader/Module.php(928): MediaWiki\ResourceLoader\FileModule->getDefinitionSummary
 * 14) 13 /var/www/bg3/w/includes/ResourceLoader/StartUpModule.php(224): MediaWiki\ResourceLoader\Module->getVersionHash
 * 15) 14 /var/www/bg3/w/includes/ResourceLoader/StartUpModule.php(425): MediaWiki\ResourceLoader\StartUpModule->getModuleRegistrations
 * 16) 15 /var/www/bg3/w/includes/ResourceLoader/Module.php(817): MediaWiki\ResourceLoader\StartUpModule->getScript
 * 17) 16 /var/www/bg3/w/includes/ResourceLoader/Module.php(786): MediaWiki\ResourceLoader\Module->buildContent
 * 18) 17 /var/www/bg3/w/includes/ResourceLoader/Module.php(925): MediaWiki\ResourceLoader\Module->getModuleContent
 * 19) 18 /var/www/bg3/w/includes/ResourceLoader/ResourceLoader.php(701): MediaWiki\ResourceLoader\Module->getVersionHash
 * 20) 19 [internal function]: MediaWiki\ResourceLoader\ResourceLoader->MediaWiki\ResourceLoader\{closure}
 * 21) 20 /var/www/bg3/w/includes/ResourceLoader/ResourceLoader.php(699): array_map
 * 22) 21 /var/www/bg3/w/includes/ResourceLoader/ResourceLoader.php(798): MediaWiki\ResourceLoader\ResourceLoader->getCombinedVersion
 * 23) 22 /var/www/bg3/w/load.php(53): MediaWiki\ResourceLoader\ResourceLoader->respond
 * 24) 23 /var/www/bg3/w/load.php(39): wfLoadMain
 * 25) 24 {main} load.php:31:48