Nevermind nevermind
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.
Looks good!
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.
Woody
Last edited by Woodymon; 21 Mar 2007 at 10:38 PM.
I forgot to include error log entry:
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.
Woody
Anyone else have issues with this script on PHP 5.1x ??
Just checking before I fire my web host
Woody
Host says they observe no file index.php created
in /home/account/public_html/shop/includes/templates/my_template/images/
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.
Woody
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.
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.
Woody
OK. So you're stating that by implementing the edits as I did, that is the casue of the error log entries.
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.
Woody
Bookmarks