Loading...
 
Skip to main content

Features / Usability


Wiki Save & Preview Error - Duplication

Using version 3.1

On saving and previewing Wiki changes, I frequently get additional content added. It almost seems that it is adding from history. It puts what appears to be earlier content immediately after current content. I have had as many as three replications going at one time. I don't have any idea what to do and would be grateful for recommendations!

I've seen other reports similar to this but don't know offhand what the cause or solution is. Are you using the normal editor (for wiki syntax), or the WYSIWYG editor?

-- Gary

I am using normal editor only. On a previous setup, I tried both, but because of other issues I decided to dump it, reinstall, and stick with normal editor. This, of course, leaves me with a useless product since I really can't add input without extra work (and the extra work doesn't always provide a fix), and I can't open it to other users.

You had offered to send me an .htaccess file because of sefurl issues with the install from Simple Scripts (still need that, by the way - Forum ThreadQuestion), and I was wondering if there can be any relationship?

Thanks!


I'm having the same problem as well. I have noticed that if you edit from the Section edit buttons, the save works correctly. I will try to use the wysiwyg editor and report back.

I have tried again with the wysiwyg editor, and I get the same results.

I looked and noticed that the link for the main page edit button is:
http://..../tiki-index.php?page=HomePage#mainQuestion
and the link for the Section Edit button is
http://..../tiki-editpage.php?page=HomePage&hdr=1Question

If I edit the page as a whole using:
http://..../tiki-editpage.php?page=HomePageQuestion

the page edit works as I would expect and gets not duplication with the normal editor.

Edit:
Ok, the top button link seems to have a OnClink function that calls the function "loadComponent()" with a parameter for "tiki-editpage.php"

The problem seems to have something to do with ajax, maybe if you disabled ajax support, it might go away. I have not figured out how to fix the problem yet, but I did find this in the change log.

------------------
r17728 | jonnybradley | 2009-03-31 16:18:22 +0200 (Tue, 31 Mar 2009) | 6 lines

FIX AJAX loadComponent() JavaScripts now work
Specifically for tiki-editpage.php called via the topline page edit icon (so mostly tested with that)
Quicktags, "lose changes" and "edit timeout" (maybe more) now work, overlib tooltips don't, but no longer cause an error.






I'm not sure why the link on the main edit button is different. I am going to experiment on some php files and see if I can change the link on the edit button and see if that will fix the problem for me.

I disabled AJAX support. Now the link on the edit button goes directly to tiki-editpage.php and the edit works fine without duplicate text.

I will try to take some time to look at the code for "loadComponent", but it is not likely I will find a fix. It might be better to figure out how to report this in the bug tracker so the actual coder who knows the code for that component can take a look at it.

If you want to disable AJAX in your as well until a fix is found, then go to Admin->Features->Experimental and check the AJAX button off.

This may very well also disable other features that depend on AJAX, so I'm not sure if that's viable for you or not.

That did it! I ran through save and preview multiple times to make certain disabling AJAX worked, since it occasionally didn't duplicate the content. I don't remember when or why I would have enabled it in the first place, but thanks for figuring it out!