Seite 1 von 2

!!! Forum funktioniert nach Portal-Mod nicht mehr !!!

Verfasst: 10.04.2008 15:37
von alexmenne
Hi, es ist schon wieder ein Fehler aufgekommen, und zwar habe ich das Portal ganz normal installiert, wie es da auch stand, aber nachdem ich das Portal installiert habe, wollte ich das Forum aufrufen, doch da kam folgende Meldung:
phpBB : Kritischer Fehler

Could not get theme data for themes_id []

Ich hoffe, jemand kann mir schnell helfen!

lg
alexmenne

Verfasst: 10.04.2008 16:10
von Gumfuzi
Ev. wäre es hilfreich, wenn Du posten würdest, um welches Portal es sich handelt.

Verfasst: 10.04.2008 16:16
von alexmenne
Es handelt sich um das Portal: http://www.phpbb.de/moddb/intro_and_portal_mod

Also, die Version 1.50.1

Ich hoffe, du kannst damit was anfangen :-?

lg
alexmenne

Verfasst: 10.04.2008 16:25
von Würzi
Moin,

ich hoffe mal, daß den Tipp von Gloriosa berücksichtigt hast :oops:

http://www.phpbb.de/viewtopic.php?p=978 ... ht=#978759

Hast du das Portal von Hand eingebaut?
Hast du das Standartstyle Subsiler?

Wenn nicht, dann eben...
http://www.phpbb.de/viewtopic.php?p=978 ... ht=#978759

:wink:

Link zum Forum wäre auch nett, wenn du uns verraten würdest :wink:

Verfasst: 10.04.2008 16:36
von alexmenne
Was hat das denn damit zu tun???
Ich habe keinen EasyMod und das Portal habe ich VON HAND EINGEBAUT.
Außerdem benutze ich den Standard-Style, Subsilver ^^ ... Weil ich kein anderes verstehe...^^


Ich hoffe, jemand könnte mir jetzt ernsthaft helfen, und nicht dauernt auf Fehler hinweisen.

lg
alexmenne

Verfasst: 10.04.2008 17:16
von Würzi
Auf Fehler hinweisen bedeutet Fehler auszuschließen :wink:

Wenn genauere Angaben fehlen und ich in einem anderen Topic lese, daß du den Easy Mod installieren wolltest, dann geht man logischerweise davon aus, daß du ihn auch hast. :wink:

So und nun zurück zum wesentlichen:

Deine Fehlermeldung besagt eigentlich daß du Schwierigkeiten mit dem Style hast, siehe hierzu auch Could not get theme data...
Da du ja aber deiner Aussage nach nur Subsilver besitzt, muss der Fehler woanders liegen.

Da du das Dings ja auch mit der Hand eingebaut hast nun zur Fehlerbehebung einige Fragen:

1. Hast du alle Dateien in die vorgesehenen Verzeichnisse kopiert? (bitte nochmals kontrollieren)
2. Hast du die intro_portal_mod_db_install.php ausgeführt? Wenn ja gab es Fehlermeldungen?
3. Hast du alle Dateiänderungen gemacht und diese Dateien dann auch hochgeladen? (bitte nochmals kontrolieren)

Eigentlich ist das Portal relativ einfach zu installieren und du hast ja auch folgendes geschrieben, also gehe ich von guten Kenntnissen aus
Ich mein', ich könnte schon Mods einbauen, nur manchmal fehlt mir halt die Zeit.
Aber wenn ich einen Mod wirklcih will, dann baue ich ihn natürlich ein, egal, wie lange es dauert
Link zum Forum wäre nett! :)

Verfasst: 10.04.2008 18:21
von alexmenne
Hi, ich habe unter den Link mal nachgeschaut, war aber alles so, wie es sein sollte in der Datenbank.
Aber, ich noch mal eine kurze Allgemein-Info:
In der Installationsanleitung kam etwas mit dem Style vor:

Code: Alles auswählen

#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#

templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#

<tr>
	<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#

