Totally Zenned
- Join Date:
- Sep 2004
- Posts:
- 2,309
- Plugin Contributions:
- 1
Captcha using TTF & GD
Woodymon:
v.3.5 works fine on php 4.4.4 shop. But PHP 5.1.6 shop did get any better. Oops! I meant v2.5.
Views: 147,342
Totally Zenned
Woodymon:
v.3.5 works fine on php 4.4.4 shop. But PHP 5.1.6 shop did get any better. Oops! I meant v2.5.
Zen Follower
installed the mod, however there is no image showing
there is a "re-draw" button but no image:down:
Zen Follower
OK. Solved the "Cannot redeclare class..." problem. I had to delete some old files that had file names with *.php.bak.
Still having a display problem with Contact Us page...
Totally Zenned
KTNaturals:
Still having a display problem with Contact Us page...From the look of your source it appears you may have removed a chunk out of the \includes\templates\YOUR_TEMPLATE\templates\tpl_contact_us_default.php that comes with the mod. Try reuploading that file.
Woody
Deceased
Woody!
Enter direct address in your browser - http://<your_domain>/captcha_img.php.
What you see? And what you see in html source code?
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Deceased
v 2.5a 24.03.2007 16:00
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Totally Zenned
a_berezin:
Woody!
Enter direct address in your browser - http://<your_domain>/captcha_img.php.
What you see? And what you see in html source code?
Firefox says:
The image “http://www.domain.com/shop/captcha_img.php” cannot be displayed, because it contains errors.
Totally Zenned
I tried v.2.5a:
If I view the empty browser page's "generated source" (with Firefox web developer) all I see is:
<html><head></head></html>
Woody
Totally Zenned
Here is what my host reported back regarding the inability to display the captcha image when running the script on the host with PHP5:
I have checked the php.ini of both servers, and while there are significant differences between php4 and php5, the same set of functions are restricted on either server. So the only significant difference between the two hosts is the version of php.
Then he suggested moving the shop back to a host running PHP4. That's not going to happen.
Any others out there running this captcha script (even the new 2.5a debug script) on PHP5? If so which versions?
Woody
Deceased
Woodymon:
Firefox says:
The image “http://www.domain.com/shop/captcha_img.php” cannot be displayed, because it contains errors.
a_berezin:
And what you see in html source code?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Totally Zenned
a_berezin:
And what you see in html source code? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html><body><img alt="The image “http://www.domain.com/shop/captcha_img.php” cannot be displayed, because it contains errors." src="http://www.domain.com/shop/captcha_img.php"></body></html>
Deceased
Sorry, Woody. I can't help you.
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Totally Zenned
Anyone else have this mod working on PHP 5.x?
Anyone else having troubles running this mod on PHP 5.x?
Woody
Zen Follower
Alik:
installed the mod, however there is no image showing
there is a "re-draw" button but no image:down:
i think i found where the problem is:
SEO Urls are cusing the file to be renamed:
captcha_img**.php.html**?zenid=1e4a50...
it's adding the extra .html after the file ext. i'll try to find a way to remove it :lol:
Zen Follower
Woodymon:
From the look of your source it appears you may have removed a chunk out of the \includes\templates\YOUR_TEMPLATE\templates\tpl_contact_us_default.php that comes with the mod. Try reuploading that file.
Thanks, Woody. I looked and looked and looked, and I couldn't figure it out. So I just put the whole CAPTCHA thing in <fieldset>, and it was happy.
Deceased
Woody!
I add some debug settings to captcha_debug.php. Downlod and run it.
It's last chance.
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Totally Zenned
a_berezin:
Woody!
I add some debug settings to captcha_debug.php. Downlod and run it.
It's last chance.
Andrew,
Thanks! Debug output displayed in browser! Will PM you output.
Woody
Totally Zenned
Andrew-
Sent you a PM containing the new debug output and a few notes.
And after sending the PM I removed Session Watcher v.1.01 mod. But captcha image still does not display.
If you find anything peculiar in the captcha debug report please let me know.
Thanks again for your assist in solving this puzzle.
Woody
Deceased
Woody!
I see your debug output. It's fine! :thumbsup: All works normal, image generated.
NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Totally Zenned
a_berezin:
Woody!
I see your debug output. It's fine! :thumbsup: All works normal, image generated.
The generated image does not display. That is the crux issue. Sorry if I haven't been very clear on that.
Possibly something in the header of the image or the image encoding, or issue with the method the server is delivering script output the client? Maybe http header issue?
Host just sent me a few notes on differences in the debug script output when run on the host with PHP4 vs PHP5. Not sure if the points are relevant or not. But I will gather those details and post shortly.
Woody
Tell staff why this post should be reviewed.