Nu heb ik wel een probleem en dat is dat de gast/guest zijn taal steeds in het engels blijft. Ik kijk effe in de phpmyadmin en daar staat voor "Anonymous" user_lang = dutch



mvg,
nas
Ik keek in functions.php op lijn 252 en daar stond :Warning: init_userprefs(./language/lang_english/lang_main.php): failed to open stream: No such file or directory in /includes/functions.php on line 252
Warning: init_userprefs(./language/lang_english/lang_main.php): failed to open stream: No such file or directory in /includes/functions.php on line 252
Warning: init_userprefs(): Failed opening './language/lang_english/lang_main.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /includes/functions.php on line 252
Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php:252) in /includes/page_header.php on line 495
Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php:252) in /includes/page_header.php on line 497
Warning: Cannot modify header information - headers already sent by (output started at /includes/functions.php:252) in /includes/page_header.php on line 498
Vervolgens keek ik eens de databse onder de tabel 'config' en wat blijkt default_lang is daaruit verdweneninclude($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx);
Code: Selecteer alles
INSERT INTO `phpbb_config` VALUES ('default_lang', 'dutch');
if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx)) )
{
$board_config['default_lang'] = 'dutch';
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx);
if ( defined('IN_ADMIN') )
{
if( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) )
{
$board_config['default_lang'] = 'dutch';