<!-- Intro + Portal MOD START -->
<!-- BEGIN switch_introportalmod_disable -->
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"><b>&nbsp;<a href="{U_IntroPortalMOD1}">{L_IntroPortalMOD1}</a>&nbsp;   &nbsp;<a href="{U_IntroPortalMOD2}">{L_IntroPortalMOD2}</a>&nbsp;   &nbsp;<a href="{U_IntroPortalMOD3}">{L_IntroPortalMOD3}</a>&nbsp;</b></span></td>
</tr>
<!-- END switch_introportalmod_disable -->
<!-- Intro + Portal MOD END -->
Und so habe ich dann den Code:

Code: Alles auswählen

</tr>					<tr> <a height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
					</tr>
<!-- Intro + Portal MOD START -->
<!-- BEGIN switch_introportalmod_disable -->
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"><b>&nbsp;<a href="{U_IntroPortalMOD1}">{L_IntroPortalMOD1}</a>&nbsp;   &nbsp;<a href="{U_IntroPortalMOD2}">{L_IntroPortalMOD2}</a>&nbsp;   &nbsp;<a href="{U_IntroPortalMOD3}">{L_IntroPortalMOD3}</a>&nbsp;</b></span></td>
</tr>
<!-- END switch_introportalmod_disable -->
<!-- Intro + Portal MOD END -->
				</table></td>
			</tr>
Ist da vieleicht ein Fehler drin???

lg
alexmenne

Verfasst: 10.04.2008 19:20
von Würzi
Das mit der overall_header.tpl ist vollkommen egal :wink:

Wenn du das weglässt, dann siehst nur nicht die links wo du vom Index zum Portal oder Intro wechseln kannst. :wink:

Du hast nicht all meine Fragen Punkt 1-3 beantwortet. :oops:

Verfasst: 10.04.2008 19:40
von alexmenne
1. Hast du alle Dateien in die vorgesehenen Verzeichnisse kopiert? (bitte nochmals kontrollieren) JA
2. Hast du die intro_portal_mod_db_install.php ausgeführt? Wenn ja gab es Fehlermeldungen? JA, NEIN
3. Hast du alle Dateiänderungen gemacht und diese Dateien dann auch hochgeladen? (bitte nochmals kontrolieren) JA

lg
alexmenne

Verfasst: 10.04.2008 19:58
von alexmenne
Hi, ich wollte mal gucken, wo der Fehler liegt, und habe ihn gefunden:
Die common.php Datei war daran Schuld!
Aber wieso?
Hier der Code der Datei:

Code: Alles auswählen

