Zen Cart Logo
Forums / All Other Contributions/Addons / reCAPTCHA Problems!!!! headers already sent by recaptcha_functions.php

reCAPTCHA Problems!!!! headers already sent by recaptcha_functions.php

Views: 1,961

Results 1 to 4 of 4
31 May 2012, 6:20 AM
#1
reviveit avatar

reviveit

New Zenner

Join Date:
Apr 2011
Posts:
20
Plugin Contributions:
0

reCAPTCHA Problems!!!! headers already sent by recaptcha_functions.php

I have installed reCAPTCHA today .. everything was going fine until I logged out of admin, tried to log back in and get a blank screen, had a look in the admin cache folder for errors .. this is what it shows!!!

PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/*****/public_html/admin/includes/functions/extra_functions/recaptcha_functions.php:128) in /home/*****/public_html/includes/functions/sessions.php on line 113
PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/*****/public_html/admin/includes/functions/extra_functions/recaptcha_functions.php:128) in /home/*****/public_html/includes/functions/sessions.php on line 113
PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/******/public_html/adminp/includes/functions/extra_functions/recaptcha_functions.php:128) in /home/*****/public_html/adminparagon/includes/init_includes/init_templates.php on line 28
PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/*****/public_html/admin/includes/functions/extra_functions/recaptcha_functions.php:128) in /home/*****/public_html/admin/includes/functions/general.php on line 21

I also noticed that the reCAPTCHA link in admin goes nowhere and just goes back to the home page?

The only way i can use admin is to remove these files!

HELPPPPPPPPPPPPPP! PLEASE!

31 Oct 2012, 2:50 PM
#2
akyeame avatar

akyeame

New Zenner

Join Date:
Sep 2011
Posts:
20
Plugin Contributions:
0

Re: reCAPTCHA Problems!!!! headers already sent by recaptcha_functions.php

Remove white spaces from recaptcha_functions.php
or delete the file. The recaptcha still works without it.

30 Mar 2013, 1:02 PM
#3
kavlito avatar

kavlito

New Zenner

Join Date:
Sep 2009
Posts:
40
Plugin Contributions:
0

Re: reCAPTCHA Problems!!!! headers already sent by recaptcha_functions.php

akyeame:

Remove white spaces from recaptcha_functions.php
or delete the file. The recaptcha still works without it.

I have no idea what 'Remove the white spaces' means, but I renamed the file (don't like deleting things) and I now have access to admin. I checked my Contacts and Create New Account pages and Recaptcha is still there.

Thanks.

30 Mar 2013, 1:15 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: reCAPTCHA Problems!!!! headers already sent by recaptcha_functions.php

Removing the white space means that there is a space(s) or blank lines after the closing php tag ?> at the end of the file ...

At the end of:
recaptcha_functions.php

you will see the closing php tag ?> ... as that is not needed, you can remove it and that should correct the problem that you are having with the file ...

Usually, if that closing tag is left in, it should be the last thing in the file and if you click on that line and move your mouse to the right, you should have no space(s) or blank line(s) next to or below that tag ... if you do, that will cause errors ...

The solution is to either delete the space(s) and/or blank line(s) or, to delete the closing tag all together to eliminate the error ... then, save the file and reload it to the server ...