Opencart的,OC 1.5.1.3,验证码错误 [英] Opencart, OC 1.5.1.3, captcha error
问题描述
1.5.1.3 OC,在验证码图片上没有这些网页不会显示:
OC 1.5.1.3, the Captcha image doesn't show on none of these pages:
- 产品/审查部分
- 与页
- 通过访问这个 http://www.directmall.co .UK /的index.php?路径=信息/联系人/ CAPTCHA (直接链接应该生成图像)
- product / review section
- contact page
- by accessing this http://www.directmall.co.uk/index.php?route=information/contact/captcha (the direct link which should generate the image)
我看不到任何错误(Apache日志/ error.txt文件)。我看不到语言文件内的任何空间 - 事实上我已经重新下载整个EN包只是为了确保..
I can't see any errors (Apache logs / error.txt file). I can't see any spaces within the language files - in fact I've redownloaded the entire EN package just to make sure..
我怀疑一个破碎的依赖(即使我有GD ..必须有别的东西..);完全禁用缓存 - 需要援助
I suspect a broken dependency (even if I have GD.. there must be something else..); disabled entirely caching - need assistance!
在论坛上这样的错误早在2009年,我发现足迹,但它似乎有一个语言的文件的问题,这意味着空格步道均早于正常发送页头 - 但我检查的大多数文件我想参与,我已经清理所有的额外空间 - 没有结果。
Back in 2009 I've found trails of such errors on forums but it seems there was a language-file problem, meaning trails of spaces were sending the page headers earlier than normal - but I've checked most of the files I thought to be involved and I've cleaned all the extra spaces - with no result.
谢谢,
波格丹
Thanks, Bogdan
推荐答案
FYI我有这个同样的问题,这个解决方案(修改到系统\\图书馆\\ captcha.php)的没有的使CAPTCHA图像显示成功和表单通过验证:
FYI I had this same problem and this solution (change to system\library\captcha.php) did make the captcha image display successfully and the form passes validation:
function getCode(){
$out = ob_get_contents();
$out = str_replace(array("\n", "\r", "\t", " "), "", $this->code);
ob_end_clean();
return $out;
}
这篇关于Opencart的,OC 1.5.1.3,验证码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!