
Originally Posted by
Woodymon
Yes! The changes above to /includes/classes/captcha.php
solved my problem of the characters displaying.
Looks good! So issues on PHP 4.44. shop are solved.
I jumped to conclusions. After making the edits recommended the CAPTCHA module is working. But seven new errors showing up in error log each time.
Code:
error PHP Warning: Cannot modify header information - headers already sent by (output started at /home/account/public_html/shop/includes/classes/captcha.php:276)
in /home/account/public_html/shop/includes/classes/captcha.php on line 152
in /home/account/public_html/shop/includes/classes/captcha.php on line 151
in /home/account/public_html/shop/includes/classes/captcha.php on line 150
in /home/account/public_html/shop/includes/classes/captcha.php on line 149
in /home/account/public_html/shop/includes/classes/captcha.php on line 148
in /home/account/public_html/shop/includes/classes/captcha.php on line 147
in /home/account/public_html/shop/includes/classes/captcha.php on line 146
The line numbers above refer to the following header code in function showCaptchaImg() within /includes/classes/captcha.php
Code:
header('HTTP/1.0 200 OK');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Expires: Thu, 19 Nov 1981 08:52:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Type: image/' . $this->img_type);
header('Content-Length: ' . strlen($this->img));
This is for the shop on PHP 4.4.4.
I'm suspecting this is related to error I reported in shop running PHP 5.16
Recommends anyone? Thanks.
Woody