This question about Installation of Foswiki, Using an extension: Task filed

Save and Continue Error

After editing, I click on "Save and Continue" and I get this error:

Error: save failed. Please save your content locally and reload this page.

The save still works even after acknowledging the error. If I uninstall or disable NatEditPlugin, the save and continue works as expected.

-- WesleyJacobs - 19 May 2017

If you can, check the browser interaction with the server using the browser developer tools; network trace. If you get anything other than a 200 response on a request to the server, such as a 302 redirect or 500, that might explain what is going on. If you get a redirect, then look at the posted URL to see why its redirecting, and what it redirected to.

What is the server you are running on? (OS, distribution and Web Server).

Was this working on an earlier release of Foswiki and did you recently upgrade?

-- GeorgeClark - 19 May 2017

Red Hat Enterprise Linux Server release 7.3 (Maipo) Apache 2.4 New install Foswiki 2.1.3

I will check the above recommendations and get back to you. Thanks.

-- WesleyJacobs - 22 May 2017

I get the 302 error code, and URL is the same https://hostname/blah/blah/WebHome?t=1495464389

SAVE works great, it's just SAVE and CONTINUE that doesn't. Preview is good and so is Cancel. If I remove NatEditPlugin, problem goes away and all buttons work.

-- WesleyJacobs - 22 May 2017

Problem was resolved by CHYC on IRC. http://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2017-05-22,Mon&sel=66#l62

I got somewhere with my predicament. https://github.com/foswiki/distro/blob/master/NatEditPlugin/lib/Foswiki/Plugins/NatEditPlugin/RestSave.pm#L67
If I change that line to $response->status(200) everything just works.
If I Dumper the $response object I see both the $response->status and $response->headers->{Status}. 

-- GeorgeClark - 22 May 2017

That worked for me too. Thanks for the fix George.

-- WesleyJacobs - 23 May 2017
 

QuestionForm edit

Subject Installation of Foswiki, Using an extension
Extension NatEditPlugin
Version Foswiki 2.1.3
Status Task filed
Related Topics Item14404
Topic revision: r7 - 23 May 2017, GeorgeClark - This page was cached on 17 Nov 2018 - 20:18.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy