Re: "The default theme's directory is wrong, please correct it by clicking this text

Started by Sariи, January 19, 2015, 10:38:58 PM

Previous topic - Next topic

margarett

So I finally checked this.

It happens that you *don't* have a default theme... :o

That is prone to ALL KINDS of issues...
What happened is that you renamed the default theme (id = 1) and its folder also. So SMF doesn't find that folder and continuously warn you abut that...

The only thing you can do is prevent SMF from warning you because at this point you will not change your theme's structure, so...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

Yikes. No wonder...  I am actually surprised that the system even works...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sariи

That sounds bad..........everything works perfectly......except the message i get......how do i disable that message then????

Thank you very much for taking the time to look at it..............OGB & I thank you!

margarett

The message is generated in load.php, in this little piece of code
if (!empty($context['user']['is_admin']) && !isset($_GET['th']))
{
loadLanguage('Errors');
echo '
<div class="alert errorbox">
<a href="', $scripturl . '?action=admin;area=theme;sa=settings;th=1;' . $context['session_var'] . '=' . $context['session_id'], '" class="alert">', $txt['theme_dir_wrong'], '</a>
</div>';
}

Backup your file (just in case ;) ) and delete this code.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair


Illori

Quote from: Sariи on March 21, 2015, 02:34:08 AM
i dont have a load.php................

you better have it, or your SMF would not work. it is in the Sources folder.

Sariи

yay!!!!!!!!

The warning is gone!!!!

Thank you all for the help. I searched for that file but didnt come up. Went into forums/source and found it straight away.

Advertisement: