Здравствуйте. Установил N+. Захожу на 10.0.0.1/cgi-bin/stat.pl, могу всё менять добавлять клиентов, но как только хочу создать пользователя выскакивает Temporary error
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(36) Db.pm::line(144) Db.pm::sql(113) Db.pm::connect(95)]
Connecting to DBI:mysql:database=nodeny;host=localhost;port=3306;mysql_connect_timeout=5 : 0.01063 sec
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(36) Db.pm::line(144) Db.pm::sql(134) Db.pm::sql(321)]
SELECT *, UNIX_TIMESTAMP() AS t FROM config ORDER BY time DESC LIMIT 1
Строк: 1. Время выполнения sql: 0.0002 сек
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(175)]
GET data: _unikey=F3XCp1deH0JKd1QYQsFR/A
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(210)]
_unikey = 'F3XCp1deH0JKd1QYQsFR/A'
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(224)]
Текущие cookies:
new_admin = '9'
noses = '1nVy/8w3NKVKHQiARXqziw'
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(244) Db.pm::line(144) Db.pm::sql(134) Db.pm::sql(321)]
SELECT * FROM websessions s LEFT JOIN admin a ON (s.uid=a.id AND s.role='admin') WHERE BINARY ses='1nVy/8w3NKVKHQiARXqziw' AND uid>0 LIMIT 1
Строк: 1. Время выполнения sql: 0.0002 сек
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(262)]
Сессия `1nVy/8w3NKVKHQiARXqziw` существует, uid: 8, role: admin
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(284) Db.pm::do(158) Db.pm::sql(134) Db.pm::sql(321)]
UPDATE websessions SET expire=UNIX_TIMESTAMP()+'7200' WHERE BINARY ses='1nVy/8w3NKVKHQiARXqziw' LIMIT 1
Строк: 1. Время выполнения sql: 0.0001 сек
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(291) Db.pm::line(144) Db.pm::sql(134) Db.pm::sql(321)]
SELECT * FROM webses_data WHERE BINARY unikey='F3XCp1deH0JKd1QYQsFR/A' LIMIT 1
Строк: 1. Время выполнения sql: 0.0001 сек
22.05.2013 22:23:08 [(eval 8)::BEGIN(2) calls.pm(308)]
Данные по unikey `F3XCp1deH0JKd1QYQsFR/A`:
{
'-input' => {
'aid' => '9',
'a' => 'admin',
'act' => 'edit'
},
'-made' => {
'msg' => 'Создана административная учетная запись',
'created' => 1369250588,
'error' => undef
}
};
22.05.2013 22:23:08 [stat.pl(167) calls.pm::Require_web_mod(1100) calls.pm::Require_mod(1091)]
require /usr/local/nodeny/web/start_admin.pl
22.05.2013 22:23:08 [stat.pl(167) calls.pm::Require_web_mod(1100) calls.pm::Require_mod(1093) calls.pm(1093) start_admin.pl(27) Db.pm::line(144) Db.pm::sql(134) Db.pm::sql(321)]
SELECT * FROM admin WHERE id='9'
Строк: 1. Время выполнения sql: 0.0001 сек
22.05.2013 22:23:08 [stat.pl(167) calls.pm::Require_web_mod(1100) calls.pm::Require_mod(1093) calls.pm(1093) start_admin.pl(56) calls.pm::Error_(533) calls.pm::Error(528) calls.pm::Exit(427) start_admin.pl::_show_top_block(75) calls.pm::tmpl(441) tmpl.pm::render(149)]
$T{27} = '<style type=\'text/css\'>
<!--
#adm_top {
background-color: #ffffff;
width: 100%;
}
#avatar_container {
text-align: center;
}
#adm_top_title_line {
padding: 0;
}
#adm_top_title {
float: left;
font-size: 125%;
font-weight: normal;
color: #000000;
padding: 4px;
}
#adm_top_info_line {
padding: 4pt 0 6pt 0;
background-color: #404040;
border-style: solid;
border-width: 1px;
border-color: #c0d0e0 #ffffff #c0d0e0 #ffffff;
white-space: nowrap;
}
#adm_top_info_line a {
display: inline-block;
font-style: normal;
font-size: 125%;
padding: 2pt 0pt 1pt 0pt;
margin: 1pt 6pt;
text-decoration: none;
color: #ffffff;
cursor: pointer;
}
#adm_top_info_line a:hover {
color: #b0c0d0;
}
#adm_top_urls {
float: left;
}
#adm_top_center {
float: left;
padding: 4pt;
}
#add_top_info {
float: right;
color: #ffffff;
padding: 4pt;
}
#adm_top_ed {
float: right;
font-size: 100%;
padding: 1px 8px;
}
#adm_top_ed a {
display: inline-block;
padding: 2pt 4pt 3pt 4pt;
border: 1px solid #ffffff;
text-decoration: none;
color: #000000;
text-shadow: #eeeeee 0px 1px 0px;
margin-right: 1px;
}
#adm_top_ed a.active,
#adm_top_ed a:hover {
font-weight: bold;
}
#adm_top_search {
margin-left: 3pt;
}
.adm_top_line {
background-color: #e4e9f2;
border-style: solid;
border-width: 1px;
border-color: #ffffff transparent #d0d5dd transparent;
margin: 0px;
height: 4px;
}
-->
</style>
<table id=\'adm_top\'>
<tr>
<td style=\'width:1%\' rowspan=\'2\' id=\'avatar_container\'>
<a href=\'?a=users\'><img src=\'';
$T{28} = '/';
$T{29} = '\'></a>
</td>
<td id=\'adm_top_title_line\'>
<div id=\'adm_top_title\'>NoDeny. ';
$T{30} = '</div>
<div id=\'adm_top_ed\'>';
$T{31} = '</div>
<div style=\'clear:both\'></div>
</td>
</tr><tr>
<td id=\'adm_top_info_line\'>
<div id=\'adm_top_urls\'>
<span id=\'adm_top_search\'>
<select size="1" name="m_uname">
<option value="0">начинается с</option>
<option value="1">имеет фрагмент</option>
<option value="2">=</option>
<option value="4">></option>
<option value="5"><</option>
</select><input
type=\'text\'>
</span>
<!--
#<HOOK>top_menu_start
-->
<a href=\'?a=main\'>';
$T{32} = '</a>
<a href=\'?a=users\'>Клиенты</a>
';
$T{33} = '<a href=\'?a=pay_log\'>Платежи</a>';
$T{34} = '
';
$T{35} = '<a href=\'?a=traf_log\'>Трафик</a>';
$T{36} = '
<!--
#<HOOK>top_menu_end
-->
';
$T{37} = '
<a href=\'?a=logout\'>Выход</a>
</div>
<div id=\'adm_top_center\'>';
$T{38} = '</div>
<div id=\'add_top_info\'>';
$T{39} = '</div>
<div style=\'clear:both\'></div>
';
$T{40} = '<div class=\'adm_top_made_msg ';
$T{41} = '\'>';
$T{42} = '</div>';
$T{43} = '
</td>
</tr>
</table>
<div class=\'adm_top_line\'></div>
<script type=\'text/javascript\'>
(function($)
{
// Перемещение кнопки \'Debug\' в #avatar_container
$(\'#debug_href\').
removeClass(\'debug_href\').
appendTo(\'#avatar_container\');
$(\'#debug\').click( function(e){
if( $(e.target).is(\'#debug\') ) $(\'#debug\').toggle();
});
var top_search_str = null;
var top_search_mode = 0;
var top_search_lock = 0;
setInterval( function()
{
if( top_search_str == null ) return;
if( top_search_lock )
{
top_search_lock++;
if( top_search_lock < 10 ) return;
}
top_search_lock = 1;
nody.ajax({ a: \'users\', global: top_search_str, mode: top_search_mode });
top_search_str = null;
}, 100);
var select_mode = $(\'#adm_top_search select\');
$(\'#adm_top_search input\')
.keyup( function(event){
var input = $(this);
var key = event.keyCode;
// F1 or ESC
if( key == 112 || key == 27 )
{
nody.click_pos = { x: input.offset().left, y: input.offset().top };
nody.ajax({ a: \'ajSearchMenu\' });
return;
}
// F2
if( key == 113 )
{
nody.ajax({ a: \'ajSearchTr\', str: input.val() });
return;
}
if( key == 40 )
{
var nextVal = $(\'#adm_top_search select option:selected\').next(\'option\').val();
select_mode.val(nextVal);
}
top_search_str = $(this).val();
top_search_mode = select_mode.val();
})
.bind(\'contextmenu\', function(event){
nody.click_pos = { x: event.pageX, y: event.pageY };
nody.ajax({ a: \'ajSearchMenu\' });
event.preventDefault();
});
})(jQuery);
</script>';
$o .= $T{27}.$cfg::img_url.$T{28}.$T{pic}.$T{29}.$T{title}.$T{30}.$T{urls_ed}.$T{31}.$T{login_chain}.$T{32}.'';
if( $T{admin}->chk_privil(30) ) {
$o .= $T{33}.'';
}
$o .= $T{34}.'';
if( $T{admin}->chk_privil(32) ) {
$o .= $T{35}.'';
}
$o .= $T{36}.$T{urls}.$T{37}.$T{top_center}.$T{38}.$T{add_info}.$T{39}.'';
if( $T{made_msg} ) {
$o .= $T{40}.$T{made_msg_class}.$T{41}.$T{made_msg}.$T{42}.'';
}
$o .= $T{43}.'';
22.05.2013 22:23:08 [stat.pl(168) stat.pl::__ANON__(30) stat.pl(30) stat.pl::Hard_exit(89) stat.pl(90)]
Ошибка рендеринга /usr/local/nodeny/web/tmpl/adm_top_block.html
Can't call method "chk_privil" on an undefined value at (eval 26) line 209.
Compilation failed in require at /usr/local/nodeny/web/calls.pm line 1093.
22.05.2013 22:23:08 [stat.pl(168) stat.pl::__ANON__(30) stat.pl(30) stat.pl::Hard_exit(89) stat.pl(92)]
Elapsed time: 0.051630 sec