Anti Spam

zerocool1212 15 Jul, 2009
Hi from Switzerland !

First of all thank a lot for all the work you've done on ChronoEngine.
I've an issue with the antispam validation on a form for my website, antispam image shows on local but not on the distant server. I've already checked components/com_chronocontact/chrono_verification.php permission, even with an 777 doesn't work. Actually the antispam work, the access is restricted, but I cannot see the image neither in administrator interface nor in the public interface.
I added {imageverification} to my form wich show the input field but not the image.
One difference between my local and server config is the GD Version as shown below
I tried everything I thought about, any help with this issue would be greatly appreciated !

I use chronocontact 3.1 RC4
Olivier

localhost
GD Version bundled (2.0.34 compatible)
FreeType Support Yes
PNG Support Yes

Server side

GD Version 2.0 or higher
FreeType Support Yes
PNG Support Yes
GreyHead 15 Jul, 2009
Hi Zerocool1212,

This is likely to be a server setuo issue, mod_security in particular can block the creation of the image. Ther are some tests that you can try in one of the FAQs but probably checking the server logs and talking to your ISP will be the best route.

Bob
zerocool1212 15 Jul, 2009
Hi Bob,

Thank you for your answer !
I went through the FAQ and changed my header in chrono_verification.php

The results is as following :

[code]
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/libraries/joomla/session/session.php on line 426

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 26

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 27

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 101

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 104

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 105

Warning: Cannot modify header information - headers already sent by (output started at /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php:1) in /vhosts/genevaexperts/components/com_chronocontact/chrono_verification.php on line 106
�PNG  ��� IHDR���x���(������r���IDATh��ݒ� �qgʼ�Ex���3�$�چ�����X�m������B D D D D D D D D D D D įY[JA�{��lrM��n_�hD4�m+}�}���E�B��r�9��i��B03�ZG#[Y83��!�V,�ck gw����g4��ĕ��~-��� ����j]Fq��˲�u��=�8��[ו���~ԩ˰�s��� �;��AZX����}�Ӭ��P@ �ͪ2��]��S�Z��c��O�3��az�Tv�9|V!,G��uF�^YXSR��\��� o���ߖ�?��>�F���rmZ�VM�ӯ����NzZZF7���G �y�*�rFl�9�z��lLYC{�ڴC��wd��7��4� y��ɓ�{�w����I�(����0'�����2y��g� >/�?��� R� R� R� R� R� R� R� R� R� ���0z(N�[e����IEND�B`�[/code]

I can't figure any solution, I went throuh phpinfo() config and didn't saw any mod_security
GreyHead 15 Jul, 2009
Hi Zerocool1212,

Not sure what is going on there. I haven't seen those errors before - but the end bit does look as though it might be an image. Try setting PHP error reporting to None and see if that does the trick.

Bob

PS mod_security is an Apache feature see here
nml375 15 Jul, 2009
Hi Zerocool1212,
Also make sure there is no odd characters in front of the <? in the beginning of the file. There are a few editors out there that likes to add "junk" there, which will break session storage and yield those warnings.

/Fredrik
zerocool1212 16 Jul, 2009
Hi Frederik & Bob,

Thank you for your answers, I'll check my files with these info and let you know.

Olivier
GreyHead 16 Jul, 2009
Hi Olivier,

Fredrik's answer reminds me that one version of ChronoForms (I don't remember exactly which one) had some erroneous BCD [bytecode direction] three byte blocks at the start of some of the files. That would fit with the error you are seeing. If you open chrono_verification.php in a text editor that can see them there are three 'odd' characters at the start of the file. Delete the characters and re-save the file.

These were removed in later releases but I see that you are on RC4 (current release is RC5.3).

Bob
zerocool1212 28 Jul, 2009
Hi everyone,
Thank you very much for your help, I finally uncommented the lines 14, 15

session_name(md5('chrono'));
session_start();

of chrono_verification.php and now I can see the captcha picture.

Thanks again for your help !
This topic is locked and no more replies can be posted.