?
avatar biltongandpotroast
biltongandpotroast
19 Sep 2018

Steps to reproduce the issue

Add any or all of the folowing overrides to file /language/overrides/en-GB.override.ini by editing it over ftp using an application like FileZilla or cPanel File Manager.

COM_VIRTUEMART_CART_NO_SHIPPING_METHOD_PUBLIC="We are sorry, no delivery options are available for your country and type of products selected. View <a href="index.php?option=com_content&view=article&id=53&Itemid=1161&tmpl=component#delivery-restrictions" class="jcepopup" data-mediabox-height="600" data-mediabox-width="800">Delivery Restrictions."

COM_VIRTUEMART_REG_COMPLETE="<div class="componentheading">Registration complete, these details will be used at checkout. Please continue shopping."

PLG_SYSTEM_VPFRAMEWORK_COOKIE_CONSENT_MESSAGE="This website uses cookies to ensure you get the best experience on our website. Please read our <a href="https://www.trendco.co.uk/terms-and-conditions-of-use\" target="_blank">website Terms & Conditions of Use and <a href="https://www.trendco.co.uk/privacy-policy-security#cookies\" target="_blank">Privacy Policy for more information."

Expected result

These new values should be appended to the language file.

Actual result

All values of the language file are removed except for the following:

MOD_LOGIN_VALUE_USERNAME Username/Email
JLIB_LOGIN_AUTHENTICATE Username/email and password do not match or you do not have an account yet.
JGLOBAL_AUTH_NO_USER Username/email and password do not match or you do not have an account yet.
JGLOBAL_AUTH_INVALID_PASS Username/email and password do not match or you do not have an account yet.
COM_VIRTUEMART_USERNAME Username/Email

System information (as much as possible)

Joomla 3.8.12
PHP 7.0.31

Additional comments

These entries can be added individually using the Joomla Admin->Languages: Overrides->New function but I'm not convinced this always works (probably when "" are not escaped).

When the values are lost, it is a big task restoring the previous values one by one in this way. The quicker alternative is to edit the file using ftp and pasting all values in from a backup file but then this fails when you include values with "" so they have to be done seperately as explained above.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar biltongandpotroast biltongandpotroast - open - 19 Sep 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Sep 2018
avatar infograf768
infograf768 - comment - 19 Sep 2018

These entries can be added individually using the Joomla Admin->Languages: Overrides->New function but I'm not convinced this always works (probably when "" are not escaped).

Joomla automatically escapes doublequotes in the values when overrides are created this way.
It works perfectly, The doublequotes should never be entered as escaped in the value.

screen shot 2018-09-19 at 15 55 56

will give
COM_VIRTUEMART_REG_COMPLETE="<div class=\"componentheading\" />Registration complete, these details will be used at checkout. Please continue shopping."

When you edit directly the file xx-XX.override.ini, the escape should be present
Your example IS wrong

PLG_SYSTEM_VPFRAMEWORK_COOKIE_CONSENT_MESSAGE="This website uses cookies to ensure you get the best experience on our website. Please read our <a href="https://www.trendco.co.uk/terms-and-conditions-of-use\" target="_blank">website Terms & Conditions of Use and <a href="https://www.trendco.co.uk/privacy-policy-security#cookies\" target="_blank">Privacy Policy for more information."

the escape sign is only entered for 2 closing doublequotes.

It should be
PLG_SYSTEM_VPFRAMEWORK_COOKIE_CONSENT_MESSAGE="This website uses cookies to ensure you get the best experience on our website. Please read our <a href=\"https://www.trendco.co.uk/terms-and-conditions-of-use\" target=\"_blank\">website Terms & Conditions of Use and <a href=\"https://www.trendco.co.uk/privacy-policy-security#cookies\" target=\"_blank\">Privacy Policy for more information."

Then, it is easy to check that override displays correctly in the override manager (without the escape signs) and no problem at all...

No bug here at all.

avatar biltongandpotroast
biltongandpotroast - comment - 19 Sep 2018

I have just edited the override value MOD_LOGIN_VALUE_USERNAME="Email/Email" in Joomla Admin->Language Overrides, changing it to MOD_LOGIN_VALUE_USERNAME="Username / Email" and this resulted in the overrides becoming corrupted same as Actual Result reported above.

I have attached a backup of en-GB.override taken before this occurred.en-GB.override - 20180919 - backup after problem resolved.txt


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22251.

avatar infograf768
infograf768 - comment - 19 Sep 2018

I have absolutely no issue using your file and then modifying that value.

screen shot 2018-09-19 at 17 47 56

Can you attach here the "corrupted" file?

avatar biltongandpotroast
biltongandpotroast - comment - 19 Sep 2018

I have just repeated this with same result.

Steps:

  1. Edit the file /language/overrides/en-GB.override.ini and delete contents, replace with contents in attached file1.txt. This file excludes the 3 values containing escaped quotes.
  2. Check Overrides in Joomla Admin - they look good.
  3. In Joomla Admin, add the 3 overrides from file2.txt, removing the escaped quotes by changing the \" with ".
    1. Check Overrides in Joomla Admin - they look good.
  4. Edit any other override in Joomla Admin.
  5. Check Overrides in Joomla Admin - all gone except for those in file3.txt. Where do these come from?

file2.txtfile3.txtfile1.txt


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22251.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Sep 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Sep 2018
Category Language & Strings
avatar ReLater
ReLater - comment - 19 Sep 2018

I can't replicate this issue wit nightly 3.9 of today. I followed all steps.
Did you clear the cache in overrides view? Maybe a db issue?
Did you check the filter setting?

avatar infograf768 infograf768 - change - 20 Sep 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-09-20 05:37:53
Closed_By infograf768
avatar infograf768 infograf768 - close - 20 Sep 2018
avatar infograf768
infograf768 - comment - 20 Sep 2018

Absolutely no problem here. No idea what happens in your case.
You may have to totally replace the file on your host by a new one.

In any case, this is not a Joomla bug. Closing Issue.

avatar biltongandpotroast
biltongandpotroast - comment - 20 Sep 2018

fyi

I have been using Clear Cache throughout in trying to resolve this problem and checking the contents of table _overrider accordingly. It is currently empty with all overrides restored as per above steps.

I am familiar with the filter setting, Site / Administrator. I am only havving a problem with Site overrides.

File permissions have been checked and are correct.

I have checked the Joomla core files in /administrator/components/com_languages against the same in a new Joomla 3.8.12 package and they are all identical. There are no admin template overrides.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22251.

Add a Comment

Login with GitHub to post a comment