Elkarte icon indicating copy to clipboard operation
Elkarte copied to clipboard

Undefined index: actual_theme_dir

Open emanuele45 opened this issue 6 years ago • 4 comments

    Type of error: Undefined
    Notice: Undefined index: actual_theme_dir
   index.php?action=register;sa=usernamecheck;xml;username=MauroK
    File: /public/sources/Load.php
    Line: 2454

ref https://www.elkarte.net/community/index.php?topic=5204.0

It has been reported other times, I've never been able to find the root cause of this.

emanuele45 avatar May 09 '18 11:05 emanuele45

Just to note that reply #8 says adding require_once(SUBSDIR . '/Members.subs.php'); just before the foreach should solve that issue. Not tested though.

ahrasis avatar May 19 '18 13:05 ahrasis

Does anyone know what actual_theme_dir actually is? I don't understand it.

emanuele45 avatar Jun 03 '18 21:06 emanuele45

Reply number 8 was already committed by spuds as he mentioned that in the last reply of the thread.

ahrasis avatar Jun 03 '18 23:06 ahrasis

As near as I can tell, actual_theme_dir was a copy of theme_dir introduced in SMF 1.0 or so to resolve language files. I think it could be cleared out with a system that addresses #3287

A 1.1.x fix could be to detect if the various elements getting assigned to the actual_ variables in initTheme are empty and if so, pass in the ddefault theme's data instead.

Vekseid avatar Sep 26 '19 03:09 Vekseid