<?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[unexpected T_FUNCTION in pagebs.fop2buttons.php on line 468]]></title><description><![CDATA[<p dir="auto">Hello<br />
I have Elastix 2.5 and I upgraded fop2 from version 2.25 to 2.31.29, after change some config files I have the extensions panel running again , but the page /fop2/admin/pagebs.fop2buttons.php is not loading and I can't edit the buttons.</p>
<p dir="auto">The apache log says this:</p>
<pre><code>PHP Parse error:  syntax error, unexpected T_FUNCTION in /var/www/html/fop2/admin/pagebs.fop2buttons.php on line 468, referer: https://adomain.com/fop2/admin/pagebs.fop2groups.php
</code></pre>
]]></description><link>http://localhost:4567/topic/2967/unexpected-t_function-in-pagebs.fop2buttons.php-on-line-468</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 09:28:27 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/2967.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Mar 2021 08:29:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to unexpected T_FUNCTION in pagebs.fop2buttons.php on line 468 on Mon, 19 Apr 2021 21:00:16 GMT]]></title><description><![CDATA[<p dir="auto">Eloi, It worked perfectly.</p>
<p dir="auto">Thanks&amp;Regards</p>
]]></description><link>http://localhost:4567/post/12219</link><guid isPermaLink="true">http://localhost:4567/post/12219</guid><dc:creator><![CDATA[Limbo]]></dc:creator><pubDate>Mon, 19 Apr 2021 21:00:16 GMT</pubDate></item><item><title><![CDATA[Reply to unexpected T_FUNCTION in pagebs.fop2buttons.php on line 468 on Mon, 12 Apr 2021 08:55:12 GMT]]></title><description><![CDATA[<p dir="auto">I'ts a problem with the php version. preg_replace_callback doesn't support inline undeclared callback<br />
Solved, trying to touch the minimal code :<br />
Go to fop2/admin/pagebs.fop2buttons.php and in line 468 replace with this:</p>
<pre><code>$plugin_section_print = preg_replace_callback('/#{([^}]*)}/',afunctionforreplace_callback($matches,$datarray),$plugin_button_section);
</code></pre>
<p dir="auto">Then at the end of the file put this:</p>
<pre><code>function afunctionforreplace_callback($matches,$datarray)
{
  return $datarray[$matches[1]];
}
</code></pre>
]]></description><link>http://localhost:4567/post/12218</link><guid isPermaLink="true">http://localhost:4567/post/12218</guid><dc:creator><![CDATA[eloi.rocamora]]></dc:creator><pubDate>Mon, 12 Apr 2021 08:55:12 GMT</pubDate></item><item><title><![CDATA[Reply to unexpected T_FUNCTION in pagebs.fop2buttons.php on line 468 on Thu, 01 Apr 2021 20:25:51 GMT]]></title><description><![CDATA[<p dir="auto">Hello<br />
Same problem here. Could you solve it?<br />
Regards,</p>
]]></description><link>http://localhost:4567/post/12217</link><guid isPermaLink="true">http://localhost:4567/post/12217</guid><dc:creator><![CDATA[Limbo]]></dc:creator><pubDate>Thu, 01 Apr 2021 20:25:51 GMT</pubDate></item></channel></rss>