Project

General

Profile

Actions

Bug #143

closed

Fatal error: Call to a member function get_isocode()

Added by Alexander Hu over 13 years ago. Updated about 12 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Sven Vanpoucke
Target version:
Start date:
03/11/2009
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal

Description

Hi,

just checked out the actual svn.

Install went through smooth, but when klicking "go to your new portal"

Fatal error: Call to a member function get_isocode() on a non-object in ..\chamilo\common\html\header.inc.php on line 14

Looks like there is a problem with the current solution...
I have chosen "German" in the setup, needing for translation, but unfortunately there seems no valid entry for that...?

Also:
$document_language = AdminDataManager :: get_instance()->retrieve_language_from_english_name($language_interface)->get_isocode();
if (empty($document_language)) {
//if there was no valid iso-code, use the english one
$document_language = 'en';
}

doesn't work, because otherwise i shouldn't have seen that error ;-)

Actions #1

Updated by Sven Vanpoucke over 13 years ago

  • Assignee set to Sven Vanpoucke
  • Target version set to 2

Alexander, the problem is here that the current support languages are dutch and english
we need to provide a system to have the languages parsed out of a xml file (because we need more information)
I'll get to it straight away, for now you can test in english :)

Actions #2

Updated by Sven Vanpoucke over 13 years ago

  • Status changed from New to Needs testing
  • % Done changed from 0 to 100
Actions #3

Updated by Stefaan Vanbillemont over 13 years ago

  • Status changed from Needs testing to Bug resolved

Tested and fixed!

Actions #4

Updated by Stefaan Vanbillemont about 12 years ago

  • Project changed from Chamilo LCMS Connect to Installation
  • Category deleted (16)
Actions #5

Updated by Stefaan Vanbillemont about 12 years ago

  • Target version changed from 2 to 1.0.0
Actions

Also available in: Atom PDF