Content Duplication Bug

Having Problems? Need Help? Post here!

Re: Content Duplication Bug

Postby kivig » Mon Feb 06, 2012 2:28 am

It seems that latest release fixed most things.
Though a couple of times I had disappearing or copied non-English content. <p>, &nbsp; and alike tags appear and disappear mysteriously. The page editing loads differently if switched to html mode first..
But hey, at least it works in general now! :)
kivig
 
Posts: 15
Joined: Tue Jan 24, 2012 1:50 am

Re: Content Duplication Bug

Postby eviotto » Mon Feb 06, 2012 3:22 pm

I updated to the latest version 2.5.28, and I am still encountering problems.
When I create a page and add content to both languages, then press publish, both languages are published correctly.
When I go back to make a revision and change the content, one of the language content disappears. If the last tab I clicked was "English, visual", then the French content disappears. If I press "update" or "save" with the French tab, then the English content disappears.
Anyone having the same issue?
eviotto
 
Posts: 12
Joined: Wed Jan 18, 2012 6:05 pm

Re: Content Duplication Bug

Postby Kokarn » Mon Feb 06, 2012 3:36 pm

This update fixed the bugs i have encountered but added a new one.

On every page it throws "qtrans_split is not defined" and IE refuses to edit the titles.
Other browsers throw the same error but allows the editing to continue.

Happens on all pages.
Current projects: eSport Tournaments and MOBA news
Kokarn
 
Posts: 17
Joined: Wed Dec 14, 2011 12:01 pm

Re: Content Duplication Bug

Postby alexxxxey » Mon Feb 06, 2012 8:20 pm

I tried version 2.5.28, in new posts/pages plugin don't dublicate the content(cool), but when text is formatted in editor it crop any <p> tags and change it with &nbsp;
alexxxxey
 
Posts: 8
Joined: Tue Jan 17, 2012 12:04 pm

Re: Content Duplication Bug

Postby fyllhund » Tue Feb 07, 2012 9:53 am

my temporary fix is to add this to qtranslate_javascript
before the ending } tag.

Code: Select all
function cbnet_tinymce_config( $init ) {
   
      // Don't remove line breaks
      $init['remove_linebreaks'] = false;
      // Convert newline characters to BR tags
      $init['convert_newlines_to_brs'] = true;
      // Do not remove redundant BR tags
      $init['remove_redundant_brs'] = false;
   
      // Pass $init back to WordPress
      return $init;


solves the <p> and <br> BREAKS
fyllhund
 
Posts: 4
Joined: Fri Jan 13, 2012 12:28 pm

Re: Content Duplication Bug

Postby alexxxxey » Tue Feb 07, 2012 10:52 am

fyllhund wrote:my temporary fix is to add this to qtranslate_javascript
before the ending } tag.

Code: Select all
function cbnet_tinymce_config( $init ) {
   
      // Don't remove line breaks
      $init['remove_linebreaks'] = false;
      // Convert newline characters to BR tags
      $init['convert_newlines_to_brs'] = true;
      // Do not remove redundant BR tags
      $init['remove_redundant_brs'] = false;
   
      // Pass $init back to WordPress
      return $init;


solves the <p> and <br> BREAKS


Thanks! It works!
alexxxxey
 
Posts: 8
Joined: Tue Jan 17, 2012 12:04 pm

Re: Content Duplication Bug

Postby fyllhund » Tue Feb 07, 2012 11:32 am

alexxxxey wrote:


Thanks! It works!


Great , tell me if you have any bugs.
fyllhund
 
Posts: 4
Joined: Fri Jan 13, 2012 12:28 pm

Re: Content Duplication Bug

Postby alexxxxey » Tue Feb 07, 2012 1:20 pm

Hello!
I installed fresh qtranslate 2.5.28 + wP 3.3.1. Plugin works but it remove any <p>, linebreaks.. In result we can't normally formatting paragraph. In function.php i add this strings(thanks fyllhund):
function cbnet_tinymce_config( $init ) {

// Don't remove line breaks
$init['remove_linebreaks'] = false;
// Convert newline characters to BR tags
$init['convert_newlines_to_brs'] = true;
// Do not remove redundant BR tags
$init['remove_redundant_brs'] = false;

// Pass $init back to WordPress
return $init;
}
add_filter('tiny_mce_before_init', 'cbnet_tinymce_config');

And begin test it..
I have 3 langs: LV(default lang), RU, EN. And:
1) i add ne page with texts and formatting like this(in HTML would be): <h1>Hello</h1><p>Paragraph 1</p><p>Paragraph 2</p>. But i add text from Visual mode like this: wrote "Heading 1", then
choose style Heading 1, push "Enter", then wrote "Paragraph 1", push "Enter", then "Paragraph 2"
2) Result:
2.1) default language have right formatting, but after Heading 1, Paragraph 1 i have additional "enters"/linebreaks(empty line, where i can wrote something).
2.2) Another languages right.
2.3) BUT if i switch languages tab from default language to additional and back(for example LV->RU->LV) additional "enters"/linebreaks disappear.
3) If i push "Update" button twice, then i have point 2.1 and non default languages(RU and EN) have an &nbsp; in the beginning of the text. If your text begins from <h1> tag, in a result i have
a empty string in the beginning of the text(because <h1> automaticly add linebreak before and after), but if text begins with simple text without formatting, this &nbsp; automaticly removes.
4) If a do point 1) and save page with active HTML mode(not Visual), then it add point 2.1) and inserts(in default lang) &nbsp; after each entry.

Sorry for bad english.
I have something like this
alexxxxey
 
Posts: 8
Joined: Tue Jan 17, 2012 12:04 pm

Re: Content Duplication Bug

Postby StephaneGallay » Tue Feb 07, 2012 3:13 pm

Just upgraded qTranslate to 2.5.28 on WP 3.3.1 and we now have the content on the secondary language (German; main language being English) disappearing after the "More...". when we go back to edit it.

Our web site is http://www.lutheranworld.org example page with that problem is http://www.lutheranworld.org/lwf/index. ... ml?lang=de

Help would be very much appreciated.

Many thanks in advance!
Stéphane Gallay -- Production Coordinator - Design, Web and Publications
The Lutheran World Federation -- www.lutheranworld.org
StephaneGallay
 
Posts: 14
Joined: Wed Feb 25, 2009 9:44 am

Re: Content Duplication Bug

Postby p2tu » Tue Feb 07, 2012 8:14 pm

alexxxxey wrote:Hello!
I installed fresh qtranslate 2.5.28 + wP 3.3.1. Plugin works but it remove any <p>, linebreaks.. In result we can't normally formatting paragraph. In function.php i add this strings(thanks fyllhund):
function cbnet_tinymce_config( $init ) {

// Don't remove line breaks
$init['remove_linebreaks'] = false;
// Convert newline characters to BR tags
$init['convert_newlines_to_brs'] = true;
// Do not remove redundant BR tags
$init['remove_redundant_brs'] = false;

// Pass $init back to WordPress
return $init;
}
add_filter('tiny_mce_before_init', 'cbnet_tinymce_config');


I had this problem too and your code helped. Hope it will be fixed in future releases...
p2tu
 
Posts: 11
Joined: Wed Apr 13, 2011 6:07 pm

PreviousNext

Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google [Bot] and 2 guests