1. Use of function glob can be really problematic. It's possible to refuse it.
2. Other question, IMHO it's a question to babygekko.
1. Use of function glob can be really problematic. It's possible to refuse it.
2. Other question, IMHO it's a question to babygekko.
Looking at http://www.php.net/ob_start
Note the statements:
" Some web servers (e.g. Apache) change the working directory of a script when calling the callback function."
- and -
"the solution provided by PHP, does not function as intended when running PHP as a CGI (on CGI mode (CGI-BUILD (--enable-cgi) and/or CLI)"
And then later, code recommends that "works on both the non-CGI and the CGI PHP processor types".
Is this possibly relevant to the issues I have reported?
Woody
Hi. I just installed this on 1.3.7 (upgraded from 1.3.6). When I went to my Log In page, I got:
Fatal error: Cannot redeclare class captcha in /home/nakayama/public_html/includes/classes/captcha.php on line 12
I used to have the "other" mod installed, and I uninstalled it to the best of my knowledge (wasn't sure how to do it in MySQL, so I deleted the table and something else related to the mod...)
Thanks,
Katie
I should mention that I'm using a split login page for Paypal Express Checkout.
I followed your suggestions and kept the glob function commented out, and then uncommented:
ob_start();
ob_end_clean();
And everything is cool on the PHP 4.4.4 shop
So now on to solving my issue on the PHP 5.1.6 shop, which will become the new home for the 4.4.4 shop, that is whenver I can get this captcha issue resolved.
Thanks again for the assist!
Woody
KTNaturals!
I could not reproduce this error. Check once more uninstalling "other" mod.
v 2.5 23.03.2007 13:11
1. Remove "glob" function;
2. Add error messages constants;
3. Add session id to captcha_img.php href link;
4. Use direct output (no output buffer used);
5. The functions generateCaptcha(), createCaptchaImg() and showCaptchaImg() are incorporated in one function generateCaptcha();
I discovered the above error was unrelated to CAPTCHA mod install (I was inadvertently calling an image in tpl_header). So no more errors in the error log.
As a refresher on my issue, the captcha imaged won't display on my 5.1.6 shop but displays on shop running PHP 4.4.4.
The same goes for displaying captcha image via _test_captcha.php or on the create-account or the contact_us pages.
In IE I see the broken image icon and ALT tag "Enable this picture" and the outline of where the captcha image should display. Firefox shows the same for a split second when clicking the redraw button.
The below access log entry created when accessing the shop's contact_us page looks normal...
[23/Mar/2007:11:59:49] "GET /shop/index.php?main_page=contact_us HTTP/1.1" 200 4755 "http://www.domain.com/shop/index.php?main_page=index"
When I click the captcha redraw button on the contact_us page I observe the following entries in the access log:
[23/Mar/2007:11:59:52] "GET /shop/captcha_img.php?0.836195001174669189 HTTP/1.1" 200 7682 "-"
And when I click the redraw button again:
[23/Mar/2007:12:00:02] "GET /shop/captcha_img.php?0.4578382568536792 HTTP/1.1" 200 9592 "-" [/quote]
So it appears the mod is functioning fine, other than displaying the captcha image.
If it is relevant below are gd related entries in phpinfo():
The above is same on the server running PHP 4.4.4. where the captcha image correctly displays.gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
I'm looking for a needle in a haystack here. Could it be something in the Apache config/environment which might be the issue? Any other ideas why the CAPTCHA image will not display on the PHP 5.1.6 shop? If there is any other info I can provide let me know. And thanks for your recommends.
NOTE: The above was with Andrew's v.3.4 mod. I will install 3.5 and report back.
Woody
v.3.5 works fine on php 4.4.4 shop. But PHP 5.1.6 shop did get any better :sad:
Woody
Hi, Andrew.
I verified that the other mod is uninstalled. As for SQL, I'm not really sure since I don't know it at all. What I did was do "DROP TABLE IF EXISTS anti_robotreg;", and went into the DB and deleted the CAPTCHA Validation from configuration_group (or something like that). I attached the install SQL file for reference. Could you tell me what else I need to do?
I'm also having a display problem on both my live site and my test site on the Contact Us page. The center column extends all the way to the right.
http://www.ktnaturals.com/catalog2/i...age=contact_us
Any help would be appreciated. Thanks!
Last edited by KTNaturals; 23 Mar 2007 at 08:21 PM.
Bookmarks