Last edited by Woodymon; 21 Mar 2007 at 10:18 PM.
Yes! The changes above to /includes/classes/captcha.php
solved my problem of the characters displaying.
So issues on PHP 4.44. shop are solved.
But still no image displays on PHP 5.1.6 shop.
My host says problems are with the script not their service (of course they would say that). If I can point them in the right direction they will help but I'm clueless.
Last edited by Woodymon; 21 Mar 2007 at 10:38 PM.
Does this indicate a server security setting amiss or any other ideas?Code:File does not exist: /home/account/public_html/403.shtml client denied by server configuration: /home/account/public_html/shop/includes/templates/my_template/images/index.php
I asked host to look in their mod_security rules but that came back negative.
Anyone else have issues with this script on PHP 5.1x ??
Just checking before I fire my web host
Is this index.php suppose to be created (and destroyed) on the fly each time the captcha image is generate?. Or is index.php only created in memory, not ever written to disk?
My web host says that file needs loaded into the images directory, so that is my problem. But the mod does not come with index.php file.
Is there an ez method availabe to adapt the mod to write the file to disk (as a png, gif or jpg) just to ensure the image is created.
My host asked if there was a "debug" version of the script available.
The line numbers above refer to the following header code in function showCaptchaImg() within /includes/classes/captcha.phpCode: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 146This is for the shop on PHP 4.4.4.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));
I'm suspecting this is related to error I reported in shop running PHP 5.16
Recommends anyone? Thanks.
OK. But if I did not make the recommended edits the mod does not work for me.
So it is a Catch-22.
As babygekko recommended I commented out in /classes/captcha_img.php
1. the if (function_exists('glob') structure
2. ob_start() and ob_end_clean()
Is there a suggested method to make the mod work WITHOUT the error log entries?
I will provide access credentials to view if you wish to check out.