<?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[An error has ocurried Unknown field :picture]]></title><description><![CDATA[<p dir="auto">After configuring the visual phonebook in the paragraph : Configuring Visual phonebook,the error continued.</p>
<p dir="auto">((((my MYSQL root password is 'root')))</p>
<p dir="auto">[root@centos init.d]# service mysqld start<br />
Iniciando MySQL: [ OK ]</p>
<p dir="auto">[root@centos fop2]# mysql -u root -p<br />
Enter password:<br />
Welcome to the MySQL monitor. Commands end with ; or \g.<br />
Your MySQL connection id is 5<br />
Server version: 5.0.77 Source distribution</p>
<p dir="auto">Type 'help;' or '\h' for help. Type '\c' to clear the buffer.</p>
<p dir="auto">mysql&gt; show databases;<br />
+--------------------+<br />
| Database |<br />
+--------------------+<br />
| information_schema |<br />
| fop2 |<br />
| mysql |<br />
| test |<br />
+--------------------+<br />
4 rows in set (0.01 sec)</p>
<p dir="auto">mysql&gt; use fop2<br />
Database changed</p>
<p dir="auto">mysql&gt; show tables;<br />
Empty set (0.00 sec)</p>
<p dir="auto">[root@centos fop2]# mysql -u root -proot &lt; mysql.db</p>
<p dir="auto">mysql&gt; GRANT ALL on fop2.* TO fop2@localhost IDENTIFIED BY 'root';<br />
Query OK, 0 rows affected (0.00 sec)</p>
<p dir="auto">mysql&gt; exit<br />
Bye.</p>
<p dir="auto">[root@centos fop2]# service fop2 restart<br />
Shutting dows Flash Operator Panel 2: [ OK ]<br />
Starting Flash Operator Panel 2: [ OK ]</p>
<hr />
<p dir="auto">config.php</p>
<p dir="auto">&lt;?<br />
// Database connection details<br />
$DBHOST = 'localhost';<br />
$DBNAME = 'fop2';<br />
$DBUSER = 'fop2';<br />
$DBPASS = 'root';</p>
<p dir="auto">$language="en";</p>
<hr />
<hr />
]]></description><link>http://localhost:4567/topic/136/an-error-has-ocurried-unknown-field-picture</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 03:59:50 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/136.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Oct 2009 10:09:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to An error has ocurried Unknown field :picture on Wed, 14 Oct 2009 08:38:42 GMT]]></title><description><![CDATA[<p dir="auto">OKKKKKK !!!!! tHANKS tHOMAS.Error solved.</p>
]]></description><link>http://localhost:4567/post/631</link><guid isPermaLink="true">http://localhost:4567/post/631</guid><dc:creator><![CDATA[Davidin]]></dc:creator><pubDate>Wed, 14 Oct 2009 08:38:42 GMT</pubDate></item><item><title><![CDATA[Reply to An error has ocurried Unknown field :picture on Wed, 14 Oct 2009 08:13:26 GMT]]></title><description><![CDATA[<p dir="auto">I suppose you could do something like</p>
<pre><code>public function fetch_assoc($query = false) {
        $this-&gt;res_type($query);
	 if($query and !is_bool($query)) { 
  		return mysql_fetch_assoc($query); 
	 } 
 }
</code></pre>
<p dir="auto">But my PHP isn't very good so if Nicolas could confirm that this isn't going to bork anything <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>http://localhost:4567/post/630</link><guid isPermaLink="true">http://localhost:4567/post/630</guid><dc:creator><![CDATA[Thomas]]></dc:creator><pubDate>Wed, 14 Oct 2009 08:13:26 GMT</pubDate></item><item><title><![CDATA[Reply to An error has ocurried Unknown field :picture on Wed, 14 Oct 2009 08:01:42 GMT]]></title><description><![CDATA[<p dir="auto">Ok Thanks!!!</p>
<p dir="auto">But not everything is correct.<br />
This error has not been solved.</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>
<hr />
<p dir="auto">dblib.php</p>
<pre><code>/**
 * Fetch results by associative array
 *
 * @param mixed $query Select query or database result
 * @return array Row
 */
