<?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[Visual Phonebook Empty 'no records exist']]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have gotten most of my setup issues worked out through these forums and with Nicolas's help. I am thrilled to see how well this looks and works.</p>
<p dir="auto">One issue. I have tried (in vain) to add an entry to the visual phonebook.</p>
<p dir="auto">I can add them just fine, but it reports "no records found" when trying to view them.</p>
<p dir="auto">Mysql tables:</p>
<pre><code>mysql&gt; use fop2;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql&gt; select * from visual_phonebook;
+----+-----------+----------+---------------------------+------------+------------+---------+
| id | firstname | lastname | company                   | phone1     | phone2     | picture |
+----+-----------+----------+---------------------------+------------+------------+---------+
|  1 | Kenneth   | Myers    | Atlantia Technology Group | 190        | 8431983648 |         |
|  2 | Darrell   | Watson   | Atlantia Technology Group | 191        | 8431982545 |         |
|  3 | john      | doe      | NULL                      | 0141123456 | NULL       | NULL    |
+----+-----------+----------+---------------------------+------------+------------+---------+
3 rows in set (0.02 sec)

mysql&gt; show columns from visual_phonebook;
+-----------+--------------+------+-----+---------+----------------+
| Field     | Type         | Null | Key | Default | Extra          |
+-----------+--------------+------+-----+---------+----------------+
| id        | int(11)      | NO   | PRI | NULL    | auto_increment |
| firstname | varchar(50)  | YES  |     | NULL    |                |
| lastname  | varchar(50)  | YES  |     | NULL    |                |
| company   | varchar(100) | YES  |     | NULL    |                |
| phone1    | varchar(25)  | YES  |     | NULL    |                |
| phone2    | varchar(25)  | YES  |     | NULL    |                |
| picture   | varchar(100) | YES  |     | NULL    |                |
+-----------+--------------+------+-----+---------+----------------+
7 rows in set (0.01 sec)

</code></pre>
<p dir="auto">I have tried regranting permissions to the user on tables to no avail. The first two users were added via the web interface.</p>
<p dir="auto">MySQL Server version: 5.0.45</p>
<p dir="auto">PHP</p>
<p dir="auto">PHP 5.2.9 (cli) (built: Jul  8 2009 05:59:13)<br />
Copyright (c) 1997-2009 The PHP Group<br />
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies</p>
<p dir="auto">FOP2 Beta</p>
<p dir="auto">thanks in advance, gonna keep trying to resolve the issue</p>
]]></description><link>http://localhost:4567/topic/214/visual-phonebook-empty-no-records-exist</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 04:02:06 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/214.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 Dec 2009 23:42:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Sun, 03 Jan 2010 21:49:21 GMT]]></title><description><![CDATA[<p dir="auto">Moving the parking enable discussion to <a href="http://forum.fop2.com/esotalk/index.php/230" rel="nofollow ugc">View Post 230</a> (if an admin wants to move the above posts (12 and 13) I can reformat the first thread post to be easier on the eyes.)</p>
<p dir="auto">FWIW I understand all this is beta. Nicolas did mention in an email that parking lots queue should show up in beta, but since it isn't I figured I'd troubleshoot on my end.</p>
]]></description><link>http://localhost:4567/post/1011</link><guid isPermaLink="true">http://localhost:4567/post/1011</guid><dc:creator><![CDATA[atlantia]]></dc:creator><pubDate>Sun, 03 Jan 2010 21:49:21 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Sun, 03 Jan 2010 21:24:23 GMT]]></title><description><![CDATA[<p dir="auto">Not using freepbx either so it wouldn't make much of a difference if it wasn't commented out (althought I see your point).<br />
I'll have to look at that script and see what it does, maybe it will clue me into what buttons.cfg wants.</p>
<p dir="auto">EDIT:</p>
<p dir="auto">based on that script you would end up with</p>
<p dir="auto">[PARK/default] ; I assume default is the context in which "parkedcalls" exists?<br />
extension=700<br />
context=parkedcalls<br />
type=park<br />
Label=Park 700</p>
<p dir="auto">from:</p>
<pre><code>/usr/sbin/asterisk -rx "dialplan show parkedcalls" | grep "=&gt;" | cut -d= -f1 | sed s/\'//g | sed 's/ //g'
700
</code></pre>
]]></description><link>http://localhost:4567/post/1010</link><guid isPermaLink="true">http://localhost:4567/post/1010</guid><dc:creator><![CDATA[atlantia]]></dc:creator><pubDate>Sun, 03 Jan 2010 21:24:23 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Sat, 02 Jan 2010 22:11:35 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">#PARKSLOT=<code>/usr/sbin/asterisk -rx "dialplan show parkedcalls" | grep "=&gt;" | cut -d= -f1 | sed s/\'//g | sed 's/ //g'</code><br />
#if [ "X${PARKSLOT}" != "X" ]; then<br />
#echo<br />
#echo "[PARK/default]"<br />
#echo "extension=${PARKSLOT}"<br />
#echo "context=parkedcalls"<br />
#echo "type=park"<br />
#echo "Label=Park ${PARKSLOT}"<br />
#echo<br />
#fi</p>
</blockquote>
<p dir="auto">The parking lot seems to be commented out in <a href="http://autoconfig-buttons-freepbx.sh" rel="nofollow ugc">autoconfig-buttons-freepbx.sh</a> for some reason, maybe its not ready yet.</p>
]]></description><link>http://localhost:4567/post/1009</link><guid isPermaLink="true">http://localhost:4567/post/1009</guid><dc:creator><![CDATA[Thomas]]></dc:creator><pubDate>Sat, 02 Jan 2010 22:11:35 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Sat, 02 Jan 2010 21:03:01 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">I wouldn't do that because all I did in that post was give it a condition that it could never match, just switch debugging off and report it as a bug to Nicolas.</p>
</blockquote>
<p dir="auto">Will do. Should I start a new thread for the call parking issue?</p>
]]></description><link>http://localhost:4567/post/1008</link><guid isPermaLink="true">http://localhost:4567/post/1008</guid><dc:creator><![CDATA[atlantia]]></dc:creator><pubDate>Sat, 02 Jan 2010 21:03:01 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Sat, 02 Jan 2010 20:23:56 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">That fixed it for the most part, with the exception of one remaining error:</p>
<p dir="auto">"notice<br />
/var/www/html/fop2/lib/dblib.php (line 233)</p>
<p dir="auto">mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource"</p>
<p dir="auto">I am going to use the fix posted by Thomas in a previous forum post</p>
<p dir="auto">View Post 143&amp;p=545&amp;hilit=supplied+argument+is+not+a+valid+MySQL+result+resource#p545</p>
<p dir="auto">But wanted to give a head's up.</p>
</blockquote>
<p dir="auto">I wouldn't do that because all I did in that post was give it a condition that it could never match, just switch debugging off and report it as a bug to Nicolas.</p>
]]></description><link>http://localhost:4567/post/1007</link><guid isPermaLink="true">http://localhost:4567/post/1007</guid><dc:creator><![CDATA[Thomas]]></dc:creator><pubDate>Sat, 02 Jan 2010 20:23:56 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Sat, 02 Jan 2010 19:09:40 GMT]]></title><description><![CDATA[<p dir="auto">That fixed it for the most part, with the exception of one remaining error:</p>
<p dir="auto">"notice<br />
/var/www/html/fop2/lib/dblib.php (line 233)</p>
<p dir="auto">mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource"</p>
<p dir="auto">I am going to use the fix posted by Thomas in a previous forum post</p>
<p dir="auto"><a href="http://forum.fop2.com/esotalk/index.php/143&amp;p=545&amp;hilit=supplied+argument+is+not+a+valid+MySQL+result+resource#p545" rel="nofollow ugc">View Post 143&amp;p=545&amp;hilit=supplied+argument+is+not+a+valid+MySQL+result+resource#p545</a></p>
<p dir="auto">But wanted to give a head's up.</p>
]]></description><link>http://localhost:4567/post/1006</link><guid isPermaLink="true">http://localhost:4567/post/1006</guid><dc:creator><![CDATA[atlantia]]></dc:creator><pubDate>Sat, 02 Jan 2010 19:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Sat, 02 Jan 2010 02:06:26 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">The visual_phonebook table structure in the beta changed. You are using the old structure. In the beta tarball there is a mysql-update.db file with the alter commands to add the missing fields. Best regards,</p>
</blockquote>
<p dir="auto">That would answer that bad result <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /> Happy New Year.</p>
]]></description><link>http://localhost:4567/post/1005</link><guid isPermaLink="true">http://localhost:4567/post/1005</guid><dc:creator><![CDATA[Thomas]]></dc:creator><pubDate>Sat, 02 Jan 2010 02:06:26 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Sat, 02 Jan 2010 01:17:32 GMT]]></title><description><![CDATA[<p dir="auto">The visual_phonebook table structure in the beta changed. You are using the old structure. In the beta tarball there is a mysql-update.db file with the alter commands to add the missing fields. Best regards,</p>
]]></description><link>http://localhost:4567/post/1004</link><guid isPermaLink="true">http://localhost:4567/post/1004</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sat, 02 Jan 2010 01:17:32 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Fri, 01 Jan 2010 23:04:38 GMT]]></title><description><![CDATA[<p dir="auto">Pretty sure. I have even tried the root mysql account authentication, as well as using the localhost IP vs localhost entry. Still having the issue.</p>
<pre><code>&lt;?
// Database connection details
$DBHOST = '127.0.0.1';
$DBNAME = 'fop2';
$DBUSER = 'root';
$DBPASS = 'mypassword';