<?php
/***************************************************************************
 *                                common.php
 *                            -------------------
 *   begin                : Saturday, Feb 23, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: common.php 5970 2006-05-26 17:46:59Z grahamje $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
}

//
error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime

// The following code (unsetting globals)
// Thanks to Matt Kavanagh and Stefan Esser for providing feedback as well as patch files

// PHP5 with register_long_arrays off?
if (@phpversion() >= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off'))
{
	$HTTP_POST_VARS = $_POST;
	$HTTP_GET_VARS = $_GET;
	$HTTP_SERVER_VARS = $_SERVER;
	$HTTP_COOKIE_VARS = $_COOKIE;
	$HTTP_ENV_VARS = $_ENV;
	$HTTP_POST_FILES = $_FILES;

	// _SESSION is the only superglobal which is conditionally set
	if (isset($_SESSION))
	{
		$HTTP_SESSION_VARS = $_SESSION;
	}
}

// Protect against GLOBALS tricks
if (isset($HTTP_POST_VARS['GLOBALS']) || isset($HTTP_POST_FILES['GLOBALS']) || isset($HTTP_GET_VARS['GLOBALS']) || isset($HTTP_COOKIE_VARS['GLOBALS']))
{
	die("Hacking attempt");
}

// Protect against HTTP_SESSION_VARS tricks
if (isset($HTTP_SESSION_VARS) && !is_array($HTTP_SESSION_VARS))
{
	die("Hacking attempt");
}

if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
{
	// PHP4+ path
	$not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS', 'HTTP_ENV_VARS', 'HTTP_POST_FILES', 'phpEx', 'phpbb_root_path');

	// Not only will array_merge give a warning if a parameter
	// is not an array, it will actually fail. So we check if
	// HTTP_SESSION_VARS has been initialised.
	if (!isset($HTTP_SESSION_VARS) || !is_array($HTTP_SESSION_VARS))
	{
		$HTTP_SESSION_VARS = array();
	}

	// Merge all into one extremely huge array; unset
	// this later
	$input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES);

	unset($input['input']);
	unset($input['not_unset']);

	while (list($var,) = @each($input))
	{
		if (in_array($var, $not_unset))
		{
			die('Hacking attempt!');
		}
		unset($$var);
	}

	unset($input);
}

//
// addslashes to vars if magic_quotes_gpc is off
// this is a security precaution to prevent someone
// trying to break out of a SQL statement.
//
if( !get_magic_quotes_gpc() )
{
	if( is_array($HTTP_GET_VARS) )
	{
		while( list($k, $v) = each($HTTP_GET_VARS) )
		{
			if( is_array($HTTP_GET_VARS[$k]) )
			{
				while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) )
				{
					$HTTP_GET_VARS[$k][$k2] = addslashes($v2);
				}
				@reset($HTTP_GET_VARS[$k]);
			}
			else
			{
				$HTTP_GET_VARS[$k] = addslashes($v);
			}
		}
		@reset($HTTP_GET_VARS);
	}

	if( is_array($HTTP_POST_VARS) )
	{
		while( list($k, $v) = each($HTTP_POST_VARS) )
		{
			if( is_array($HTTP_POST_VARS[$k]) )
			{
				while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) )
				{
					$HTTP_POST_VARS[$k][$k2] = addslashes($v2);
				}
				@reset($HTTP_POST_VARS[$k]);
			}
			else
			{
				$HTTP_POST_VARS[$k] = addslashes($v);
			}
		}
		@reset($HTTP_POST_VARS);
	}

	if( is_array($HTTP_COOKIE_VARS) )
	{
		while( list($k, $v) = each($HTTP_COOKIE_VARS) )
		{
			if( is_array($HTTP_COOKIE_VARS[$k]) )
			{
				while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) )
				{
					$HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2);
				}
				@reset($HTTP_COOKIE_VARS[$k]);
			}
			else
			{
				$HTTP_COOKIE_VARS[$k] = addslashes($v);
			}
		}
		@reset($HTTP_COOKIE_VARS);
	}
}

//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
$board_config = array();
$userdata = array();
$theme = array();
$images = array();
$lang = array();
$nav_links = array();
$dss_seeded = false;
$gen_simple_header = FALSE;

include($phpbb_root_path . 'config.'.$phpEx);

if( !defined("PHPBB_INSTALLED") )
{
	header('Location: ' . $phpbb_root_path . 'install/install.' . $phpEx);
	exit;
}

include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
if ( defined('IN_CASHMOD') )
{
	include($phpbb_root_path . 'includes/functions_cash.'.$phpEx);
}

// We do not need this any longer, unset for safety purposes
unset($dbpasswd);

//
// Obtain and encode users IP
//
// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as
// private range IP's appearing instead of the guilty routable IP, tough, don't
// even bother complaining ... go scream and shout at the idiots out there who feel
// "clever" is doing harm rather than good ... karma is a great thing ... :)
//
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );
$user_ip = encode_ip($client_ip);

//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
	FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
	message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
// Intro + Portal MOD START
$sql = "SELECT * FROM " . INTROPORTALMOD_TABLE;
if( ($result = $db->sql_query($sql)) )
while ( $row = $db->sql_fetchrow($result) )
{
	$introportalmod_config[$row['config_name']] = $row['config_value'];
}
// Intro + Portal MOD END

{
	$board_config[$row['config_name']] = $row['config_value'];
}

if (file_exists('install') || file_exists('contrib'))
{
	message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib');
}

//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
	message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}

?>
Und in der Anleitung stand das:

Code: Alles auswählen

#-----[ OPEN ]------------------------------------------
#
# german: Öffne
#

common.php

#
#-----[ FIND ]------------------------------------------
#
# german: Finde
#

while ( $row = $db->sql_fetchrow($result) )
{
	$board_config[$row['config_name']] = $row['config_value'];
}

#
#-----[ AFTER, ADD ]------------------------------------------
#
# german: Danach einfügen
#

// Intro + Portal MOD START
$sql = "SELECT * FROM " . INTROPORTALMOD_TABLE;
if( ($result = $db->sql_query($sql)) )
while ( $row = $db->sql_fetchrow($result) )
{
	$introportalmod_config[$row['config_name']] = $row['config_value'];
}
// Intro + Portal MOD END
lg
alexmenne