Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
[pm2.4-004] captchas problems.. 
Posted: 20 January 2005 02:59 PM   [ Ignore ]  
Summer Student
Total Posts:  15
Joined  2003-06-25

I have captch enabled, set the perms on the images directory and nothing shows up..

checking further I see the link in my html which is fine, investigating that, the images created in the captchas directory are zero byes in size and owned by nobody, but the group is set to my
group (as it should be)…

am wondering if i should set it to create in /tmp looks like the images are going to build up and not be removed… hmm… but why is it creating zero byte files....

Profile
 
 
Posted: 22 January 2005 09:36 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  1
Joined  2002-10-28

I had the same problem when I first installed the capch’s. May sure the directory is set to 777.

That fixed it for me.

Profile
 
 
Posted: 29 January 2005 02:31 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  15
Joined  2003-06-25

THe directory is, as its createing the files in there. If it didnt have permission it wouldnt be able to create them, it appears to just not be writing anything into them, so I get loads of zero length files…

Profile
 
 
Posted: 29 January 2005 01:10 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Do you have the GD image library available (and working) in your PHP installation?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 29 January 2005 04:03 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  15
Joined  2003-06-25

phpinfo says;

GD Support enabled
GD Version 1.6.2 or higher
JPG Support enabled
WBMP Support enabled

Profile
 
 
Posted: 31 January 2005 04:27 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  2002-08-05

So, the images written into the captchas folder are empty or malformed when you view them in a browser?

 Signature 
Profile
 
 
Posted: 01 February 2005 03:55 AM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  15
Joined  2003-06-25

yep. when I ssh into my box, I see the files it creates in the captchas directory but they are all zero bytes in length.

Profile
 
 
Posted: 01 February 2005 01:26 PM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  2002-08-05

Hm, this is definitely not a problem I have encountered before (love those!).  In your config.php file, do you have $debug set to 1 (i.e. debugging turned on)?  That might provide some information.  Also, have you tried turning TrueType support off in General Configuration?

 Signature 
Profile
 
 
Posted: 02 February 2005 04:21 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  15
Joined  2003-06-25

right, ive set debug=1

truetype is off
append random number is on

the html output in my page is shows the image link is correct;
img src="http://mega-tokyo.com/blog/images/captchas/1107342241.8127.jpg" width="140" height="30" border="0" alt=” “

the resulting jpg has the -rw-r--r-- permissions and is 0 in length..

the images directry is 777 and the captchas directory under that is 777 ...

with debug=1 how do I get any debug output?

checking the captchas table in the database showsit has entries in it;

enabling truetype again has no affect, have tried with and without random number appended.

I am wondering about the valid2() js function… hm… I am running firefox 1.0 on linux. thats just some kind of hash compare tho isnt it…

mmm I am lost…

Profile
 
 
Posted: 02 February 2005 08:29 AM   [ Ignore ]   [ # 9 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  2002-08-05

The debug setting should have automatically outputted any errors that occurred in PHP.  The valid2() stuff has nothing to do with this.  The image is not showing up (apparently because the file being written is empty) and this is a PHP or server problem.  The only thing I can think of right now is that GD is not working properly, since you seem to have all of the settings correctly.  Send me an email with FTP information for your server and I can take a look and see if it is failing anywhere.

 Signature 
Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 61005 Total Logged-in Users: 0
Total Topics: 73776 Total Anonymous Users: 0
Total Replies: 398000 Total Guests: 46
Total Posts: 471776    
Members ( View Memberlist )
Active Members: