| Author |
Message |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Fri Nov 13, 2009 6:35 pm |
|
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.
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. |
|
|
|
 |
unicornio Involved


Joined: Aug 13, 2009 Posts: 432
|
Posted:
Fri Nov 13, 2009 6:59 pm |
|
I just did a little search and I found this
|
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Fri Nov 13, 2009 7:47 pm |
|
|
|
 |
jakec Site Admin

Joined: Feb 06, 2006 Posts: 3038 Location: United Kingdom
|
Posted:
Sat Nov 14, 2009 6:12 am |
|
That is not the right captcha for RN2.4. Is this an upgrade? |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Sat Nov 14, 2009 6:36 pm |
|
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 Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Sat Nov 14, 2009 7:44 pm |
|
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....
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: 9136 Location: Arizona
|
Posted:
Sun Nov 15, 2009 12:53 pm |
|
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 . Something is not right with your set up and not sure if the ini_set issue is the cause... yet. |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Mon Nov 30, 2009 5:24 pm |
|
montego, is this what you are talking about?
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 Site Admin

Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
|
Posted:
Wed Dec 02, 2009 6:42 am |
|
You need to check with your host about making sure GD is compiled to include FreeType 2 (I believe is the minimum) support. |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Wed Dec 02, 2009 1:54 pm |
|
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: 1191
|
Posted:
Wed Dec 02, 2009 3:48 pm |
|
| 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? |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Wed Dec 02, 2009 6:57 pm |
|
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: 16987 Location: Kansas
|
Posted:
Wed Dec 02, 2009 7:18 pm |
|
Doulos,
For a very few $ I can host your site  |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Wed Dec 02, 2009 8:01 pm |
|
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 .
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


Joined: Dec 05, 2007 Posts: 201 Location: Tampa, Florida
|
Posted:
Wed Dec 02, 2009 8:12 pm |
|
If you are getting free hosting via a GoDaddy or WildWestDomains reseller, the captcha will not work on the free hosting. |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Wed Dec 02, 2009 8:37 pm |
|
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 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 Worker


Joined: Dec 05, 2007 Posts: 201 Location: Tampa, Florida
|
Posted:
Wed Dec 02, 2009 11:56 pm |
|
Did you add any additional modules? I had added osc4nuke to one of mine and got the same error. |
|
|
|
 |
Doulos Life Cycles Becoming CPU Cycles

Joined: Jun 06, 2005 Posts: 545
|
Posted:
Thu Dec 03, 2009 1:31 pm |
|
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 Site Admin

Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
|
Posted:
Sat Dec 05, 2009 10:02 am |
|
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). |
|
|
|
 |
|
|
|
|