ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: inter on October 23, 2017, 10:25:34 am

Title: 1.1 Undefined index: actual_theme_dir
Post by: inter on October 23, 2017, 10:25:34 am
Hey people you have this error in error log:

Quote    Type of error: Undefined
    Notice: Undefined index: actual_theme_dir

    File: /sources/Load.php
    Line: 2446

php 5.6
elk 1.1.0
Title: Re: 1.1 Undefined index: actual_theme_dir
Post by: emanuele on October 23, 2017, 12:15:28 pm
OMG I hate this error!!
I saw it the first time in SMF I don't know how many years ago and I've never been able to track the actual cause... :-\
Title: Re: 1.1 Undefined index: actual_theme_dir
Post by: inter on October 23, 2017, 12:26:46 pm
Do you have it in the error logs now?

Oh, It seems I myself made this mistake.
Title: Re: 1.1 Undefined index: actual_theme_dir
Post by: inter on October 23, 2017, 01:25:04 pm
Solved.
This my error: I ran loadLanguage(...) before loadTheme(...)

Not use loadLanguage(...) in __construct(...) of your addon in YourController. Need use loadLanguage(...) in pre_dispath(...) or another way.

Closed.
Title: Re: 1.1 Undefined index: actual_theme_dir
Post by: emanuele on October 23, 2017, 02:41:15 pm
Quote from: inter – Do you have it in the error logs now?
Nope, but I ahve seen it several times in the past.
Title: Re: 1.1 Undefined index: actual_theme_dir
Post by: augras on April 24, 2018, 11:58:54 am
Hi, i have exactly the same error with ElkArte1.1.3, php 7.0.
Some idea today ?
Philippe
Title: Re: 1.1 Undefined index: actual_theme_dir
Post by: emanuele on April 24, 2018, 12:02:09 pm
Any more details on what is exactly the error message?
Title: Re: 1.1 Undefined index: actual_theme_dir
Post by: augras on April 24, 2018, 01:59:24 pm
The line error is
Code: [Select]
2446: $settings['actual_theme_dir'] . '/languages',
And the screenshot is in attachment for all details,
Philippe