PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Text_CAPTCHA, (image can not be displayed because it has err
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions
View previous topic :: View next topic  
Author Message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Sat Apr 19, 2008 6:42 pm    Post subject: Reply with quote

Please post your solution here, e.g. the additionally needed function/method calls. It helps other people that search the internet and that find this thread.
Back to top
View user's profile Send private message
horseatingweeds



Joined: 15 Apr 2008
Posts: 10

PostPosted: Mon Apr 28, 2008 10:53 pm    Post subject: Reply with quote

Sorry Mark, I thought I had conveyed the solution in my last post by saying you were right about the blank line. Allow me to clear it up.

With the way Zend Framework and MVC code I'm using works, the index (bootstrap) file is used to create the image binary code. I had a line break at the top of the index page so it was adding this page to the image code and corrupting it. By removing this line I fixed the problem and it works correctly now.

boodito, this may be your problem as well. Look for any space above your <?php tag on the index.php page. Also be sure you have GD graphics library loaded on your server. The book doesn't mention the need for this but Pear uses it to make the image.

http://www.boutell.com/gd/
Back to top
View user's profile Send private message
boodito



Joined: 28 Apr 2008
Posts: 2

PostPosted: Tue Apr 29, 2008 10:58 am    Post subject: Reply with quote

Thank you horseatingweeds for your quick reply,
I've been following the examples in the book, and I have the application on both Windows and Ubuntu, GD library is enabled on both environments, there are no line breaks above the <?php tag, but am still getting the error. Any ideas?
Back to top
View user's profile Send private message
boodito



Joined: 28 Apr 2008
Posts: 2

PostPosted: Tue Apr 29, 2008 12:58 pm    Post subject: Reply with quote

Got it to work,
I had the error_reporting set in the bootstrap file, commenting it solved the problem of CAPTCHA.. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement