<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Peter&#039;s Useful Crap - Topic: WordPress database error</title>
	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error</link>
	<description><![CDATA[Useful tips on Canada, cell phones, banking, technology, WordPress, PHP and more]]></description>
	<generator>Simple:Press Version 5.5.1</generator>
	<atom:link href="http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Peter on WordPress database error</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p170</link>
        	<category>Peter's Custom Anti-Spam for WordPress</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p170</guid>
        	        	<description><![CDATA[<p>Hi, I was unable to duplicate that behaviour that you described.  When I checked that option, no fields disappeared on the comment form for me when I was an anonymous user.  However, the answer might lie in the <a href="http://www.theblog.ca/wp-content/uploads/2007/01/do_action.htm">manual insert method</a> (which I recommend that everybody do for accessibility reasons).</p>
]]></description>
        	        	<pubDate>Wed, 10 Oct 2007 00:09:11 +0000</pubDate>
        </item>
        <item>
        	<title>minibird on WordPress database error</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p169</link>
        	<category>Peter's Custom Anti-Spam for WordPress</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p169</guid>
        	        	<description><![CDATA[<p>It worked with the 2nd way: modify $cas_rowid.....<br />
And i tested, if  both codes are modified, it worded too.</p>
<p>And ,for the behaviour with anonymous users ,it's WP's built-in option. In Options-Discussion-Before a comment appears,If "Comment author must have a previously approved comment" be checked.then the information field would be hidden.<br />
i can manualy hacked the php file.<br />
would you make it to be a option for the anti-spam plugin? for those guy who dare to modify code manualy? :P<br />
my site is <a href="http://www.minibird.net" rel="nofollow">http://www.minibird.net</a> ,welcome. but there's nothing in the site, :P<br />
Thank you!</p>
]]></description>
        	        	<pubDate>Mon, 08 Oct 2007 10:37:01 +0000</pubDate>
        </item>
        <item>
        	<title>Peter on WordPress database error</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p168</link>
        	<category>Peter's Custom Anti-Spam for WordPress</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p168</guid>
        	        	<description><![CDATA[<p>Glad to hear it worked!  But which piece of code worked?  If you let me know, I can update the code for the next release so that the plugin is more compatible for different server setups.</p>
<p>Also, the behaviour with anonymous users -- is that with a plugin or did you use some built-in WordPress option?  Would it be sufficient for you to use the manual insert method described <a href="http://www.theblog.ca/wp-content/uploads/2007/01/do_action.htm">here</a> to force the anti-spam word to be displayed even for repeat users?</p>
<p>Where is your site so that I can do some investigation?</p>
]]></description>
        	        	<pubDate>Sun, 07 Oct 2007 21:07:12 +0000</pubDate>
        </item>
        <item>
        	<title>minibird on WordPress database error</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p167</link>
        	<category>Peter's Custom Anti-Spam for WordPress</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p167</guid>
        	        	<description><![CDATA[<p>Your solution worked! thank you.<br />
But, anohther issue:<br />
As a anonymous ,if I've posted a comment ,when i post another comment,the anti-spam image &#038; the input field would be hidden,such as the input field for name &#038; emial &#038; site .All of them would be hidden. then Error(Please enter the anti-spam word) appear again when post be submitted .<br />
Because there is a cookie for anonymous, if anonymous posted a comment, WordPress allow anonymous that not to input name information again.<br />
Now,anonymous would not input anti-spam word, until he CHANGE his information, then all input filed would appear agian,incuding anti-sapm filed.<br />
I dont think that it's a bug.but, for commen user, they cant know how to post comment twice unless CHANGE information. That's not so human beings.<br />
Maybe you would find a solution in the next version:)<br />
my english  is so poor, beg your pardon.<br />
Thank you very much.I like this plugin very much.</p>
]]></description>
        	        	<pubDate>Sun, 07 Oct 2007 07:32:13 +0000</pubDate>
        </item>
        <item>
        	<title>Peter on WordPress database error</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p166</link>
        	<category>Peter's Custom Anti-Spam for WordPress</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p166</guid>
        	        	<description><![CDATA[<p>Try also:</p>
<p>$cas_rowid = $wpdb->get_var(&#039;SELECT last_insert_id()&#039;);</p>
<p>instead of:</p>
<p>$cas_rowid = mysql_insert_id();</p>
<p>Because I can't reproduce this problem on my installation, I can't figure out whether the problem is in getting the ID of the last inserted row or inserting a row in the count table.  So I just have to keep throwing random suggestions out there...</p>
]]></description>
        	        	<pubDate>Sat, 06 Oct 2007 20:08:33 +0000</pubDate>
        </item>
        <item>
        	<title>Peter on WordPress database error</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p165</link>
        	<category>Peter's Custom Anti-Spam for WordPress</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p165</guid>
        	        	<description><![CDATA[<p>This is stumping me because a few people have reported this...</p>
<p>Can you try finding this code in the plugin file:</p>
<p>// Insert a row into the count database to generate an auto_increment number<br />
$wpdb->query(&#039;INSERT INTO &#039; . $cas_count . &#039; (id) VALUES (NULL)&#039;);</p>
<p>And replacing it with this:</p>
<p>// Insert a row into the count database to generate an auto_increment number<br />
$wpdb->query(&#039;INSERT INTO &#039; . $cas_count . &#039; (id) VALUES (\\&#039;AUTO_INCREMENT\\&#039;)&#039;);</p>
]]></description>
        	        	<pubDate>Sat, 06 Oct 2007 02:31:04 +0000</pubDate>
        </item>
        <item>
        	<title>minibird on WordPress database error</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p164</link>
        	<category>Peter's Custom Anti-Spam for WordPress</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/wordpress-database-error#p164</guid>
        	        	<description><![CDATA[<p>thank you for the great work!<br />
my platform is ubuntu 7.10 + apache2 + PHP5+ mysql+wordpress 2.3+ Peter's custom antispam image plugin 2.9.4.</p>
<p>error when post a comment.<br />
1. if i am a registed user, there is no error.<br />
2. if i am a guest , no error for the first visit to the page.there is an anti-spanm image .<br />
3. as a guest,if i reload the page for the page, there is an error like this:<br />
WordPress database error: [Duplicate entry '0' for key 1]<br />
INSERT INTO wp_cas_image (id, createtime, word) VALUES (0, 1191632776, 'share')</p>
<p>and, the word in the image is diffrent from the word in the error message.for example,word in the image is "rice",but the word in the message is "share". then, if i post a comment,there is a error messae like the following:<br />
Error: Please enter the anti-spam word.<br />
Copy your comment in case this site forces a page reload whenever you press the Back button:</p>
<p>4.as a guest ,  i don't need to input personal meessage such as name and email again when post another comment,if i have a comment Moderated by the manager. when i post a comment, there is no anti-spam image.but when posted, error again like this:Error: Please enter the anti-spam word.<br />
Copy your comment in case this site forces a page reload whenever you press the Back button:</p>
<p>i created 2 tables manually sucessfuly.but error is same as step 2, 3, 4.<br />
that's all, thank you.</p>
]]></description>
        	        	<pubDate>Fri, 05 Oct 2007 21:32:28 +0000</pubDate>
        </item>
</channel>
</rss>