Support

Akeeba Backup for Joomla!

#20288 JLIB_INSTALLER_DEFAULT_STYLE (due to admintools)

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by Ch3vr0n on Tuesday, 17 June 2014 23:47 CDT

Ch3vr0n
Yes, i know this is in the wrong section but i do not have the payed version of Admin Tools so i'm forced to post it here.

Now here's the problem. When any part of Admin tools is enabled, installing templates results in them being given the name "JLIB_INSTALLER_DEFAULT_STYLE" under styles. One has to manually click that JLIB name and enter the appropriate style name/sitename/slogan and then everything shows correctly.

Since my template was created with artisteer i initially thought something was up with that, but they pointed me after some research to http://www.joomlart.com/forums/showthread.php?95799-Jlib_installer_default_style

since i don't feel comfortable editing extension files (who knows what the impact would be down the road i'll use that manual work around for now but i figured i'd report it nonetheless so it could be fixed

that joomlart topic seems to indicate that it's limited to the system redirect plugin, but that's not the case. With that one disabled and the installer part enabled it still happens.

nicholas
Akeeba Staff
Manager
NO NO NO DO NOT DO WHAT THEY SAY IN THEIR FORUM!!!!! It will completely DISABLE Admin Tools. I will have to take a look at what is really going on but UNDER NO CIRCUMSTANCES SHOULD YOU FOLLOW THEIR ADVICE which DISABLES all Admin Tools protection on your site.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nicholas
Akeeba Staff
Manager
I am trying to reproduce this issue but it seems to not be possible. There is one reason why this could happen, though. If the core Joomla! library translation file for your administrator language does not have the translation for the JLIB_INSTALLER_DEFAULT_STYLE string you will end up seeing the untranslated string. If your administrator is English you should see the correct translation ("Default").

There is also an explanation why this happens when you are using Admin Tools. We are loading Joomla!'s core library translation files in our plugin as we're using the translated error messages found in it. When Admin Tools is not running this file is not loaded and maybe the template developers load it themselves, however they get to load it in English instead of your chosen language. This has the effect that the JLIB_INSTALLER_DEFAULT_STYLE translation string is always loaded (in English), masking the underlying problem (missing translation in your administrator language). I can't think of any other reasonable explanation.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Ch3vr0n
yeah i didn't do that change. Didn't feel comfortable editing extension files without knowing the full impact. My site is running core english with dutch language pack & content entry added and dutch set as default and string doesn't contain "default", it should get replaced by the themename from the zipfile (sitename)

nicholas
Akeeba Staff
Manager
Can you try logging in to your site's administrator using the English language and retry the installation? I believe the installation should be successful and you won't see the untranslated JLIB_INSTALLER_DEFAULT_STYLE string.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Ch3vr0n
Sadly you were wrong

Site: nl
admin: en
set template to joomla default
delete then reinstall custom template
still JLIB error

Site: en
admin: en
template still joomla default
delete then reinstall custom
still JLIB message

nicholas
Akeeba Staff
Manager
I cannot reproduce this with Joostrap templates. I cannot reproduce this with RocketTheme templates (both the free Afterburner and some commercial ones I have access to) either. It only happens with Joomlart templates.

I can also see why. All other templates have a .sys.ini language file which overrides JLIB_INSTALLER_DEFAULT_STYLE with something that makes sense. For example, Joostrap base template has:
JLIB_INSTALLER_DEFAULT_STYLE="Joostrap Base Template v3.1.6"

And if you look at Joomla!'s code, in libraries/cms/installer/adapter/template.php, you will see that Joomla! does try to load the .sys.ini file provided by the template. I don't see any kind of fallback to the Joomla! core library translation files anywhere in the installer code.

We can provide a workaround in the next version of Admin Tools (3.0.3), by forcibly loading Joomla!'s core language files even when we don't block the installation. This seems to help with templates which don't have a .sys.ini translation file overriding the JLIB_INSTALLER_DEFAULT_STYLE language string.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Ch3vr0n
i'm not using joostrap, rockettheme, nor joomlart but artisteer template. I'd be happy to send you a quick template if that helps

nicholas
Akeeba Staff
Manager
I was able to reproduce this with JA Purity II and I also confirmed that the fix I described above does work. IMHO the problem is three parts Joomla!, one part template and one part our code. Hopefully we'll end up rewriting Joomla!'s extension installation code and get rid of funky issues like this :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Ch3vr0n
Good that you were able to reproduce this :) Must be a specific combination of all 3 that makes it trigger that issue. I have notified the ppl at artisteer as well in case they can fix something at their end too to reduce the risc of this happening.

nicholas
Akeeba Staff
Manager
Yeah, it seems to be a very strange combination. I have my suspicions but writing a workaround was FAR easier than tracking down the exact problem. In any case, I am happy I found a viable solution!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Ch3vr0n
I'll await the new version then uninstall and re-install template to either confirm or deny the fix :)

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!