调用未定义的方法sfApplyApplyForm :: isCaptchaEnabled
I’m getting a funny error after I deploy a fully working symfony project to my web host (hostgator). Everything works fine on my localhost.
Here’s the error:
500 | Internal Server Error | sfException Call to undefined method sfApplyApplyForm::isCaptchaEnabled.
Here’s what I’m using:
- Symfony 1.4
- Doctrine 2.0
- sfForkedDoctrineApplyPlugin - for registering new users with:
- sfDoctrineGuardPlugin - for authentication
I get the error when I click the “Register” link.
Obviously, the form is Captcha enabled. I’ve tried turning it off in config/app settings with no change in error. I’ve also confirmed that my public and private keys are correct and registered... I’ve even updated them with no change in error msg.
A search on Google brings up nothing helpful.
Any ideas about where to begin troubleshooting?
我将完全正常运行的symfony项目部署到我的网站主机(hostgator)后,我收到了一个有趣的错误。 在我的localhost上一切正常。 p>
这是错误: p>
500 | 内部服务器错误| sfException 调用未定义的方法sfApplyApplyForm :: isCaptchaEnabled。 p>
以下是我正在使用的内容: p>
- Symfony 1.4 li >
- Doctrine 2.0 li>
- sfForkedDoctrineApplyPlugin - 用于 注册新用户: li>
- sfDoctrineGuardPlugin - 用于
身份验证 li>
ul>
单击“注册”链接时出现错误。 p>
显然,表单已启用Captcha。 我尝试在配置/应用程序设置中关闭它而不会改变错误。 我还确认我的公钥和私钥是正确的并且已经注册了......我甚至更新了它们,没有改变错误信息。 p>
在Google上搜索没有任何帮助。 p>
有关从何处开始排除故障的任何想法? p> div>
To correct this problem I just copied the isCaptiaEnabled() method from the plugin to the model class where I embedded the plugin form. I believe I had to also copy a couple of other methods over as well. But as soon as I did that, the errors never came back.