VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: WirelessBrain on September 10, 2013, 16:51:29 PM

Title: Saving product descriptions in a second language has stopped working.
Post by: WirelessBrain on September 10, 2013, 16:51:29 PM
Saving product descriptions in a second language has stopped working.
When I switch to the second language, make changes in the description and click save the page reloads to the default language and overwrites the original descriptions.
The product does not show up on the page when I switch languages and when I go back in to edit the product a second time I still get the message "No (xx-xx) translation in product, please fill in the fields with flags"

This was working fine until I discovered a file permission issue on the server which prevented me from overwriting files in the theme directory.
Even with the file permission issue I was still able to add and change product descriptions etc.. with any problems.
The problems started when I contact our hosting provider and they asked me to change the PHP5 support from 'Run as an Apache Module' to 'Run as a CGI application' and then they changed the ownership which allowed me to edit the temple files again :-(
It seems I have only fixed one issue to create another more serious one!

I hope I was able to describe the issue clear enough that someone might be able to help me. I would be most grateful for any and all comment/help.

Virtuemart 2.0.22c
PHP Built On    Linux pemlinweb121.blacknight.com 2.6.32-042stab078.27 #1 SMP Mon Jul 1 20:48:07 MSK 2013 x86_64
Database Version    5.0.83-community
Database Collation    utf8_general_ci
PHP Version    5.3.3
Web Server    Apache/2.2.11 (Unix)
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 2.5.14 Stable [ Ember ] 01-August-2013 14:00 GMT
Joomla! Platform Version    Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: Khaostar on September 10, 2013, 21:00:56 PM
Exact same problem here... Fresh install. Joomla 2.5.14 and VM 2.0.22c. no module, no custom template, only Joomla and VM and I can't save in the second language. It overwrite the default one and nothing is saved in the second :(
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: WirelessBrain on September 11, 2013, 12:11:44 PM
Nice to know that I am not alone MegaQuebec.
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: edgrassere on September 11, 2013, 16:55:54 PM
I have also this Problem, since last update, any solution found by anyone ?
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: jjk on September 12, 2013, 07:52:55 AM
Should work again in VirtueMart 2.0.22d. There still is a small problem with the flags not showing in non-default languages. But editing and saving translations works again.
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: edgrassere on September 12, 2013, 08:11:26 AM
Yep with this update it works again.
Thanks, virtuemart wants to update, guess that bug will be fixed soon also.
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: ffredt on September 12, 2013, 11:04:36 AM
So, where could we find 2.0.22d ?
Thanks for your help.
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: ffredt on September 12, 2013, 11:34:52 AM
Found the answer here : forum.virtuemart.net/index.php?topic=118455.0
Reply #11 of MILBO

Thank you MILBO ;)
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: jjk on September 12, 2013, 11:36:48 AM
Quote from: ffredt on September 12, 2013, 11:04:36 AM
So, where could we find 2.0.22d ?
Here: http://dev.virtuemart.net/projects/virtuemart/files
It is not yet posted on the VirtueMart homepage at http://virtuemart.net/ (will follow soon...)
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: WirelessBrain on September 13, 2013, 10:34:02 AM
Thank you so much jjk, the update works like a dream. I was sure it was a hosting issue.
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: EvanGR on October 15, 2013, 22:50:46 PM
Hello,

We are on Joomla 2.5.14 and VM 2.0.24, and we are having this very same problem. Not only in product descriptions, but elswhere as well (e.g. Payment Info in standard VM payment method). Saving in the second language is very weird-acting and unreliable.

Any thoughts?
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: jjk on October 16, 2013, 11:12:59 AM
Quote from: EvanGR on October 15, 2013, 22:50:46 PM
Any thoughts?
Which editor do you use? As far as I know, only TinyMce and JCE work on VM multilingual websites. Also, if you 'Toggle Editor' (switch it off to see the html code), it looks like translations are not saved, but they are actually stored in the database.

In case you are using additional 3rd party or commercial plugins, check if there is an update for those, too.

You may go to VM 'Tools & Migration' and click on the button 'Install or if necessary update tables'.
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: EvanGR on October 17, 2013, 12:59:34 PM
Hi, and thanks jjk

We are using the default TinyMCE editor.

We did the 'Install or if necessary update tables' from the Tools & Migration panel. Cleaned all site cache for good measure. It seems to be working again. We hope it stays that way.

Thank you very much.
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: Generaator on January 12, 2014, 19:24:15 PM
vm2  2.0.26d
Joomla! 2.5.16
after installing update 2.0.26d got fixed error in switching languages in products, still switching categories doesn't work but database in another laguage is updated in first edit, in second try getting "No (fi-fi) translation in Product Category,please fill the fields with Flags" + no changes in language fields (flags changes), same thing with other not default languages...
joomla uses tinyMCE(tested width "no editor" and width "codemirror" - same results)
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: jjk on January 13, 2014, 09:43:00 AM
Try to go to VM 'Tools & Migration' and click on the button 'Install or if necessary update tables' check if this solves your problem.
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: Generaator on January 14, 2014, 18:42:15 PM
nope, this(install/update tables) doesn't help, some small changes appearing, having four languages, now 3 of them switches OK, except en-gb
on switch gives "No (en-gb) translation in Product Category, ...
in database ( j_virtuemart_categories_en_gb ) value exists...
maybe this .22e http://forum.virtuemart.net/index.php?topic=118455.30 (http://forum.virtuemart.net/index.php?topic=118455.30) resolves the thing...
....
installed this http://dev.virtuemart.net/attachments/download/644/com_virtuemart.2.0.22e_extract_first.zip (http://dev.virtuemart.net/attachments/download/644/com_virtuemart.2.0.22e_extract_first.zip)
tested
now tiny_mce.js throws a error somewhere there

(k.isGecko||q){m=u.getBody();if(m.setActive){m.setActive()}else{m.focus()}if(q){t.normalize()}}if(r&&r.ownerDocument==s){n=s.body.createControlRange();n.addElement(r);n.select()}}if(k.activeEditor!=u){if((o=k.activeEditor)!=null)

this is in IE11
(edit:this error was related to enabled disabled editors in joomla plugins)

on firefox query starts for new data
http://xxx/administrator/index.php?option=com_virtuemart&view=translate&task=paste&format=json&lg=ru-RU&id=40&editView=product&324b0b6e32a85abb1974434072b039bf=1

this is now width 2.0.22e and switching Products!
In Categories seems that when making logout/login then switching appears width last new entry???
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: jjk on January 15, 2014, 11:59:07 AM
I can't reproduce your problem with Joomla 2.5.17/VM 2.0.26d. I checked with Joomla's built-in TinyMCE version and the latest JCE editor version. Both are working fine in my primary language and translations.
Title: Re: Saving product descriptions in a second language has stopped working.
Post by: Generaator on January 16, 2014, 11:19:52 AM
By mistake i downgraded, now again in 2.0.26d. Seems that this error only appears width ie11, in firefox 26.0 is all OK.