MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Config with Message "builder encountered a problem, see MagicMirror messages for info"

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 2 Posters 213 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dphotograph
      last edited by sdetweil

      Hello everyone,
      I’m currently working on a relatively newly installed instance of MagicMirror and discovered the MMM config.
      At first, it worked very well.
      Unfortunately, I now only get this message “builder encountered a problem, see MagicMirror messages for info” when accessing the configure page.

      I found a post here that describes a similar problem, but nothing there fixed my “problem”
      https://forum.magicmirror.builders/topic/19305/rookie-question-builder-encountered-a-problem-see-magicmirror-messages-for-info

      there it looks like “@sdetweil” fixed the problem.

      and i found nothing MMM-Config releated in the log Files.

      on npm run config:check

      magicmirror@2.30.0 config:check
      node js/check_config.js

      [2025-03-24 02:50:15.997] [INFO] Checking config file /home/Admin/MagicMirror/config/config.js …
      [2025-03-24 02:50:16.196] [INFO] Your configuration file doesn’t contain syntax errors :)
      [2025-03-24 02:50:16.197] [INFO] Checking modules structure configuration …
      [2025-03-24 02:50:16.334] [INFO] Your modules structure configuration doesn’t contain errors :)

      contend of the file “defaults_17951887168800.js”

      const config = require('../../config/config.js')
      var defined_config = {
      MMM_MicrosoftToDo_defaults:  {
          oauth2ClientSecret: "",
          oauth2RefreshToken: "",
          oauth2ClientId: "",
          orderBy: "dueDate",
          hideIfEmpty: false,
          showCheckbox: true,
          maxWidth: 450,
          itemLimit: 200,
          completeOnClick: false,
          showDueDate: false,
          dateFormat: "ddd MMM Do [ - ]",
          refreshSeconds: 60,
          fade: false,
          fadePoint: 0.5,
          useRelativeDate: false,
          plannedTasks:  {
            enable: false,
            includedLists: [".*"], 
            duration:  {
              weeks: 2 
      		}
      		},
          colorDueDate: false,
          highlightTagColor: null
      		},
      MMM_homeassistant_sensors_defaults:  {
      		prettyName: true,
      		stripName: true,
      		title: 'Home Assistant',
      		host: 'hassio.local',
      		port: '8321',
      		https: false, 
      		token: '',
      		apipassword: '',
      		fade: 100,
      		updateInterval: 300000,
      		id: false,
      		displaySymbol: true,
      		displaydates: false,
      		displaytimes: false,
      		notificationOnly: false,
      		notificationCondition: [],
      		dateformat: 'YYYY-MM-DD', 
      		timeformat: 'HH:mm:ss', 
      		controlsensor: 'sensor control disabled', 
      		controlsensorvalue: 'sensor control disabled', 
      		noaddress: 'away', 
      		debuglogging: false,
      		rowClass: 'small', 
      		values: []
      		},
      MMM_Config_defaults:  {
          showQR: false,
          force_update: true,
          restart: "none",
          ModuleSortOrder:"date",
          debug: false,
      		},
      MMM_SteamPlaytime_defaults:  {
      		apiKey: null,
      		steamId: null,
      		updateTime: "00:00",
      		daysCount: 5,
      		gamesCount: 5,
      		excludeGames: [],
      		language: "---!config.languag"e
      		},
      MMM_MVVWiesty_defaults:  {
              maxEntries: 5,
              stopId: "de:09162:6",
              filter:  {
      		},
              displayNotifications: true,
              displayBundled: false,
              scrollSpeed: 40,
              minTimeUntilDeparture: 0
      		},
      MMM_HomeAssistantDisplay_defaults:  {
      		title: "Home Assistant",
      		host: "hassio.local",
      		port: "8123",
      		useTLS: false,
      		ignoreCert: true,
      		token: "",
      		debuglogging: false,
      		useModuleTigger: false,
      		moduleTriggerTemplate: "",
      		moduleTriggerEntities: false,
      		animationSpeed: 3000,
      		sections: [],
      		class: ""
      		},
      MMM_EmbedURL_defaults:  {
      		basicElementType: "div", 
      		embedElementType: "iframe", 
      		updateInterval: 60, 
      		animationSpeed: 500, 
      		positions: "tie",
      		attributes: [
      			"frameborder=0"
      		],
      		imgDecodeCheckInterval: -1,
      		updateDomOnResume: true
      		},
      MMM_GmailFeed_defaults:  {
          updateInterval: 5 * 60 * 1000,
          maxEmails: 5,
          maxSubjectLength: 40,
          maxFromLength: 15,
          playSound: true,
          autoHide: false,
          displayMode: "table",
          color: true,
          showEmailAdressInHeader: true
      		},
      newsfeed_defaults:  {
      		feeds: [
      			 {
      				title: "New York Times",
      				url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml",
      				encoding: "UTF-8" 
      		}
      		],
      		showAsList: false,
      		showSourceTitle: true,
      		showPublishDate: true,
      		broadcastNewsFeeds: true,
      		broadcastNewsUpdates: true,
      		showDescription: false,
      		showTitleAsUrl: false,
      		wrapTitle: true,
      		wrapDescription: true,
      		truncDescription: true,
      		lengthDescription: 400,
      		hideLoading: false,
      		reloadInterval: 5 * 60 * 1000, 
      		updateInterval: 10 * 1000,
      		animationSpeed: 2.5 * 1000,
      		maxNewsItems: 0, 
      		ignoreOldItems: false,
      		ignoreOlderThan: 24 * 60 * 60 * 1000, 
      		removeStartTags: "",
      		removeEndTags: "",
      		startTags: [],
      		endTags: [],
      		prohibitedWords: [],
      		scrollLength: 500,
      		logFeedWarnings: false,
      		dangerouslyDisableAutoEscaping: false
      		},
      helloworld_defaults:  {
      		text: "Hello World!"
      		},
      updatenotification_defaults:  {
      		updateInterval: 10 * 60 * 1000, 
      		refreshInterval: 24 * 60 * 60 * 1000, 
      		ignoreModules: [],
      		sendUpdatesNotifications: false,
      		updates: [],
      		updateTimeout: 2 * 60 * 1000, 
      		updateAutorestart: false 
      		},
      compliments_defaults:  {
      		compliments:  {
      			anytime: ["Hey there sexy!"],
      			morning: ["Good morning, handsome!", "Enjoy your day!", "How was your sleep?"],
      			afternoon: ["Hello, beauty!", "You look sexy!", "Looking good today!"],
      			evening: ["Wow, you look hot!", "You look nice!", "Hi, sexy!"],
      			"....-01-01": ["Happy new year!"]
      		},
      		updateInterval: 30000,
      		remoteFile: null,
      		remoteFileRefreshInterval: 0,
      		fadeSpeed: 4000,
      		morningStartTime: 3,
      		morningEndTime: 12,
      		afternoonStartTime: 12,
      		afternoonEndTime: 17,
      		random: true,
      		specialDayUnique: false
      		},
      clock_defaults:  {
      		displayType: "digital", 
      		timeFormat: "---!config.timeFormat",
      		timezone: null,
      		displaySeconds: true,
      		showPeriod: true,
      		showPeriodUpper: false,
      		clockBold: false,
      		showDate: true,
      		showTime: true,
      		showWeek: false,
      		dateFormat: "dddd, LL",
      		sendNotifications: false,
      		analogSize: "200px",
      		analogFace: "simple", 
      		analogPlacement: "bottom", 
      		analogShowDate: "top", 
      		secondsColor: "#888888",
      		showSunTimes: false,
      		showMoonTimes: false, 
      		lat: 47.630539,
      		lon: -122.344147
      		},
      alert_defaults:  {
      		effect: "slide", 
      		alert_effect: "jelly", 
      		display_time: 3500, 
      		position: "center",
      		welcome_message: false 
      		},
      weather_defaults:  {
      		weatherProvider: "openweathermap",
      		roundTemp: false,
      		type: "current", 
      		lang: "---!config.language",
      		units: "---!config.units",
      		tempUnits: "---!config.units",
      		windUnits: "---!config.units",
      		timeFormat: "---!config.timeFormat",
      		updateInterval: 10 * 60 * 1000, 
      		animationSpeed: 1000,
      		showFeelsLike: true,
      		showHumidity: "none", 
      		showIndoorHumidity: false,
      		showIndoorTemperature: false,
      		allowOverrideNotification: false,
      		showPeriod: true,
      		showPeriodUpper: false,
      		showPrecipitationAmount: false,
      		showPrecipitationProbability: false,
      		showUVIndex: false,
      		showSun: true,
      		showWindDirection: true,
      		showWindDirectionAsArrow: false,
      		degreeLabel: false,
      		decimalSymbol: ".",
      		maxNumberOfDays: 5,
      		maxEntries: 5,
      		ignoreToday: false,
      		fade: true,
      		fadePoint: 0.25, 
      		initialLoadDelay: 0, 
      		appendLocationNameToHeader: true,
      		calendarClass: "calendar",
      		tableClass: "small",
      		onlyTemp: false,
      		colored: false,
      		absoluteDates: false,
      		hourlyForecastIncrements: 1
      		},
      calendar_defaults:  {
      		maximumEntries: 10, 
      		maximumNumberOfDays: 365,
      		limitDays: 0, 
      		pastDaysCount: 0,
      		displaySymbol: true,
      		defaultSymbol: "calendar-alt", 
      		defaultSymbolClassName: "fas fa-fw fa-",
      		showLocation: false,
      		displayRepeatingCountTitle: false,
      		defaultRepeatingCountTitle: "",
      		maxTitleLength: 25,
      		maxLocationTitleLength: 25,
      		wrapEvents: false, 
      		wrapLocationEvents: false,
      		maxTitleLines: 3,
      		maxEventTitleLines: 3,
      		fetchInterval: 60 * 60 * 1000, 
      		animationSpeed: 2000,
      		fade: true,
      		fadePoint: 0.25, 
      		urgency: 7,
      		timeFormat: "relative",
      		dateFormat: "MMM Do",
      		dateEndFormat: "LT",
      		fullDayEventDateFormat: "MMM Do",
      		showEnd: false,
      		showEndsOnlyWithDuration: false,
      		getRelative: 6,
      		hidePrivate: false,
      		hideOngoing: false,
      		hideTime: false,
      		hideDuplicates: true,
      		showTimeToday: false,
      		colored: false,
      		forceUseCurrentTime: false,
      		tableClass: "small",
      		calendars: [
      			 {
      				symbol: "calendar-alt",
      				url: "https://www.calendarlabs.com/templates/ical/US-Holidays.ics"
      		}
      		],
      		customEvents: [
      			{ keyword: ".*", transform: { search: "De verjaardag van ", replace: "" } },
      			{ keyword: ".*", transform: { search: "'s birthday", replace: "" } }
      		],
      		locationTitleReplace:  {
      			"street ": ""
      		},
      		broadcastEvents: true,
      		excludedEvents: [],
      		sliceMultiDayEvents: false,
      		broadcastPastEvents: false,
      		nextDaysRelative: false,
      		selfSignedCert: false,
      		coloredText: false,
      		coloredBorder: false,
      		coloredSymbol: false,
      		coloredBackground: false,
      		limitDaysNeverSkip: false,
      		flipDateHeaderTitle: false,
      		updateOnFetch: true
      		},
      }
      module.exports={defined_config,config};
      
      

      Thank You in advance

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @sdetweil
        last edited by sdetweil

        @dphotograph you can use that module again now

        in the MMM-Config folder do
        git pull
        then restart MagicMirror

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @dphotograph
          last edited by

          @dphotograph can you show the rest of the startup messages please

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @dphotograph
            last edited by sdetweil

            @dphotograph i am not near my system for a couple hours

            but you could try one test

            in the MMM-Config folder do

            node -c xxx

            xxx is that defaults filename

            if all is good you should get no results, and back to the prompt
            i don’t See anything quick look

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Reply Quote 0
            • D Offline
              dphotograph @sdetweil
              last edited by

              @sdetweil Hello

              Thank You for the fast response
              it looks like there is a typo in the defaults file

              node -c defaults_17951887168800.js
              /home/Admin/MagicMirror/modules/MMM-Config/defaults_17951887168800.js:69
                              language: "---!config.languag"e
                                                            ^
              
              SyntaxError: Unexpected identifier 'e'
                  at wrapSafe (node:internal/modules/cjs/loader:1378:20)
                  at checkSyntax (node:internal/main/check_syntax:78:3)
              
              Node.js v20.18.1
              
              

              in the line 69 is this

              		language: "---!config.languag"e
              

              But now that i now that can i change this my self?
              if i change it myself, on the next restart “pm2 restart 0” it is back to the typo :-O

              Thank you

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @sdetweil
                last edited by sdetweil

                @dphotograph also, do you know the rough change you made last? installed a module?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 2 Replies Last reply Reply Quote 0
                • D Offline
                  dphotograph @sdetweil
                  last edited by

                  @sdetweil

                  i think the last ones are

                  MMM_homeassistant_sensors
                  MMM_HomeAssistantDisplay
                  MMM_SteamPlaytime

                  Unfortunately, I was too impatient and installed three modules at once.
                  Typical beginner’s mistake

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dphotograph @sdetweil
                    last edited by

                    @sdetweil

                    i just removed the Steam Playtime from MM now it is back to normal :-)

                    i think i can live without it ;-)

                    But really! Thank You for the help to indentify the Problem :-)

                    S 3 Replies Last reply Reply Quote 0
                    • S Offline
                      sdetweil @dphotograph
                      last edited by

                      @dphotograph thanks the discovery of all the module config contents is pretty tricky

                      ill look at this shortly

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @dphotograph
                        last edited by sdetweil

                        @dphotograph did you install the modules thru the MMM-Config installer?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @dphotograph
                          last edited by sdetweil

                          @dphotograph you should have seen this in the logs, MagicMirror
                          startup messages

                          --------------------MMM-Config
                          module MMM-SteamPlaytime has an error in the construction of its defaults section
                          the error line is 		language: "---!config.languag"e
                          please change it to the literal value of the referenced variable
                          and restart MagicMirror
                          --------------------MMM-Config
                          

                          because you are using pm2, you will have to ask to display more lines of output than the default 15
                          for example

                          pm2 logs --lines=100 
                          

                          100 can be any number, default is last 15…

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          S 1 Reply Last reply Reply Quote 1
                          • 1
                          • 2
                          • 1 / 2
                          • First post
                            Last post
                          Enjoying MagicMirror? Please consider a donation!
                          MagicMirror created by Michael Teeuw.
                          Forum managed by Sam, technical setup by Karsten.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy