Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: manu3d on January 08, 2019, 04:51:32 AM

Title: Undefined index: actual_theme_dir
Post by: manu3d on January 08, 2019, 04:51:32 AM
I just wanted to report that I stumbled on the error message in the subject browsing through the Error Log. I'm currently using 2.0.11 and there were hundreds of entries of this particular error.

Digging in the forum I found a thread from 2011 (https://www.simplemachines.org/community/index.php?topic=427245.0) that suggests to comment out a line in Source/Load.php as show here:


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


Seems to work without consequences, but we have to be vigiliant as it doesn't look like the actual cause and the proper solution to the problem were ever found.

I hope this post helps other people who stumble on this issue.
Title: Re: Undefined index: actual_theme_dir
Post by: Looking on January 08, 2019, 04:54:38 AM
QuoteI'm currently using 2.0.11
You should be on 2.0.15, I would update right away.
Title: Re: Undefined index: actual_theme_dir
Post by: manu3d on January 08, 2019, 04:56:27 AM
Do you mean that 2.0.15 explicitly solved the problem?
Title: Re: Undefined index: actual_theme_dir
Post by: Aleksi "Lex" Kilpinen on January 08, 2019, 05:16:17 AM
No, and I'm actually unsure what the actual cause of the problem is - it's not that code, even if it could use an if statement to check that it's not empty, IMO it should never really be empty.
Title: Re: Undefined index: actual_theme_dir
Post by: Arantor on January 08, 2019, 05:34:53 AM
What theme are you using?
Title: Re: Undefined index: actual_theme_dir
Post by: manu3d on January 08, 2019, 05:36:21 AM
@Arantor: https://www.smfpacks.com/page/sa=nebula
Title: Re: Undefined index: actual_theme_dir
Post by: d3vcho on January 08, 2019, 05:38:12 AM
You probably better ask for support over SMFPacks since you're paying for the theme
Title: Re: Undefined index: actual_theme_dir
Post by: Arantor on January 08, 2019, 05:39:28 AM
Some themes use functionality around inheriting from other themes. I doubt that this one does because I don't recall Nibogo ever using it (far as I remember only Bloc ever did), so in the interim just commenting out the line you have is fine.
Title: Re: Undefined index: actual_theme_dir
Post by: manu3d on January 08, 2019, 02:46:04 PM
Understood Arantor. Thank you.