ElkArte Community

Elk Development => Bug Reports => Topic started by: forumsearch0r on August 15, 2015, 07:40:26 am

Title: Difficulties to find my theme
Post by: forumsearch0r on August 15, 2015, 07:40:26 am
It seems that ElkArte does not really work well with XAMPP on Windows.

I tried to load my theme (WIP, TBA) by entering the path on the Theme Management site but it just created a new one.

 ::)
Title: Re: Difficulties to find my theme
Post by: emanuele on August 15, 2015, 12:33:45 pm
Sounds almost like a bug to me...
I'll try to test it tomorrow.
Title: Re: Difficulties to find my theme
Post by: forumsearch0r on August 15, 2015, 04:32:56 pm
It works on OS X but not on Windows 10, at least.  :o
Title: Re: Difficulties to find my theme
Post by: Flavio93Zena on August 15, 2015, 04:57:42 pm
Then XAMPP is not fully compatible with Win 10...?
Title: Re: Difficulties to find my theme
Post by: forumsearch0r on August 15, 2015, 05:48:48 pm
XAMPP works, ElkArte works - the path does not.
Title: Re: Difficulties to find my theme
Post by: Flavio93Zena on August 15, 2015, 09:12:00 pm
Exactly, maybe some XAMPP functions are broken (heck, how could you even set it up? I tried, it's a mess) ;D But I'd rather wait for emanuele on this one
Title: Re: Difficulties to find my theme
Post by: emanuele on August 16, 2015, 03:37:26 pm
Quote from: forumsearch0r – It works on OS X but not on Windows 10, at least.  :o
TBH I never tried windows server (mainly because my windows machine is a terribly old netbook that barely runs a notepad and a browser at the same time LOL), but guessing from the code and your description, I think the "problem" may be in that line:
Code: [Select]
elseif (isset($_REQUEST['theme_dir']) && rtrim(realpath($_REQUEST['theme_dir']), '/\\') != realpath(BOARDDIR . '/themes') && file_exists($_REQUEST['theme_dir']))
1088 of ManageThemes.controller.php (ADMINDIR).
Could it be you are trying to install the theme from another directory that BOARDDIR/themes?
I should go back and check, but I guess the trstriction was done for security reasons, though it probably doesn't cover all the possible alternatives (like a themes dir outside BOARDDIR, that is a possibility).
It may either be a problem with the path, or realpath having issues with windows, or even a dir names case problem (e.g. one is upper, one is lower case), in that case we may need to differentiate the behaviour between win and *nix.
Title: Re: Difficulties to find my theme
Post by: forumsearch0r on August 17, 2015, 04:58:48 am
I tried installing it even from my desktop with no real success.
Title: Re: Difficulties to find my theme
Post by: emanuele on August 19, 2015, 08:14:09 am
Moved to bug reports for now.
Title: Re: Difficulties to find my theme
Post by: forumsearch0r on August 22, 2015, 06:28:26 pm
^ Anything new? I have a free week and would really love to continue working on my theme.
Title: Re: Difficulties to find my theme
Post by: emanuele on August 23, 2015, 02:37:15 am
I cannot reproduce it on win7 and I don't have a win10 handy, so it's kind of impossible to test it for me... :(
Title: Re: Difficulties to find my theme
Post by: forumsearch0r on August 23, 2015, 06:27:31 am
 :o  ::)  >:(
Title: Re: Difficulties to find my theme
Post by: wintstar on August 23, 2015, 06:52:14 am
I understand the whole not here. With me working ElkArte (1.04 1.0.5 and 1.1beta) with Xampp under Win 10 32 and 64 bit without errors. All functions. The XAMPP works properly is in C: be directly installed.