<?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[Script execution error]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a script execution error since upgrading to 3.8-366.  Is it a problem with the script?</p>
<p dir="auto">Script (Hook::ConfigurationPoll) execution error: Error 14 in line 2: Function or operation argument is not an object</p>
<pre><code>// remove dynamic interfaces on Mikrotik, e.g. VPN users
if ($node-&gt;driver  == "MIKROTIK")
{
  intArray = GetNodeInterfaces($node);

  foreach (int : intArray)
  {
    // if the interface is dynamic
    if ((left(int-&gt;name, 1) == "&lt;") &amp;&amp; (right(int-&gt;name, 1) == "&gt;"))
    {
      // delete the interface
      DeleteObject(int);
    }
  }
}
</code></pre>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.netxms.org/topic/7054/script-execution-error</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:25:46 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7054.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 May 2021 10:51:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Script execution error on Mon, 24 May 2021 07:39:04 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, that looks to have sorted it. Strange that script has been running for a year and only broke after the last update.</p>
]]></description><link>https://forum.netxms.org/post/30030</link><guid isPermaLink="true">https://forum.netxms.org/post/30030</guid><dc:creator><![CDATA[squeezypiano]]></dc:creator><pubDate>Mon, 24 May 2021 07:39:04 GMT</pubDate></item><item><title><![CDATA[Reply to Script execution error on Fri, 21 May 2021 14:26:40 GMT]]></title><description><![CDATA[<p dir="auto">The code is correct for nodes. But configuration poll could happen for other objects, e.g. clusters. In that case there is $object variable, but $node is not available.<br />
You can change the 2-nd line to:</p>
<pre><code>if (classof($object) == "Node" &amp;&amp; $node-&gt;driver  == "MIKROTIK")
</code></pre>
]]></description><link>https://forum.netxms.org/post/30025</link><guid isPermaLink="true">https://forum.netxms.org/post/30025</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 21 May 2021 14:26:40 GMT</pubDate></item></channel></rss>