$language="en";
</code></pre>
<p dir="auto">I have also tried the fop2 user and credentials. The two entries I listed were entered via the phonebook web interface, so it was able to access the database then. Immediately after entering them though they would not display in the list, along with the errors shown above (mysql_num_rows(): supplied argument is not a valid MySQL result resource, etc)</p>
<p dir="auto">Not sure what else to look for. i understand those errors usually mean mysql permission issues, but if even the root account causes the error, and the table is setup properly, then I am a bit confused as to the nature of the issue.</p>
]]></description><link>http://localhost:4567/post/1003</link><guid isPermaLink="true">http://localhost:4567/post/1003</guid><dc:creator><![CDATA[atlantia]]></dc:creator><pubDate>Fri, 01 Jan 2010 23:04:38 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Fri, 01 Jan 2010 21:15:49 GMT]]></title><description><![CDATA[<p dir="auto">Are you sure the config.php is setup properly?</p>
]]></description><link>http://localhost:4567/post/1002</link><guid isPermaLink="true">http://localhost:4567/post/1002</guid><dc:creator><![CDATA[Thomas]]></dc:creator><pubDate>Fri, 01 Jan 2010 21:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Fri, 01 Jan 2010 00:48:40 GMT]]></title><description><![CDATA[<p dir="auto">Tried the solution proposed here with no success.</p>
<p dir="auto"><a href="http://forum.fop2.com/esotalk/index.php/143&amp;p=545&amp;hilit=supplied+argument+is+not+a+valid+MySQL+result+resource#p545" rel="nofollow ugc">View Post 143&amp;p=545&amp;hilit=supplied+argument+is+not+a+valid+MySQL+result+resource#p545</a></p>
<p dir="auto">giving up on that issue for the night, Happy New years to all. Will figure it out Monday.</p>
<p dir="auto">KM</p>
]]></description><link>http://localhost:4567/post/1001</link><guid isPermaLink="true">http://localhost:4567/post/1001</guid><dc:creator><![CDATA[atlantia]]></dc:creator><pubDate>Fri, 01 Jan 2010 00:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Thu, 31 Dec 2009 23:56:08 GMT]]></title><description><![CDATA[<p dir="auto">Note: turning on debug has giving me some Mysql resource errors. Delving further now. I'll post my results when I figure it out.</p>
<p dir="auto">notice<br />
/var/www/html/fop2/lib/dblib.php (line 233)</p>
<p dir="auto">mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource<br />
notice<br />
/var/www/html/fop2/lib/dblib.php (line 344)</p>
<p dir="auto">mysql_num_fields(): supplied argument is not a valid MySQL result resource<br />
notice<br />
/var/www/html/fop2/lib/dblib.php (line 333)</p>
<p dir="auto">mysql_num_rows(): supplied argument is not a valid MySQL result resource<br />
Add   Export   Import<br />
Search</p>
<p dir="auto">No records found<br />
NOTICE<br />
/VAR/WWW/HTML/FOP2/LIB/DBLIB.PHP (LINE 244)</p>
]]></description><link>http://localhost:4567/post/1000</link><guid isPermaLink="true">http://localhost:4567/post/1000</guid><dc:creator><![CDATA[atlantia]]></dc:creator><pubDate>Thu, 31 Dec 2009 23:56:08 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Phonebook Empty 'no records exist' on Thu, 31 Dec 2009 23:43:43 GMT]]></title><description><![CDATA[<p dir="auto">I also get an error when trying to add a user with a picture:</p>
<p dir="auto">Array ( [i] =&gt; Array ( [display] =&gt; id [i] =&gt; text [values] =&gt; [display_filter] =&gt; Array ( ) [edit_filter] =&gt; Array ( ) [i] =&gt; [default] =&gt; ) [firstname] =&gt; Array ( [display] =&gt; firstname [i] =&gt; text [values] =&gt; [display_filter] =&gt; Array ( ) [edit_filter] =&gt; Array ( ) [i] =&gt; [default] =&gt; ) [lastname] =&gt; Array ( [display] =&gt; lastname [i] =&gt; text [values] =&gt; [display_filter] =&gt; Array ( ) [edit_filter] =&gt; Array ( ) [i] =&gt; [default] =&gt; ) [company] =&gt; Array ( [display] =&gt; company [i] =&gt; text [values] =&gt; [display_filter] =&gt; Array ( ) [edit_filter] =&gt; Array ( ) [i] =&gt; [default] =&gt; ) [phone1] =&gt; Array ( [display] =&gt; phone1 [i] =&gt; text [values] =&gt; [display_filter] =&gt; Array ( ) [edit_filter] =&gt; Array ( ) [i] =&gt; [default] =&gt; ) [phone2] =&gt; Array ( [display] =&gt; phone2 [i] =&gt; text [values] =&gt; [display_filter] =&gt; Array ( ) [edit_filter] =&gt; Array ( ) [i] =&gt; [default] =&gt; ) [picture] =&gt; Array ( [display] =&gt; picture [i] =&gt; img [values] =&gt; [display_filter] =&gt; Array ( [0] =&gt; display_image ) [edit_filter] =&gt; Array ( ) [i] =&gt; [default] =&gt; ) )<br />
Array<br />
(<br />
[firstname] =&gt; Test<br />
[lastname] =&gt; User<br />
[company] =&gt;<br />
[phone1] =&gt; 123456789<br />
[phone2] =&gt;<br />
[picture] =&gt; Array<br />
(<br />
[name] =&gt; n789442807_6602.jpg<br />
[type] =&gt; image/jpeg<br />
[tmp_name] =&gt; /tmp/phpgU2kKm<br />
[error] =&gt; 0<br />
=&gt; 8960<br />
)</p>
<p dir="auto">)<br />
An error has occurred<br />
No se pudo copiar el archivo</p>
<p dir="auto"><strong>EDIT: I was able to fix this issue by chown apache. /var/www/htl/fop2/uploads</strong></p>
<p dir="auto">Could my first issue also be permissions based?</p>
]]></description><link>http://localhost:4567/post/999</link><guid isPermaLink="true">http://localhost:4567/post/999</guid><dc:creator><![CDATA[atlantia]]></dc:creator><pubDate>Thu, 31 Dec 2009 23:43:43 GMT</pubDate></item></channel></rss>