Project

General

Profile

Bug #143

Fatal error: Call to a member function get_isocode()

Added by Alexander Hu almost 11 years ago. Updated over 9 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 ;-)

History

#1

Updated by Sven Vanpoucke almost 11 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 :)

#2

Updated by Sven Vanpoucke almost 11 years ago

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

Updated by Stefaan Vanbillemont over 10 years ago

  • Status changed from Needs testing to Bug resolved

Tested and fixed!

#4

Updated by Stefaan Vanbillemont over 9 years ago

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

Updated by Stefaan Vanbillemont over 9 years ago

  • Target version changed from 2 to 1.0.0

Also available in: Atom PDF