public function fetch_assoc($query = false) {
    $this-&gt;res_type($query);
    return mysql_fetch_assoc($query);  &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;----------LINE 233
}
</code></pre>
<hr />
]]></description><link>http://localhost:4567/post/629</link><guid isPermaLink="true">http://localhost:4567/post/629</guid><dc:creator><![CDATA[Davidin]]></dc:creator><pubDate>Wed, 14 Oct 2009 08:01:42 GMT</pubDate></item><item><title><![CDATA[Reply to An error has ocurried Unknown field :picture on Tue, 13 Oct 2009 14:57:44 GMT]]></title><description><![CDATA[<p dir="auto">Hows about</p>
<pre><code>mysql -u root -proot
use fop2;
</code></pre>
<p dir="auto">copy all and paste to console screen</p>
<pre><code>CREATE TABLE `visual_phonebook` (
  `id` int(11) NOT NULL auto_increment,
  `firstname` varchar(50) default NULL,
  `lastname` varchar(50) default NULL,
  `company` varchar(100) default NULL,
  `phone1` varchar(25) default NULL,
  `phone2` varchar(25) default NULL,
  `picture` varchar(100) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM;
</code></pre>
<p dir="auto">and then</p>
<pre><code>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.00 sec)
</code></pre>
<p dir="auto">for testing</p>
<pre><code>insert into visual_phonebook(firstname, lastname, phone1) values('john', 'doe', '0141123456');
select * from visual_phonebook;
+----+-----------+----------+---------+------------+--------+---------+
| id | firstname | lastname | company | phone1     | phone2 | picture |
+----+-----------+----------+---------+------------+--------+---------+
|  1 | john      | doe      | NULL    | 0141123456 | NULL   | NULL    |
+----+-----------+----------+---------+------------+--------+---------+
1 row in set (0.00 sec)

</code></pre>
]]></description><link>http://localhost:4567/post/628</link><guid isPermaLink="true">http://localhost:4567/post/628</guid><dc:creator><![CDATA[Thomas]]></dc:creator><pubDate>Tue, 13 Oct 2009 14:57:44 GMT</pubDate></item><item><title><![CDATA[Reply to An error has ocurried Unknown field :picture on Tue, 13 Oct 2009 10:03:54 GMT]]></title><description><![CDATA[<ol>
<li></li>
</ol>
<p dir="auto">mysql&gt; use fop2;<br />
Database changed<br />
mysql&gt; select * from visual_phonebook;<br />
ERROR 1146 (42S02):Table 'fop2.visual_phonebook' doesn´t exist</p>
<p dir="auto">2)edit config.php</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 233)</p>
<p dir="auto">mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource</p>
<p dir="auto">An error has occurred</p>
<p dir="auto">Unknown field: picture<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</p>
<p dir="auto">No records found<br />
notice<br />
/var/www/html/fop2/lib/dblib.php (line 244)</p>
<p dir="auto">mysql_fetch_row(): supplied argument is not a valid MySQL result resource</p>
]]></description><link>http://localhost:4567/post/627</link><guid isPermaLink="true">http://localhost:4567/post/627</guid><dc:creator><![CDATA[Davidin]]></dc:creator><pubDate>Tue, 13 Oct 2009 10:03:54 GMT</pubDate></item><item><title><![CDATA[Reply to An error has ocurried Unknown field :picture on Fri, 09 Oct 2009 22:45:40 GMT]]></title><description><![CDATA[<p dir="auto">Log-in to mysql and then</p>
<pre><code>use fop2;
select * from visual_phonebook;
</code></pre>
<p dir="auto">do you see the picture column?</p>
<p dir="auto">also goto</p>
<pre><code>/var/www/html/fop2/
</code></pre>
<p dir="auto">edit config.php</p>
<p dir="auto">Change</p>
<pre><code>define('DEBUG',false);
</code></pre>
<p dir="auto">to</p>
<pre><code>define('DEBUG',true);
</code></pre>
<p dir="auto">save and upload, goto <a href="http://YOUR_SERVER_IP/fop2/phonebook.php" rel="nofollow ugc">http://YOUR_SERVER_IP/fop2/phonebook.php</a><br />
and paste the output here</p>
]]></description><link>http://localhost:4567/post/626</link><guid isPermaLink="true">http://localhost:4567/post/626</guid><dc:creator><![CDATA[Thomas]]></dc:creator><pubDate>Fri, 09 Oct 2009 22:45:40 GMT</pubDate></item></channel></rss>