本地使用 Ubuntu 10.4 + Chrome + Apache + PHP 5.3.2 环境测试没有问题,如果你的环境是 Nginx,看看配置是否正确:http://v3.kohana.cn/guide/tutorials.removeindex
另外看下 log 记录。
[ERROR] 新安装alpaca无法注册
我是用git下载的最新代码,按照安装文档顺利安装成功,但是在注册新用户时,表单提交后转到404页面。
git log:
commit 5c990ce52eef13063fd6fc779788998901faf1cf
Author: icyleaf <icyleaf.cn@gmail.com>
Date: Wed Jun 23 19:44:59 2010 +0800
Append group uri into topic link and clean up
大家能帮我看看怎么回事么? 网站地址: http://forkgeek.com
本地使用 Ubuntu 10.4 + Chrome + Apache + PHP 5.3.2 环境测试没有问题,如果你的环境是 Nginx,看看配置是否正确:http://v3.kohana.cn/guide/tutorials.removeindex
另外看下 log 记录。
日志显示:
2010-06-24 11:08:40 --- ERROR: ReflectionException [ -1 ]: Class controller_entry does not exist ~ SYSPATH/classes/kohana/request.php [ 1007 ]
在代码根目录执行
find . -name 'entry.php'
没有任何输出。
编辑 application/bootstrap.php 文件,改成下面看看堆栈跟踪:
$request = Request::instance();
try
{
// Attempt to execute the response
$request->execute();
}
catch(Exception $e)
{
// if ( ! IN_PRODUCTION)
// {
throw $e;
// }
// Log the error
Kohana::$log->add(Kohana::ERROR, Kohana::exception_text($e));
// Request 404 page
$request = Request::factory('errors/404')->execute();
}
改了以后,发现可以注册了。提交注册表单后发现这个:
为防止 SPAM 的攻击,请点击“快速注册”按钮进行注册。
那个“快速注册”按钮在哪儿?
哦,我知道了,我就是通过点击“快速注册”按钮注册的,是不是SPAM误判了啊。。
在Mac OS X 10.6.3 Safari 5/Firefox 3.6.4下面都是同样问题。
请更新代码,在 commit 4efe96bc 已经修复...
同时最新的源码做了一些细节的小变化,注册的切换为监听 form 的 submit 事件,所以不存在上面说的必须点击“快速注册”按钮一说,回头修改下提示 ![]()
BTW, 问题的解决仅仅是把上面的那三行代码注解掉了么...
顺便我一不小心就注册成为了第一个用户(即为管理员)....你删除掉我的记录吧或者替换为你的 email,密码重设下
>>> BTW, 问题的解决仅仅是把上面的那三行代码注解掉了么...
是啊,我也不知道啥原因。。
发表讨论