Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: actual_theme_dir #3183

Open
emanuele45 opened this issue May 9, 2018 · 4 comments
Open

Undefined index: actual_theme_dir #3183

emanuele45 opened this issue May 9, 2018 · 4 comments
Labels
Milestone

Comments

@emanuele45
Copy link
Contributor

    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 emanuele45 added the bug label May 9, 2018
@emanuele45 emanuele45 added this to the 1.1.4 milestone May 9, 2018
@ahrasis
Copy link
Contributor

ahrasis commented May 19, 2018

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.

@emanuele45
Copy link
Contributor Author

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

@emanuele45 emanuele45 modified the milestones: 1.1.4, 1.1.5 Jun 3, 2018
@ahrasis
Copy link
Contributor

ahrasis commented Jun 3, 2018

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

@emanuele45 emanuele45 modified the milestones: 1.1.5, 1.1.6 Jul 30, 2018
@emanuele45 emanuele45 modified the milestones: 1.1.6, 1.1.7 Apr 7, 2019
@Vekseid
Copy link
Contributor

Vekseid commented Sep 26, 2019

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.

@Spuds Spuds modified the milestones: 1.1.7, 1.1.8 Apr 21, 2021
@Spuds Spuds modified the milestones: 1.1.8, 1.1.9 Oct 10, 2021
@Spuds Spuds modified the milestones: 1.1.9, 1.1.10 Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants