Page 1 of 1

Call to undefined function sql_table_exists()

Posted: 20. January 2010 17:43
by DJ Re-DarK
Deine Portal Version: 1.0.4
Typ Deines phpBB Forums: Standard phpBB3
MODs installiert: Nein
Dein Wissensstand: Grundwissen
Link zu Deinem Forum: http://www.nexgo.eu.tt/forum/

PHP Version: 5.2.6-1+lenny4
MySQL Version: Latest

Was hast Du gemacht, bevor das Problem aufgetreten ist?
Normale Board3 Installation, ich habe Alle Datein hochgeladen und alles Angepasst, wies in der Anleitung steht.

Was hast Du bereits versucht um das Problem zu lösen?
Zeile aufgesucht, die Betroffene Date gelöscht, original hochgeladen und Code wieder eingefügt (Siege beschreibung)

Fehlerbeschreibung und Nachricht
Ich bekomme beim Aufruf des Forums folgendes:

Fatal error: Call to undefined function sql_table_exists() in /var/www/forum/includes/functions.php on line 4070

Daraufhin hab ich mir die Datei (funtions.php) mal angesehen, und die zeile 4070 mal rausgesucht:

Code: Select all

	if(sql_table_exists(PORTAL_CONFIG_TABLE) == true)
	{
		$portal_config = obtain_portal_config();
	}
Wäre also Laut anleitung dieser Code:

Code: Select all

Find

Tip: This may be a partial find and not the whole line.
Code:Select all

// The following assigns all _common_ variables that may be used at any point in a template.

Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.
Code:Select all

	$user->add_lang(array('mods/lang_portal', 'mods/additional_blocks'));
	if (!function_exists('obtain_portal_config'))
	{
		include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
	}
	if(sql_table_exists(PORTAL_CONFIG_TABLE) == true)
	{
		$portal_config = obtain_portal_config();
	}
Mein Code:

Code: Select all

		$user->add_lang(array('mods/lang_portal', 'mods/additional_blocks'));
	if (!function_exists('obtain_portal_config'))
	{
		include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
	}
	if(sql_table_exists(PORTAL_CONFIG_TABLE) == true)
	{
		$portal_config = obtain_portal_config();
	}
	// The following assigns all _common_ variables that may be used at any point in a template.
	$template->assign_vars(array(
		'SITENAME'						=> $config['sitename'],
		'SITE_DESCRIPTION'				=> $config['site_desc'],
		'PAGE_TITLE'					=> $page_title,
		'SCRIPT_NAME'					=> str_replace('.' . $phpEx, '', $user->page['page_name']),
		'LAST_VISIT_DATE'				=> sprintf($user->lang['YOU_LAST_VISIT'], $s_last_visit),
[...]
Aber das Problem bekomme ich nciht Behoben =( Wass muss ich tun, dass es geht?

MfG[/i]

Re: Call to undefined function sql_table_exists()

Posted: 20. January 2010 17:59
by Marc
Hast du schon die neue portal/includes/functions.php hochgeladen? In der Datei findet sich die Funktion. ;)

Re: Call to undefined function sql_table_exists()

Posted: 20. January 2010 18:05
by DJ Re-DarK
ja, und die andere functions.php (die des forums, nicht die des portals) so editiert, wie ich es musste....

incl des codes, der in der anleitunbg steht...

MfG

Re: Call to undefined function sql_table_exists()

Posted: 20. January 2010 18:16
by Marc
Lösche mit Hilfe eines FTP Programms mal alle Dateien bis auf .htaccess und index.html im cache-Ordner deines Forums.

Re: Call to undefined function sql_table_exists()

Posted: 20. January 2010 18:28
by DJ Re-DarK
Immernoch selbes Problem... Ich vermute mal, dass dass vllt irgendwo in der Datenbank liegt, oder?

MfG

Re: Call to undefined function sql_table_exists()

Posted: 20. January 2010 18:42
by Marc
Ne, in der Datenbank kann es nicht sein.

Du kannst die Fehlermeldung einfach umgehen, indem du den Code:

Code: Select all

   if(sql_table_exists(PORTAL_CONFIG_TABLE) == true)
   {
      $portal_config = obtain_portal_config();
   }
Gegen das hier tauschst:

Code: Select all

   $portal_config = obtain_portal_config();
Obwohl ich echt nicht verstehe wieso das bei dir nicht geht.

Du hast aber schon alles wie hier beschrieben hochgeladen?: knowledge/kb_show.php?id=53

Re: Call to undefined function sql_table_exists()

Posted: 20. January 2010 18:52
by DJ Re-DarK
OK, habs hinbekommen mit dem Letzten tipp.. Ist das normal dass er weiterhin das Normale Forum anzeigt, statt das Portal?? also die index.php, nicht die portal.php? Naja wie auch immer, einfach ne HTML datei geschrieben mit nem auto-reffer, schon gehts.

Vielen Dank =)

MfG

Re: Call to undefined function sql_table_exists()

Posted: 20. January 2010 19:23
by Marc
Normalerweise hilft da das editieren der .htaccess.