<?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[freePBX 2.8.1.3]]></title><description><![CDATA[<p dir="auto">I updated FreePBX to run it unembedded from elastix.  I am now having a problem with FOP2</p>
<p dir="auto">[root@elastix fop2]# /usr/local/fop2/fop2_server --test<br />
Flash Operator Panel 2 - Invalid license for this install (i). Demo Mode<br />
/usr/local/fop2/autoconfig-buttons-freepbx.sh: line 15: [: too many arguments<br />
Connection to manager OK!<br />
[root@elastix fop2]#</p>
<p dir="auto">looking into /usr/local/fop2/autoconfig-buttons-freepbx.sh I am finding that "-bash" is getting passed to a variable and resulting in an "if" statement betting 2 arguments.</p>
<p dir="auto">Can anyone tell me why this is getting introduced?</p>
<p dir="auto">[root@elastix fop2]# AMPDIR=``<br />
[root@elastix fop2]# $AMPDIR<br />
[root@elastix fop2]# AMPDIR=<code>cat /etc/amportal.conf | sed 's/ //g' | grep ^AMPWEBROOT | cut -d= -f2 | tail -n1</code><br />
[root@elastix fop2]# AMPDIR=$AMPDIR/admin/modules/framework/module.xml<br />
[root@elastix fop2]#<br />
[root@elastix fop2]# AMPVERSION=<code>cat $AMPDIR | grep version | sed -e 's/&lt;[^&gt;]*&gt;//g' | cut -b 2,4</code><br />
[root@elastix fop2]#<br />
[root@elastix fop2]# $AMPVERSION<br />
-bash: 28: command not found<br />
[root@elastix fop2]# $AMPDIR<br />
-bash: /var/www/html/admin/modules/framework/module.xml: Permission denied<br />
[root@elastix fop2]# AMPDIR=<code>cat /etc/amportal.conf | sed 's/ //g' | grep ^AMPWEBROOT | cut -d= -f2 | tail -n1</code><br />
[root@elastix fop2]# $AMPDIR<br />
-bash: /var/www/html: is a directory</p>
<p dir="auto">THANKS in advance,<br />
Jason</p>
]]></description><link>http://localhost:4567/topic/662/freepbx-2.8.1.3</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 04:21:42 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/662.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Feb 2011 18:13:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to freePBX 2.8.1.3 on Fri, 04 Mar 2011 21:07:05 GMT]]></title><description><![CDATA[<p dir="auto">To fix, change line 13 of <a href="http://autoconfig-buttons-freepbx.sh" rel="nofollow ugc">autoconfig-buttons-freepbx.sh</a> to:</p>
<p dir="auto">AMPVERSION=<code>cat $AMPDIR | grep "&lt;version&gt;" | sed -e 's/&lt;[^&gt;]*&gt;//g' | cut -b 2,4</code></p>
]]></description><link>http://localhost:4567/post/2912</link><guid isPermaLink="true">http://localhost:4567/post/2912</guid><dc:creator><![CDATA[Kouri]]></dc:creator><pubDate>Fri, 04 Mar 2011 21:07:05 GMT</pubDate></item><item><title><![CDATA[Reply to freePBX 2.8.1.3 on Sun, 27 Feb 2011 16:02:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jason,</p>
<p dir="auto">The error is non fatal, but anyways it would be nice to fix it (what the script does is try to determine the freepbx version you have in order to select 'from-internal' or 'from-queue' as the queue context for your buttons. If that fails it will default to from-internal, but this assumption and warning will not prevent fop2 from working.</p>
<p dir="auto">So, you have to see what is the content from AMPWEBROOT in /etc/amportal.conf and then see if you have the file:</p>
<p dir="auto">AMPWEBROOT/admin/modules/framework/module.xml</p>
<p dir="auto">and in that file some line that says the version.</p>
<p dir="auto">But as I said, this error is non fatal, fop2 wll work anyways. If fop2 does not work, then look for the problem somewhere else (you did not tell us what is your problem, except for this error printed on screen if you do the --test).</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/2911</link><guid isPermaLink="true">http://localhost:4567/post/2911</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sun, 27 Feb 2011 16:02:46 GMT</pubDate></item></channel></rss>