Elxis CMS Forum
Extensions => Components => Topic started by: kangoo 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
-
I believe you have issue with permissions, nothing more.
-
Hallo Ivan,
thanks for your reply, but please give me more informations what do you mean with permissions. I have no idea.
Regards
kangoo
-
See if /includes/captcha/captcha.img.php is readable. Also, use UPdiag tool to check if all the files are intact.
-
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
-
Do you have some kind of image leeching protection, eg. in .htccess?
-
Hello Ivan,
I renamed the .htaccess-file, but it doesn't help.
Regards
kangoo
-
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.
-
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?
-
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
-
Hello Ivan,
see your private message, please.
Regards
Kangoo
-
@ 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
-
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...
-
@ 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
-
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...
***
-
@ks-net
Hello Kostas,
I tried gif as test following your reply #12. but nothing changed.
If you have any more ideas, you are very welcome.
Thank you for investigate your time.
Regards
kangoo
-
Hello Kostas, hello Ivan,
I installed my complete home page again. Captcha is working now - but I don't know why.
Anyway, I am happy with this.
Please allow one more question:
When you address the home page with the page switched offline, there pops up a screen with a offline message. On top of this screen there is a blue banner. The german message inside this banner is erroneous. I would like to correkt it, but where do I find it.
Regards
kangoo
-
these messages is in elxis root .. offline.php
and a second message is in global config in elxis administrator
-
Hello Kostats,
thank's you are so right - I was just blind.
Regards
kangoo