?
Referenced as Pull Request for: # 10699
avatar alikon
alikon
31 May 2016

Steps to reproduce the issue

try to fresh install with some languages

Expected result

you are able to install with more than the en-gb

Actual result

you are stuck on multilaguage selection page

System information (as much as possible)

current staging

avatar alikon alikon - open - 31 May 2016
avatar alikon alikon - change - 31 May 2016
The description was changed
avatar andrepereiradasilva
andrepereiradasilva - comment - 31 May 2016

Confirmed. Just go to /installation/index.php?view=languages and try to install. No install, no error nothing.

Further info:

Adding console.log(xhr.responseText); in the installation js catch exception (the exception catch is empty?)
https://github.com/joomla/joomla-cms/blob/staging/installation/template/js/installation.js#L66

Returns "The file Cache Storage is not supported on this platform."

avatar mbabker
mbabker - comment - 31 May 2016

What's trying to use JCache in the install app!? That shouldn't be getting used at all...

avatar brianteeman
brianteeman - comment - 31 May 2016

Probably @mbabker recent pr then

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 May 2016

and why there is no error messages in installation? catch (e) { } ?

avatar mbabker
mbabker - comment - 31 May 2016

If you value your sanity don't get me started on the state of the install app ????

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 May 2016

ok i value my sanity a lot!!

avatar alikon
alikon - comment - 31 May 2016

we all love our in-sanity ;)

avatar mbabker
mbabker - comment - 31 May 2016

Well I have one reason why the file cache adapter would be throwing an error. JPATH_CACHE = JPATH_ROOT . '/installation/cache' in the install app, the cache_path param doesn't get set in the installation, so JCacheStorageFile::isSupported() rightfully returns false because the param isn't set and the directory being defined doesn't exist.

I'm still curious why the cache API is being used though...

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 May 2016

i can install languages in the admin so is only a install problem

avatar alikon
alikon - comment - 31 May 2016

confirm

avatar mbabker
mbabker - comment - 31 May 2016

I found my answer. JInstallerHelper::downloadPackage() tries to import the installer plugin group, importing plugins triggers a call to the ACL API to get the user's view levels, that has a call to get the com_users params via JComponentHelper, and that uses the cache API. So that's why JCache gets called.

A few possible fixes. Including setting a default cache_path param value of JPATH_ROOT . '/cache' so that the param is defined and correctly used and adding a cache directory to the install app so uses of JPATH_CACHE work in that context.

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 May 2016

I found my answer. JInstallerHelper::downloadPackage() tries to import the installer plugin group, importing plugins triggers a call to the ACL API to get the user's view levels, that has a call to get the com_users params via JComponentHelper, and that uses the cache API. So that's why JCache gets called.

that was fast ????

A few possible fixes. Including setting a default cache_path param value of JPATH_ROOT . '/cache' so that the param is defined and correctly used and adding a cache directory to the install app so uses of JPATH_CACHE work in that context.

seems good

avatar brianteeman brianteeman - change - 31 May 2016
Status New Confirmed
Labels Added: ?
avatar brianteeman brianteeman - change - 31 May 2016
Category Installation Multilanguage
avatar brianteeman brianteeman - change - 31 May 2016
Labels Added: ?
avatar wilsonge wilsonge - close - 1 Jun 2016
avatar alikon alikon - change - 1 Jun 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-06-01 04:32:41
Closed_By alikon
avatar alikon alikon - close - 1 Jun 2016
avatar alikon
alikon - comment - 1 Jun 2016

close cause #10699 solved this issue

avatar wilsonge wilsonge - change - 8 Jun 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment