octobercms/october · error · Error
Snackbar options must be an object
Error message
Snackbar options must be an object
What it means
Error "Snackbar options must be an object" thrown in octobercms/october.
Source
Thrown at modules/backend/assets/js/october/october.snackbar.js:27
* Action label and callback properties are required.
*/
+(function($) {
'use strict';
if ($.oc === undefined) $.oc = {};
var Snackbar = function() {
var queue = [],
lastUniqueId = 0,
displayedMessage = null;
function validateOptions(options) {
if (options === undefined) {
return;
}
if (typeof options !== 'object') {
throw new Error('Snackbar options must be an object');
}
if (options.replace !== undefined) {
if (typeof options.replace !== 'number') {
throw new Error('Snackbar options.replace must be a number');
}
}
if (options.timeout !== undefined) {
if (typeof options.timeout !== 'number') {
throw new Error('Snackbar options.timeout must be a number');
}
if (options.timeout < 2000) {
throw new Error('Snackbar options.timeout cannot be lower than 2000');
}
if (options.timeout > 8000) {View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/backend/assets/js/october/october.snackbar.js:27 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/70d2c61fc3593d2b.
Report an issue: GitHub.