<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Magic Mirror script ERROR when executing saying face_rec_name not defined in node_helper.js]]></title><description><![CDATA[<p dir="auto">Anyone able to help me out here? I’m fairly new still to all of this and have been looking through different posts on troubleshooting and that helped solve a lot of issues I ran into that way, I can’t seem to figure this out.</p>
<p dir="auto">When running the MagicMirror I’m getting this error:</p>
<p dir="auto">[11.10.2021 05:29.26.184] [ERROR] Whoops! There was an uncaught exception…<br />
[11.10.2021 05:29.26.192] [ERROR] ReferenceError: face_rec_name is not defined<br />
at /home/pi/MagicMirror/modules/MMM-Face-Recognition-SMAI/node_helper.js:41:                                 12<br />
at FSReqCallback.oncomplete (fs.js:171:23)<br />
[11.10.2021 05:29.26.194] [ERROR] MagicMirror will not quit, but it might be a g                                 ood idea to check why this happened. Maybe no internet connection?<br />
[11.10.2021 05:29.26.196] [ERROR] If you think this really is an issue, please o                                 pen an issue on GitHub: <a href="https://github.com/MichMich/MagicMirror/issues" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/issues</a></p>
<p dir="auto">I’ve gone through the node_helper.js and it does seem like it just calls these variables without them having clear values/values that weren’t only part of their if clause. I’m not too familiar with code (especially js) which is why I’m struggling to fix it.<br />
If you need more context let me know, I didn’t want to write up a really long problem.<br />
Thank You!</p>
]]></description><link>https://forum.magicmirror.builders/topic/15718/magic-mirror-script-error-when-executing-saying-face_rec_name-not-defined-in-node_helper-js</link><generator>RSS for Node</generator><lastBuildDate>Thu, 21 May 2026 11:38:13 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15718.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Oct 2021 19:49:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Magic Mirror script ERROR when executing saying face_rec_name not defined in node_helper.js on Mon, 11 Oct 2021 12:11:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jawz_44" aria-label="Profile: jawz_44">@<bdi>jawz_44</bdi></a> looks like the py script writes to that file.  sort of like registering a user I think.</p>
<p dir="auto">not a lot of doc there</p>
]]></description><link>https://forum.magicmirror.builders/post/95437</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95437</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 11 Oct 2021 12:11:48 GMT</pubDate></item><item><title><![CDATA[Reply to Magic Mirror script ERROR when executing saying face_rec_name not defined in node_helper.js on Mon, 11 Oct 2021 12:00:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
I thought that might’ve been the case, but thought maybe it was a simple fix I just couldn’t recognise.</p>
<p dir="auto">Okay, so it’s getting the information out of the ‘…/sample.txt’ file.<br />
I looked in the ‘sample.txt’ file and it only contains the word ‘Guest’ nothing else, do you think that means I should be adding information into the ‘sample.txt’ file for it to read?</p>
<p dir="auto">Thank you, I’ll also ask the dev and see if they can shed some light on it.</p>
]]></description><link>https://forum.magicmirror.builders/post/95436</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95436</guid><dc:creator><![CDATA[jawz_44]]></dc:creator><pubDate>Mon, 11 Oct 2021 12:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to Magic Mirror script ERROR when executing saying face_rec_name not defined in node_helper.js on Sun, 10 Oct 2021 19:55:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jawz_44" aria-label="Profile: jawz_44">@<bdi>jawz_44</bdi></a> said in <a href="/post/95422">Magic Mirror script ERROR when executing saying face_rec_name not defined in node_helper.js</a>:</p>
<blockquote>
<p dir="auto">MMM-Face-Recognition-SMAI</p>
</blockquote>
<p dir="auto">not many have worked with that module</p>
<p dir="auto">but looking at the node_helper that variable is set from info from</p>
<p dir="auto">fs.readFile(“/home/pi/MagicMirror/modules/MMM-Face-Recognition-SMAI/sample.txt”</p>
]]></description><link>https://forum.magicmirror.builders/post/95423</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95423</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 10 Oct 2021 19:55:49 GMT</pubDate></item></channel></rss>