<?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[MYSQL ERROR]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I (re) installed fop2 on a freepbx17 debian12 server (asterisk 21)<br />
I get an MySQL error in the  Call History popup.<br />
I had to install asterisk and dahdi  with phreakscript as I needed an old dahdi driver and had to more or less manually install freepbx17 (without asterisk) on top.<br />
All seems to be working, the only error I get is this :</p>
<p dir="auto"><code>Fatal error: Uncaught mysqli_sql_exception: Unknown column 'direction' in 'having clause' in /var/www/html/fop2/lib/dblib.php:96 Stack trace: #0 /var/www/html/fop2/lib/dblib.php(96): mysqli_query() #1 /var/www/html/fop2/lib/dbgrid.php(826): dbcon-&gt;consulta() #2 /var/www/html/fop2/lib/dbgrid.php(1685): dbgrid-&gt;set_pagination() #3 /var/www/html/fop2/lib/dbgrid.php(1182): dbgrid-&gt;print_grid() #4 /var/www/html/fop2/calldetailrecords.php(600): dbgrid-&gt;show_grid() #5 {main} thrown in /var/www/html/fop2/lib/dblib.php on line 96</code></p>
<p dir="auto">The asteriskcdrdb database is the old one I reimported from the old centos freepbx16 server .<br />
The call history is working for both inbound and outbound calls .<br />
Does anybody know where the column 'direction' is supposed to be ?<br />
I guess there has been a change in the table structure which I missed by importing  the old table<br />
Thanks</p>
]]></description><link>http://localhost:4567/topic/3258/mysql-error</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 03:12:34 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/3258.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Jun 2024 10:15:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MYSQL ERROR on Sun, 11 Oct 2026 12:32:48 GMT]]></title><description><![CDATA[<p dir="auto">Well it took me some time too look at it again, but yes finally I found the problem.<br />
I think I have not done it properly in the first place as I have not imported the table before updating FOP2.<br />
But I discovered  some more problems  e.g. regular segfaults on debian 12  and a few php8.2 (freepbx17)<br />
deprecations with caused this error and others like plugins in the admin not showing up properly.<br />
I put a modified / adapted version of fop2 on github.<br />
It's split between webroot for php files and server/systemd<br />
It' here : <a href="https://github.com/schiffsratte/fop2-modernize" rel="nofollow ugc">https://github.com/schiffsratte/fop2-modernize</a></p>
]]></description><link>http://localhost:4567/post/12863</link><guid isPermaLink="true">http://localhost:4567/post/12863</guid><dc:creator><![CDATA[schiffsratte]]></dc:creator><pubDate>Sun, 11 Oct 2026 12:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to MYSQL ERROR on Sun, 29 Jun 2025 18:48:32 GMT]]></title><description><![CDATA[<p dir="auto">hi, got same error, did you find solution?</p>
]]></description><link>http://localhost:4567/post/12862</link><guid isPermaLink="true">http://localhost:4567/post/12862</guid><dc:creator><![CDATA[johnx102]]></dc:creator><pubDate>Sun, 29 Jun 2025 18:48:32 GMT</pubDate></item></channel></rss>