Ticket #1750 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

PHP Notice, when session times out - with CMS installed

Reported by: shaunmza Assigned to: somebody
Priority: normal Milestone: 1.0
Component: SGL - String Severity: open
Keywords: session, translation, String.php Cc:

Description

I get the following error when attempting to access the admin section after an extended period of time (i.e. session has expired)

MESSAGE: Undefined index: TRANSLATION TYPE: Notice FILE: /home/directory/public_html/sgl1/lib/SGL/String.php LINE: 267 DEBUG INFO:

262 return self::translate2($key, $filter, $aParams, $langCode); 263 } 264 $c = SGL_Config::singleton(); 265 $conf = $c->getAll(); 266 267 $trans = $GLOBALS_SGL?TRANSLATION?;

268 if (isset($trans[$key])) { 269 if (!is_array($trans[$key])

270 && strstr($trans[$key], '') 271 && $conftranslation?container? == 'db') { 272 preg_match_all('/([|]*)\|([|]*)(?=\|\|)/', $trans[$key], $aPieces);

Change History

03/23/10 12:03:19 changed by demian

  • status changed from new to closed.
  • resolution set to fixed.

(In [4402]) handling missing translation, fixes #1750