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

[4.0] Re-installing languages broken #15631

Closed
infograf768 opened this issue Apr 27, 2017 · 13 comments
Closed

[4.0] Re-installing languages broken #15631

infograf768 opened this issue Apr 27, 2017 · 13 comments

Comments

@infograf768
Copy link
Member

infograf768 commented Apr 27, 2017

Steps to reproduce the issue

Install a language through Installation->Install->Upload package file.
for example pick https://github.com/infograf768/fr-FR-3.x/releases/download/3.7.0.2_stable/fr-FR_joomla_lang_full_3.7.0v2.zip

Then re-install it the same way.
One gets:
0 - An error has occurred.
Call to undefined method JInstallerAdapterLanguage::set()

Note: First install works fine as well as uninstall the pack

@mbabker
Copy link
Contributor

mbabker commented Apr 27, 2017

The install adapters don't extend from JObject anymore so get/set aren't there. Though I swear when I did that change I caught all of the uses...

@Bakual
Copy link
Contributor

Bakual commented May 24, 2017

Installing a language from the language installer is indeed broken currently. It uses the "Install from URL" method. From what I debugged so far, the response from JHttpTransportCurl->get($url) is wrong. It does contain the header but no code and body property and thus afterwards everything fails.

It may be related to #13936 (not sure).

@mbabker
Copy link
Contributor

mbabker commented May 24, 2017

There won't be an explicit body or code property anymore, but calling $response->body should still give the body contents through our magic getter and B/C layer.

@Bakual
Copy link
Contributor

Bakual commented May 24, 2017

Thanks. Have to debug bit more then 😊

@Bakual
Copy link
Contributor

Bakual commented May 28, 2017

Btw, same issue in J3.8 for me.

@laoneo
Copy link
Member

laoneo commented May 28, 2017

Can this be the cause #15884?

@Bakual
Copy link
Contributor

Bakual commented May 28, 2017

I don't think it's related to that. It seems to run through all but in the end I get "Error
Unable to find install package"
It also doesn't work in the installation step where you could add more languages.

@Bakual
Copy link
Contributor

Bakual commented May 28, 2017

@infograf768 Can you confirm that this is the same issue as yours? And that it also doesn't work in 3.8?
If so, then this will be a release blocker for 3.8.0.

@wilsonge
Copy link
Contributor

There is a pull request with #16300

@Bakual
Copy link
Contributor

Bakual commented May 29, 2017

Apparently we have two issues as it looks. Will open a new one for the remaining.

@wilsonge
Copy link
Contributor

Thankyou!

@Bakual
Copy link
Contributor

Bakual commented May 29, 2017

Actually, I'm just stupid. The XML has <targetplatform name="joomla" version="3.[01234567]"/> and thus currently in 3.8 and 4.0 no matching language pack will be found.

@brianteeman
Copy link
Contributor

@Bakual was just about to point that out - glad you spotted it yourself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants