? Failure

User tests: Successful: Unsuccessful:

avatar klas
klas
30 May 2017

Language packs installed under older Joomla versions are registered in the database under their package name, not under their name and since rebuild function fails on them.

e.g. package with

  <name>Afrikaans (South Africa)</name>
  <packagename>af-ZA</packagename>

has name column in #_extensions table set as af-ZA and since existing update sites rebuild fails.

Testing Instructions

Set language package name in #_extensions to its packagename. Hit rebuild on update servers.

Expected result

Update server from this package is on the list.

Actual result

Update server from this package is not on the list of update servers.

Documentation Changes Required

avatar klas klas - open - 30 May 2017
avatar klas klas - change - 30 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2017
Category Administration com_installer
avatar klas klas - change - 30 May 2017
Labels Added: ?
avatar brianteeman
brianteeman - comment - 30 May 2017

@klas to help with testing can you give an example of a language pack that will need this PR

avatar klas
klas - comment - 30 May 2017

@brianteeman it is not a problem with language packs themselves, it seems like change of installer functionality from older Joomla versions (my packs have version numbers around 3.2). In those versions installer registered them in #__extensions name column under their packagename tag. This has changed somewhere along the path as new packs have name set to their name tag (can't tell whether this is a correct behaviour or not).

avatar klas klas - change - 30 May 2017
Title
Fix a problem with older language packs
Fix a problem with older Joomla versions language packs registration
avatar klas klas - edited - 30 May 2017
avatar klas klas - change - 30 May 2017
Title
Fix a problem with older language packs
Fix a problem with older Joomla versions language packs registration
avatar klas klas - change - 30 May 2017
Title
Fix a problem with older Joomla versions language packs registration
Fix a problem with older Joomla versions language packs registration and update sites rebuild
avatar klas klas - edited - 30 May 2017
avatar klas klas - change - 30 May 2017
Title
Fix a problem with older Joomla versions language packs registration
Fix a problem with older Joomla versions language packs registration and update sites rebuild
avatar klas klas - change - 30 May 2017
The description was changed
avatar klas klas - edited - 30 May 2017
avatar brianteeman
brianteeman - comment - 30 May 2017

Thanks for clarifying

avatar infograf768
infograf768 - comment - 30 May 2017

Basically, one has to install an older version of J! Install lang packs and test from there.
IMPORTANT:
One has to make sure that the en-GB package is present in the _extensions table

I had to run

INSERT INTO `jos_extensions` (`extension_id`, `package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
(802, 0, 'English (en-GB) Language Pack', 'package', 'pkg_en-GB', '', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);

to solve the issue.
Once it is solved, reinstalling the language pack corrects the db

avatar kondado
kondado - comment - 15 Jul 2017

I had this problem, did what @infograf768 said through SQL and then went through joomla panel into Extensions > Update Sites > Rebuild. Worked great!

avatar cemfirat
cemfirat - comment - 13 Dec 2017

@infograf768 thanks!
after rebuild everything well!

avatar Quy
Quy - comment - 13 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 Dec 2017

@Quy is the Code from @infograf768 Comment Part of the PR?

avatar Quy
Quy - comment - 13 Dec 2017

@franz-wohlkoenig No. I think it is only to test the PR.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Dec 2017

@Quy comments of @kondado and @cemfirat reference the Comment of @infograf768. So this Pull Request has no Tests.

avatar mbabker
mbabker - comment - 21 Jul 2018

This is RTC and fine to merge. The comment about the database record deals with the fact that package didn't exist on older Joomla versions.

avatar mbabker mbabker - change - 21 Jul 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-07-21 02:16:29
Closed_By mbabker
avatar mbabker mbabker - close - 21 Jul 2018
avatar mbabker mbabker - merge - 21 Jul 2018

Add a Comment

Login with GitHub to post a comment