Am incercat sa fac acest upgrade, am copiat fisierele pe server, dar cind sa ma apuc de treaba prin lansarea lui act_011_012.php, m-am trezit cu o injuratura de genul:
FATAL ERORR :...............
ce nu fac bine ?
merci
Problema upgrade 2.011 - 2.012
- Nasshu
- Utilizator înregistrat
- Mesaje: 11
- Membru din: 11-Aug-2004, 23:59:45
- Ext: Nu
- Server: Windows
- Nivel phpBB: Mediu
- Nivel php: Mediu
- Localitate: Pitesti
- Contact:
mesaj eroare
scuze
Fatal error: Call to undefined function: make_cat_nav_tree() in /var/www/html/alcor-sys/forum/includes/page_header.php on line 546
poti vedea tastind
http://www.alcor-sys.ro/[editat]
merci de ajutor
ca sa ajung la 0.13 trebuie sa o iau metodic, intii 0.12 apoi 0.13 nu ?
Editat de flowers: Nu mai face publice fisierele tale de update, din motive de securitate. Poate intra oricine la tine pe forum sa se joace cu baza de date.
Fatal error: Call to undefined function: make_cat_nav_tree() in /var/www/html/alcor-sys/forum/includes/page_header.php on line 546
poti vedea tastind
http://www.alcor-sys.ro/[editat]
merci de ajutor
ca sa ajung la 0.13 trebuie sa o iau metodic, intii 0.12 apoi 0.13 nu ?
Editat de flowers: Nu mai face publice fisierele tale de update, din motive de securitate. Poate intra oricine la tine pe forum sa se joace cu baza de date.
-
- Mesaje: 4641
- Membru din: 03-Iun-2004, 17:50:34
- Ext: Nu
- Server: Windows
- Nivel phpBB: Mediu
- Nivel php: Mediu
- Localitate: Bucureşti, România
- Contact:
Ti-ar fi de mare ajutor articolul Reinstalare / Actualizare phpBB. Vezi ca, daca ai multe MOD-uri instalate pe phpBB, update-ul se face prin MODificarile de la Actualizare forum.
Functia respectiva e din MOD-ul Categories hierarchy si se pare ca nu e definita. Ai facut upload la fisierul functions_categories_hierarchy.php in directorul includes? Daca da, contine functia:
Functia respectiva e din MOD-ul Categories hierarchy si se pare ca nu e definita. Ai facut upload la fisierul functions_categories_hierarchy.php in directorul includes? Daca da, contine functia:
Cod: Selectaţi tot
//--------------------------------------------------------------------------------------------------
//
// make_cat_nav_tree() : build the nav sentence
//
//--------------------------------------------------------------------------------------------------
function make_cat_nav_tree($cur, $pgm='', $nav_class='nav')
{
global $phpbb_root_path, $phpEx, $db;
global $global_orig_word, $global_replacement_word;
global $nav_separator;
global $tree;
// get topic or post level
$type = substr($cur, 0, 1);
$id = intval(substr($cur,1));
$topic_title = '';
$fcur = '';
switch ($type)
{
case POST_TOPIC_URL:
$sql = "SELECT forum_id, topic_title
FROM " . TOPICS_TABLE . " WHERE topic_id = $id";
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Could not query topics information', '', __LINE__, __FILE__, $sql);
if ($row = $db->sql_fetchrow($result))
{
$fcur = POST_FORUM_URL . $row['forum_id'];
$topic_title = $row['topic_title'];
$orig_word = array();
$remplacement_word = array();
obtain_word_list($orig_word, $replacement_word);
if ( count($orig_word) )
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}
}
break;
case POST_POST_URL:
$sql = "SELECT t.forum_id, t.topic_title
FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
WHERE t.topic_id=p.topic_id AND post_id = $id";
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Could not query posts information', '', __LINE__, __FILE__, $sql);
if ($row = $db->sql_fetchrow($result))
{
$fcur = POST_FORUM_URL . $row['forum_id'];
$topic_title = $row['topic_title'];
$orig_word = array();
$remplacement_word = array();
obtain_word_list($orig_word, $replacement_word);
if ( count($orig_word) )
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}
}
break;
}
// keep the compliancy with prec versions
if (!isset($tree['keys'][$cur])) $cur = isset($tree['keys'][POST_CAT_URL . $cur]) ? POST_CAT_URL . $cur : $cur;
// find the object
$this = isset($tree['keys'][$cur]) ? $tree['keys'][$cur] : -1;
$res = '';
while (($this >= 0) || ($fcur != ''))
{
$type = (substr($fcur, 0, 1) != '') ? substr($cur, 0, 1) : $tree['type'][$this];
switch($type)
{
case POST_CAT_URL:
$field_name = get_object_lang($cur, 'name');
$param_type = POST_CAT_URL;
$param_value = $tree['id'][$this];
$pgm_name = "index.$phpEx";
break;
case POST_FORUM_URL:
$field_name = get_object_lang($cur, 'name');
$param_type = POST_FORUM_URL;
$param_value = $tree['id'][$this];
$pgm_name = "viewforum.$phpEx";
break;
case POST_TOPIC_URL:
$field_name = $topic_title;
$param_type = POST_TOPIC_URL;
$param_value = $id;
$pgm_name = "viewtopic.$phpEx";
break;
case POST_POST_URL:
$field_name = $topic_title;
$param_type = POST_POST_URL;
$param_value = $id . '#' . $id;
$pgm_name = "viewtopic.$phpEx";
break;
default :
$field_name = '';
$param_type = '';
$param_value = '';
$pgm_name = "index.$phpEx";
break;
}
if ($pgm != '') $pgm_name = "$pgm.$phpEx";
if (!empty($field_name)) $res = '<a href="' . append_sid('./' . $pgm_name . (($field_name != '') ? "?$param_type=$param_value" : '')) . '" class="' . $nav_class . '">' . $field_name . '</a>' . (($res != '') ? $nav_separator . $res : '');
// find parent object
if ($fcur != '')
{
$cur = $fcur;
$pgm = '';
$fcur = '';
$topic_title = '';
}
else
{
$cur = $tree['main'][$this];
}
$this = isset($tree['keys'][$cur]) ? $tree['keys'][$cur] : -1;
}
return $res;
}
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Semrush [Bot] și 2 vizitatori