UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » undefined index.

undefined index.

Moderators: Gaia.

Page: 1

Author Post
Moderator
Registered: Oct 2005
Posts: 462
Location: canada
Hey,

I'm trying to update from v1.0 RC2 and it won't find the language edits or something that i made in the lang.English.php file.

I have:

$template->set_page_title($lang['Portal']);


and i've double checked the lang.English file so many times and deleted/re-uploaded the file and i keep getting

Quote
In file portal.php on line 56:

E_NOTICE - Undefined index: Portal


And the above code is on line 56 so i dont get it ... this is what i have in my lang file.


//
// Downloads Translations
//
$lang['Templates'] = 'Templates';
$lang['Modifications'] = 'Modifications';
$lang['Graphics'] = 'Graphics';
$lang['Downloads'] = 'Downloads';
$lang['FileList'] = 'File List';
$lang['NewFile'] = 'New File';
$lang['NoSuchFile'] = 'The file %s does not exist or was removed';
$lang['Portal'] = 'Portal';

//
// Initialize a new translations holder array
//
$lang = array();

//
// Translation settings
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
You are reinitializing the $lang array below your edits:
$lang = array();

This empties the $lang variable so everything set in it before is gone. You should add values below that line.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Moderator
Registered: Oct 2005
Posts: 462
Location: canada
Oh oops lol, i didn't notice that, silly me, thanks >_<.

Page: 1

UseBB Community » Help & Support » undefined index.

UseBB Community is powered by UseBB 1 Forum Software