Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
EDC:
Download extensions for Elxis CMS
.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Components
»
Captcha-Problem with Contact Form
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: Captcha-Problem with Contact Form (Read 10619 times)
kangoo
Newbie
Posts: 10
Captcha-Problem with Contact Form
«
on:
February 07, 2010, 19:44:31 »
I'm using Elxis 2009.1.
With the contact form captcha does'nt work, only a typical display of a missing grafic and the symbol of a loadspeaker for the "word spelling option" is shown.
I checked: GD is enabled at the server and $mosConfig_captcha is set to 1.
There are no problems testing Elxis offline with xampp. Everything works fine.
Any help is highly appreciated.
Regards
kangoo
Logged
Ivan Trebješanin
Elxis Team
Hero Member
Posts: 1663
Re: Captcha-Problem with Contact Form
«
Reply #1 on:
February 07, 2010, 21:31:50 »
I believe you have issue with permissions, nothing more.
Logged
I've got a snap in my finger...
Got rhythm in my walk...
kangoo
Newbie
Posts: 10
Re: Captcha-Problem with Contact Form
«
Reply #2 on:
February 09, 2010, 18:45:44 »
Hallo Ivan,
thanks for your reply, but please give me more informations what do you mean with permissions. I have no idea.
Regards
kangoo
Logged
Ivan Trebješanin
Elxis Team
Hero Member
Posts: 1663
Re: Captcha-Problem with Contact Form
«
Reply #3 on:
February 10, 2010, 01:18:28 »
See if /includes/captcha/captcha.img.php is readable. Also, use UPdiag tool to check if all the files are intact.
Logged
I've got a snap in my finger...
Got rhythm in my walk...
kangoo
Newbie
Posts: 10
Re: Captcha-Problem with Contact Form
«
Reply #4 on:
February 10, 2010, 12:32:52 »
Hallo Ivan,
I checked what you suggested. Result negativ. In addition I transfered all chaptcha-files and contact-files to the server again. Result negativ, too.
Do you have any idea what to check next?
Regards
kangoo
Logged
Ivan Trebješanin
Elxis Team
Hero Member
Posts: 1663
Re: Captcha-Problem with Contact Form
«
Reply #5 on:
February 10, 2010, 20:26:01 »
Do you have some kind of image leeching protection, eg. in .htccess?
Logged
I've got a snap in my finger...
Got rhythm in my walk...
kangoo
Newbie
Posts: 10
Re: Captcha-Problem with Contact Form
«
Reply #6 on:
February 11, 2010, 12:56:12 »
Hello Ivan,
I renamed the .htaccess-file, but it doesn't help.
Regards
kangoo
Logged
Ivan Trebješanin
Elxis Team
Hero Member
Posts: 1663
Re: Captcha-Problem with Contact Form
«
Reply #7 on:
February 11, 2010, 13:11:36 »
You say that everything is working on localhost. If issues are appearing only on remote server, then you should examine what is different there. Give us the link, so we can see what's going on.
Logged
I've got a snap in my finger...
Got rhythm in my walk...
Cristian Herrera
Newbie
Posts: 5
Re: Captcha-Problem with Contact Form
«
Reply #8 on:
February 11, 2010, 13:14:43 »
You may miss some dependencies to libgd.
I think libgd is dependant on some x11 libraries.
Do you host the site yourself do you have access to the error logs?
Logged
ks-net
Elxis Community
Hero Member
Posts: 2072
Kostas Stathopoulos
Re: Captcha-Problem with Contact Form
«
Reply #9 on:
February 11, 2010, 13:39:06 »
Quote
I think libgd is dependant on some x11 libraries.
you just want php compiled with gd enabled
check first .. add this to a file>>save as file.php and call it to your server
<?php
var_dump(gd_info());
?>
if you have gd then check your server error logs
Logged
ks-net.gr
kangoo
Newbie
Posts: 10
Re: Captcha-Problem with Contact Form
«
Reply #10 on:
February 11, 2010, 14:55:55 »
Hello Ivan,
see your private message, please.
Regards
Kangoo
Logged
kangoo
Newbie
Posts: 10
Re: Captcha-Problem with Contact Form
«
Reply #11 on:
February 11, 2010, 15:13:40 »
@ ks-net
Hello Kostas,
that is what I received via file.php:
array(12) { ["GD Version"]=> string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=> bool(true)
["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(true) ["GIF Read Support"]=> bool(true)
["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true)
["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(true) ["XBM Support"]=> bool(true)
["JIS-mapped Japanese Font Support"]=> bool(false) }
But I have no idea how to interpret this, it is looking ok for me.
Regards
kangoo
Logged
ks-net
Elxis Community
Hero Member
Posts: 2072
Kostas Stathopoulos
Re: Captcha-Problem with Contact Form
«
Reply #12 on:
February 11, 2010, 17:26:22 »
elxis Captcha uses png(as default) which is enabled in your php configuration
you need also the libPNG to be enabled .... check => <?php phpinfo(); ?>
*******
***** includes/captcha/captcha.class.php ****
make sure you have the fonts in your captcha folder and try to change the image type to gif for example
below at the very top of includes/captcha/captcha.class.php the configuration of captcha(yes people can config here)
public $length = 6;
public $font = '
fonts/Vera.ttf
';
public $size = 13;
public $angle = 10;
public $type = '
png'
;
public $height = 34;
public $width = 70;
public $grid = 7;
public $string = '';
public $captchaType = 'capchars'; //chars, digits, mixed, capchars
public $dotsCount = 0;
public $bgColorRed = 250;
public $bgColorGreen = 250;
public $bgColorBlue = 250;
public $drawGrid = false;
public $randomGridColor = false;
public $randomLetterColor = false;
public $fonts_folder = 'fonts/';
public $font_size_min = 12;
public $font_size_max = 14;
public $font_angle_min = 0;
public $font_angle_max = 10;
if no luck then you must check error log at your server...
«
Last Edit: February 11, 2010, 17:29:25 by ks-net
»
Logged
ks-net.gr
kangoo
Newbie
Posts: 10
Re: Captcha-Problem with Contact Form
«
Reply #13 on:
February 12, 2010, 13:09:48 »
@ ks-net
Hello Kostas
I checked everything what you proposed:
png support is enabled.
The file captcha.class.php is not modified and identical with your example.
I have no access to the server error log.
Hopefully you have more suggestions.
Regards
kangoo
Logged
ks-net
Elxis Community
Hero Member
Posts: 2072
Kostas Stathopoulos
Re: Captcha-Problem with Contact Form
«
Reply #14 on:
February 12, 2010, 14:36:36 »
try this:
public $type = 'gif';
maybe libPNG is not installed or something... so try with gif
1- as people said... first we check permissions
2- then see if our server configurations is correct and if we need to change our scripts to match with server's config etc...
3- then check error logs to see what happen
4- last step is to give access to someone else to check deeper or we ask your hoster
****
there is no other suggestions...
***
Logged
ks-net.gr
Print
Pages: [
1
]
2
« previous
next »
Elxis CMS Forum
»
Extensions
»
Components
»
Captcha-Problem with Contact Form