Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

PostPosted: Fri Nov 13, 2009 6:35 pm Reply with quote

Ok, please explain to me again how to change the image.

I have edited class.php-captcha.php but nothing I do changes the captcha image.

I would like to make the image larger. Old guys like me have to go through several attempts at logging in before we see an image good enough to succeed.

I put the defaults as follows to see if it made a difference
Code:
define('CAPTCHA_SESSION_ID', 'php_captcha');

define('CAPTCHA_WIDTH', 300); // max 500
define('CAPTCHA_HEIGHT', 90); // max 200
define('CAPTCHA_NUM_CHARS', 5);
define('CAPTCHA_NUM_LINES', 90);
define('CAPTCHA_CHAR_SHADOW', false);
define('CAPTCHA_OWNER_TEXT', '');
define('CAPTCHA_CHAR_SET', ''); // defaults to A-Z
define('CAPTCHA_CASE_INSENSITIVE', false);
define('CAPTCHA_BACKGROUND_IMAGES', '');
define('CAPTCHA_MIN_FONT_SIZE', 16);
define('CAPTCHA_MAX_FONT_SIZE', 20);
define('CAPTCHA_USE_COLOUR', true);
define('CAPTCHA_FILE_TYPE', 'png');
define('CAPTCHA_FLITE_PATH', '/usr/bin/flite');
define('CAPTCHA_AUDIO_PATH', '/tmp/'); // must be writeable by PHP process

Here is what it looks like.
Image
Is there something else I need to do, or other files I need to check? This is a fresh install of RN2.4.

I just modified that file on another site which was upgraded from 2.3 to 2.4 and I can increase the size of the captcha image, and it is in color and contains 5 characters.
 
View user's profile Send private message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Fri Nov 13, 2009 6:59 pm Reply with quote

I just did a little search and I found this
[ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
Doulos







PostPosted: Fri Nov 13, 2009 7:47 pm Reply with quote

Ya, I know. Thanks.
 
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sat Nov 14, 2009 6:12 am Reply with quote

That is not the right captcha for RN2.4. Is this an upgrade?
 
View user's profile Send private message
Doulos







PostPosted: Sat Nov 14, 2009 6:36 pm Reply with quote

No, it is a fresh install from this download: RavenNuke_v2.40.00.7z

I have an upgraded site on which the captcha works fine, including modifying the settings in class.php-captcha.php
 
Doulos







PostPosted: Sat Nov 14, 2009 7:44 pm Reply with quote

Could it have something to do with this....?

Warning: ini_set() has been disabled for security reasons.... in rnconfig.php line 265. (this is the only php error warning I get)

If I comment out line 265 the captcha shows up as in the first post in this thread. If I un-comment line 265 the captcha does not show up at all - I get this instead....

Image

My host has disabled ini_set() - I just installed a local copy using xampp and the captcha shows up as expected.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Nov 15, 2009 12:53 pm Reply with quote

Doulos, actually, I think the problem may have something to do with not having GD access or GD was not compiled with FreeType support.

The captcha should look like the ones on the RavenNuke Demo Site. Something is not right with your set up and not sure if the ini_set issue is the cause... yet.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Doulos







PostPosted: Mon Nov 30, 2009 5:24 pm Reply with quote

montego, is this what you are talking about? IMAGE

If not, how would I go about finding out? I am about to turn off the captcha verification since I am getting no end of complaints about the image being too small to read.
 
montego







PostPosted: Wed Dec 02, 2009 6:42 am Reply with quote

You need to check with your host about making sure GD is compiled to include FreeType 2 (I believe is the minimum) support.
 
Doulos







PostPosted: Wed Dec 02, 2009 1:54 pm Reply with quote

Thanks, but I decided to host it myself. We have had too many server issues with our present host. Thanks for all your help.
 
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Wed Dec 02, 2009 3:48 pm Reply with quote

Doulos wrote:
Thanks, but I decided to host it myself. We have had too many server issues with our present host. Thanks for all your help.


Ok, so is it working correctly now?
 
View user's profile Send private message
Doulos







PostPosted: Wed Dec 02, 2009 6:57 pm Reply with quote

Captcha works correctly everywhere I tried it except on the server the site was originally hosted. As it was being hosted for free we couldn't complain too much. We have been unable to have reliable, timely communications with the server owner for some time now. We have had enough.
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Dec 02, 2009 7:18 pm Reply with quote

Doulos,

For a very few $ I can host your site Wink
 
View user's profile Send private message
Doulos







PostPosted: Wed Dec 02, 2009 8:01 pm Reply with quote

Thanks, I will keep that in mind. We use a lot of bandwidth on this particular site (close to a 100GB/mth sometimes), several large databases, and a lot of disk space for large file storage. I want to see how my server (and I) can handle it first since I am also free Smile.

Anyway, I moved the site, and the captcha image shows up exactly as expected. However, now it won't let anyone log in. We keep getting the "Security Code is incorrect, Please go back and type it exactly as given ..." message.

Suggestions?
 
bobbyg
Worker
Worker



Joined: Dec 05, 2007
Posts: 212
Location: Tampa, Florida

PostPosted: Wed Dec 02, 2009 8:12 pm Reply with quote

If you are getting free hosting via a GoDaddy or WildWestDomains reseller, the captcha will not work on the free hosting.
 
View user's profile Send private message Visit poster's website
Doulos







PostPosted: Wed Dec 02, 2009 8:37 pm Reply with quote

Not a free hosting site. By free I mean I am not paying extra to host this other site.

I have others nuke sites on this same server that captcha is working fine on. I just want to know what files I should look at to see if something got messed up via [ Only registered users can see links on this board! Get registered or login! ] I don't want to re-upload all the files from the RN2.4 distro just to find the few that are causing the problem.
 
bobbyg







PostPosted: Wed Dec 02, 2009 11:56 pm Reply with quote

Did you add any additional modules? I had added osc4nuke to one of mine and got the same error.
 
Doulos







PostPosted: Thu Dec 03, 2009 1:31 pm Reply with quote

Ok, I decided to start over with a fresh install, make sure everything works then replace one set of files at a time from the other website. Hopefully, I will be able to find the offending item(s).
 
montego







PostPosted: Sat Dec 05, 2009 10:02 am Reply with quote

Doulos, that error is usually due to the PHP session settings not being correct, meaning that NO PHP session temporary files can be written (this is usually the problem - either wrong directory path or wrong permissions).
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©