We have moved to Github. Please open tickets there.

Opened 2 years ago

Closed 11 months ago

Last modified 11 months ago

#3405 closed Defect (fixed)

Memcache: fault in contructor can cause site to go into English language

Reported by: coldtrick Owned by:
Priority: normal Milestone: Elgg 1.8.7
Component: Core Version: 1.8
Severity: minor Keywords: memcache, language
Cc: brett@… Difficulty:

Description (last modified by cash)

In the constructor of the ElggMemcache class some exceptions are thrown which can cause a site be revert to the English language is Memcache support fails.

In the comments of one of the errors a note was made to prevent the problem but this wasn't solved in other exceptions.

Example (1.7):

  • throw new ConfigurationException(elgg_echo('memcache:notinstalled'));
  • throw new ConfigurationException(elgg_echo('memcache:noservers'));
  • throw new ConfigurationException(sprintf(elgg_echo('memcache:versiontoolow'), ElggMemcache::$MINSERVERVERSION, $this->version));

Change History (6)

comment:1 Changed 2 years ago by coldtrick

this is not limited to Memcache, every elgg_echo before "boot" => "system" can cause this problem.

In configuration_init() -> get_all_config() the language is determend and after this the site will have the correct language.

comment:2 Changed 23 months ago by ewinslow

  • Milestone changed from Needs Review to Elgg 1.9

comment:3 Changed 13 months ago by coldtrick

  • Version changed from 1.7 to 1.8

comment:4 Changed 11 months ago by Jerome Bakker

  • Resolution set to fixed
  • Status changed from new to closed

fixes #3405 Memcache: fault in contructor can cause site to go into
English language

Changeset: 7e59ef7adec3b716aabc9c61c485ceb17e5d1f68

comment:5 Changed 11 months ago by cash

  • Description modified (diff)
  • Milestone changed from Near Term Future Release to Elgg 1.8.7

comment:6 Changed 11 months ago by Jerome Bakker

fixes #3405 Memcache: fault in contructor can cause site to go into
English language

Changeset: 7e59ef7adec3b716aabc9c61c485ceb17e5d1f68

Note: See TracTickets for help on using tickets.