Knowledge Base MOD Installation Fehlgeschlagen
Verfasst: 17.12.2011 20:44
Hallo,
das Thema gab es eben schon, aber ich habe es dummerweise aus welchen Grünen auch immer gelöscht.
Also ich wollte den MOD mit der Knowledge Base installieren, der hier in vielen anderen Supportthemen bereits vorgekommen ist.
http://www.phpbb.com/community/viewtopic.php?t=1607345
Doch leider kann ich die Installationsroutine nicht aufrufen, weil da immer die Meldung kommt:
Die Module zum Beispiel sind noch gar nicht installiert, und ich kann sie auch gar nicht in dem "Modulmanager" im ACP aufrufen. Also die MOD ist noch gar nicht installiert. Nun ist die Frage, wie kann man das beheben, dass der MOD sich wieder installieren lässt?
Alternativ ist es doch auch möglich diese Installationsroutine:
In ein paar SQL-Befehle zu verwandeln, die dann in den SQL-Browser eingegeben werden können, damit man es manuell installieren kann.
Ich hoffe ihr könnt mir helfen.
das Thema gab es eben schon, aber ich habe es dummerweise aus welchen Grünen auch immer gelöscht.

Also ich wollte den MOD mit der Knowledge Base installieren, der hier in vielen anderen Supportthemen bereits vorgekommen ist.
http://www.phpbb.com/community/viewtopic.php?t=1607345
Doch leider kann ich die Installationsroutine nicht aufrufen, weil da immer die Meldung kommt:
Weiß jemand was es sich damit auf sich hat?Du hast deinen Browser geschlossen oder wurdest vom Internet getrennt, während die Seite geladen wurde. Daher wurde die Installation leider unterbrochen und ist vermutlich auch fehlgeschlagen. Am besten du machst die Änderungen komplett rückgängig und startest die Installation nochmal von vorne.
Die Module zum Beispiel sind noch gar nicht installiert, und ich kann sie auch gar nicht in dem "Modulmanager" im ACP aufrufen. Also die MOD ist noch gar nicht installiert. Nun ist die Frage, wie kann man das beheben, dass der MOD sich wieder installieren lässt?
Alternativ ist es doch auch möglich diese Installationsroutine:
Code: Alles auswählen
<?php
/**
*
* @package phpBB Knowledge Base Mod (KB)
* @version $Id: kb.php 410 2009-12-18 21:29:30Z tom.martin60@btinternet.com $
* @copyright (c) 2009 Andreas Nexmann, Tom Martin
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/kb.' . $phpEx);
include($phpbb_root_path . 'includes/kb_auth.' . $phpEx);
include($phpbb_root_path . 'includes/constants_kb.' . $phpEx);
include($phpbb_root_path . 'includes/functions_kb.' . $phpEx);
include($phpbb_root_path . 'includes/functions_plugins_kb.' . $phpEx);
// Init session etc, we will just add lang files along the road
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/kb');
// Lets start the install/update of the kb
// Automatically install or update if required
if(!isset($config['kb_version']) || version_compare($config['kb_version'], KB_VERSION, '<') || isset($config['kb_install_step']))
{
if(!$auth->acl_get('a_') || empty($user->data['is_registered']) || ((int) $user->data['user_type'] !== USER_FOUNDER))
{
// Stop any user in the middle of an install or update
trigger_error('KB_NOT_ENABLE');
}
include($phpbb_root_path . 'includes/functions_install_kb.' . $phpEx);
if(!isset($config['kb_version']) || isset($config['kb_install_step']))
{
kb_install();
}
else
{
kb_update($config['kb_version']);
}
}
if (!isset($config['kb_enable']) || !$config['kb_enable'] && !($auth->acl_get('a_') || $auth->acl_get('m_kb')))
{
trigger_error('KB_NOT_ENABLE');
}
// Initialize KB auth
$kb_auth = new kb_auth;
$kb_auth->acl($user->data, $auth);
$copyright = '';
$copyright .= sprintf($user->lang['KB_COPYRIGHT'], '<a href="http://kb.softphp.dk">', '</a>', KB_VERSION);
$copyright .= ($user->lang['KB_TRANSLATION'] != '') ? ' • ' . $user->lang['KB_TRANSLATION'] : '';
$copyright .= ($user->lang['TRANSLATION_INFO'] != '') ? '<br />' . $user->lang['TRANSLATION_INFO'] : '';
$user->lang['TRANSLATION_INFO'] = $copyright;
// set cat id here needed for search and random article to work properly
$cat_id = request_var('c', 0);
// For search
$cat_search = ($cat_id == 0) ? '' : '&cat_ids[]=' . $cat_id;
// Some default template variables
$template->assign_vars(array(
'U_MCP' => ($auth->acl_get('m_kb')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=kb') : false,
));
// Handle all knowledge base related stuff, this file is only to call it, makes the user able to move it around
gen_kb_auth_level($cat_id);
$kb = new knowledge_base($cat_id);
?>
Ich hoffe ihr könnt mir helfen.
