<?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: No Image Appearing</title>
	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/no-image-appearing</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/no-image-appearing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Peter on No Image Appearing</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/no-image-appearing#p932</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/no-image-appearing#p932</guid>
        	        	<description><![CDATA[<p>Perhaps this is something like an open_basedir restriction?  In other words, the host's PHP settings only allow files to access other files within the same directory.  I would have thought it returned a different error than you experienced, but it's certainly a possible reason.  I am glad it is working for you now, though!</p>
]]></description>
        	        	<pubDate>Mon, 01 Dec 2008 01:18:15 +0000</pubDate>
        </item>
        <item>
        	<title>Allan on No Image Appearing</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/no-image-appearing#p931</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/no-image-appearing#p931</guid>
        	        	<description><![CDATA[<p>Okay, now I'm pretty sure I'm on crack because this doesn't make sense.</p>
<p>The reason imagechar characters were showing up was because I had a double / in the path - so it dropped out of the if statement and went straight to imagechar as it should.</p>
<p>However more troubleshooting later, and I discover it's something like a path length issue... if I chanve line 141 to</p>
<p><input type="button" class="sfcodeselect" name="sfselectit6117" value="Select Code" onclick="spjSelectCode('sfcode6117');" /></p>
<div class="sfcode" id="sfcode6117">$cas_fontpath = '';</div>
<p>and copy the font files to the peters-custom-anti-spam-image directory from the fonts/ directory, it works.</p>
<p>When I put the fontpath back to 'fonts/' it errors out.</p>
<p>When I change the fonts directory name to 'font' and put that in the path, it errors out.</p>
<p>When I change the fonts directory to 'pig' and use that in the path, it errors out. </p>
<p>I don't get it. I'm going to talk to my hosting provider to see what's up.</p>
<p>Thanks,</p>
<p>-Allan</p>
]]></description>
        	        	<pubDate>Mon, 01 Dec 2008 00:27:48 +0000</pubDate>
        </item>
        <item>
        	<title>Peter on No Image Appearing</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/no-image-appearing#p930</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/no-image-appearing#p930</guid>
        	        	<description><![CDATA[<p>Hi Allan,</p>
<p>I’m guessing that the relative font path wasn’t the problem, because it is later combined with the plugin path to create an absolute path.  Without further investigation, I can’t say what it could be, though [Image Can Not Be Found]</p>
<p>Good luck!  If you could post back when the time comes, that would be great, to help people who might end up in a similar situation in the future.</p>
]]></description>
        	        	<pubDate>Sun, 30 Nov 2008 22:30:02 +0000</pubDate>
        </item>
        <item>
        	<title>Allan on No Image Appearing</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/no-image-appearing#p928</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/no-image-appearing#p928</guid>
        	        	<description><![CDATA[<p>I think there's still something wrong - it's working but giving the imagechar text. I'll post when I figure out why.</p>
<p>Thanks again,</p>
<p>-Allan</p>
]]></description>
        	        	<pubDate>Sun, 30 Nov 2008 18:57:04 +0000</pubDate>
        </item>
        <item>
        	<title>Allan on No Image Appearing</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/no-image-appearing#p927</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/no-image-appearing#p927</guid>
        	        	<description><![CDATA[<p>Hi Peter - thanks for the advice. I re-loaded everything (fonts as binary files) before I posted and this didn't help. I also tried using the Javascript to pull the files down.</p>
<p>I tried out your Math Antispam and it works! So I spent a bit of sleuthing time and found that the following path wasn't valid<br />
$cas_fontpath = 'fonts/';</p>
<p>I changed it to the absolute path and it now works:<br />
$cas_fontpath =  $cas_folder. '/fonts/';</p>
<p>Not sure why it doesn't like the relative path but it doesn't. Probably the way FreeType is set up.</p>
<p>Strangely enough the sound path works just fine the way it is.</p>
<p>Thanks for the help and the great plugin!</p>
<p>-Allan</p>
]]></description>
        	        	<pubDate>Sun, 30 Nov 2008 18:48:21 +0000</pubDate>
        </item>
        <item>
        	<title>Peter on No Image Appearing</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/no-image-appearing#p926</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/no-image-appearing#p926</guid>
        	        	<description><![CDATA[<p>Hi Allan,</p>
<p>Try re-uploading the fonts in binary mode rather than ASCII mode. The fact that it mentions the font makes me think that's the likely solution, barring a server configuration oddity.</p>
]]></description>
        	        	<pubDate>Sun, 30 Nov 2008 18:43:25 +0000</pubDate>
        </item>
        <item>
        	<title>Allan on No Image Appearing</title>
        	<link>http://www.theblog.ca/peter-forum/peters-custom-anti-spam-for-wordpress/no-image-appearing#p925</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/no-image-appearing#p925</guid>
        	        	<description><![CDATA[<p>Peter - I had this installed on a different server and it was working. I’ve since switched to a different host and I’m getting errors.</p>
<p>CAS says it’s seeing GD and FreeType, but no images are appearing. On my server logs I’m getting the following errors:</p>
<p><input type="button" class="sfcodeselect" name="sfselectit7977" value="Select Code" onclick="spjSelectCode('sfcode7977');" /></p>
<div class="sfcode" id="sfcode7977">[Sun Nov 30 12:21:39 2008] [error] [client 207.6.246.81] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xxx/wp-content/plugins/peters-custom-anti-spam-image/custom_anti_spam.php:319) in /home/xxx/wp-content/plugins/peters-custom-anti-spam-image/custom_anti_spam.php on line 345, referer: <a href="http://xxx/" rel="nofollow">http://xxx/</a></p>
<p>[Sun Nov 30 12:21:39 2008] [error] [client 207.6.246.81] PHP Warning:  imagettftext() [<a href='function.imagettftext' target="_blank">function.imagettftext</a>]: Could not read font in /home/xxx/wp-content/plugins/peters-custom-anti-spam-image/custom_anti_spam.php on line 344, referer: <a href="http://xxx/" rel="nofollow">http://xxx/</a></p>
<p>[Sun Nov 30 12:21:39 2008] [error] [client 207.6.246.81] PHP Warning:  imagettfbbox() [<a href='function.imagettfbbox' target="_blank">function.imagettfbbox</a>]: Could not read font in /home/xxx/wp-content/plugins/peters-custom-anti-spam-image/custom_anti_spam.php on line 319, referer: <a href="http://xxx/" rel="nofollow">http://xxx/</a>
</p>
</div>
<p>Same error if PNG graphics are selected or not. I tried the solution you gave to Arif (changing line 314 to fail) and it will show the imagechar generated text.</p>
<p>Any suggestions on where to look? I’m assuming that my host is not configured correctly but don’t know where to start.</p>
<p>Thanks</p>
<p>-Allan</p>
]]></description>
        	        	<pubDate>Sun, 30 Nov 2008 15:52:38 +0000</pubDate>
        </item>
</channel>
</rss>