News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Undefined index actual_theme_dir

Started by teos55, December 21, 2012, 05:04:00 PM

Previous topic - Next topic

teos55

SMF 2.0.3  Sp 2.3.5 default theme curve  utf8

  Today I faced the  problem after below scenario ...

  For some reason I changed my language from my own language to english in the profile section and returned back to my own language.

  After that, I began to receive ....

http://12345.org/index.php?action=admin;area=logs;sa=errorlog;desc8: Undefined index: actual_theme_dirFile: /home/12345/public_html/Sources/Load.php
Line: 2168


line around 2168   from 2161 to 2169

// If we don't have our theme information yet, lets get it.
      if (empty($settings['default_theme_dir']))
         loadTheme(0, false);

      // Default language directories to try.
      $language_directories = array(
         $settings['default_theme_dir'] . '/languages',
         $settings['actual_theme_dir'] . '/languages',
      );



I tried repair_setttings.php   no help

Now, whatever the language is set, I get this error in the error log even after deleting all items, then appears again.

Any help ?  Not applied a new mod since ages ...

nb: 

actual_theme_dir  only apperas in  load, subs and manageserver.php s in the source dir.

emanuele

mmm...okay I remember a similar error in a forum I set up, but I didn't investigate it because it was only with my account with non-English, but since I usually use English I didn't care about it...yep, I should, in the end it's a bug... ::)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

teos55

Circumvention :

  Logging out and relogging solves the issue ...  Cache problem ?

emanuele

I think it's a session issue (i.e. try changing the language adding ;language=yourlanguage-utf8 to the url and you should get it).


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

teos55

Thnaks for the info.
From my end, I consider this, as solved, but can remain here, if bug fix needed.

Arantor

I've changed this very slightly in 2.1 to check before using to make sure it's defined, as there are cases where it might not be.

Advertisement: