Projektweite Integration eines Boards
Verfasst: 29.10.2005 16:44
Moinmoin,
Ich hab ein Problem damit, ein phpBB in meine Projektseite einzubinden.
Ich habe in einer neuen Datei, die automatisch vom System eingebunden wird (per rekursivem Including) folgenden Code:
Ich wollte damit eine systemweite Integration der Userdaten haben ... damit man sich dort einloggen kann, PMs lesen und solche Mätzchen.
Das Problem is nur, es geht nicht :/
Fatal error: Call to a member function on a non-object in /var/www/board/includes/functions.php on line 602
Die entsprechende Zeile sieht so aus
Danke schon im Voraus 
Mata ne
Warui
Ich hab ein Problem damit, ein phpBB in meine Projektseite einzubinden.
Ich habe in einer neuen Datei, die automatisch vom System eingebunden wird (per rekursivem Including) folgenden Code:
Code: Alles auswählen
<?
// This code lives in $WEBROOT$/mod/phpbb_live_integration
define('IN_PHPBB',TRUE);
global $ecms_config; // an array with config values loaded from the database
$phpbb_root_path = "../../".$ecms_config['phpbb_path']; // as you can see here
include($phpbb_root_path.'extension.inc'); // It might be possible, that you have to edit this file also.
include($phpbb_root_path.'config.'.$phpEx);
include($phpbb_root_path.'common.'.$phpEx);
# Start session management
$userdata = session_pagestart($user_ip,PAGE_ECMS);
init_userprefs($userdata);
?>
Das Problem is nur, es geht nicht :/
Fatal error: Call to a member function on a non-object in /var/www/board/includes/functions.php on line 602
Die entsprechende Zeile sieht so aus
Code: Alles auswählen
//
// Get SQL error if we are debugging. Do this as soon as possible to prevent
// subsequent queries from overwriting the status of sql_error()
//
if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
{
$sql_error = $db->sql_error(); // <== That's the line
$debug_text = '';
...

Mata ne
Warui