Firefox cant edit Pages - Failed to lock the page

When i try to edit a Page with Firefox with the Edit button on a Site i get the Error “Failed to lock the page.” but in Chrome is it still working fine. Also wenn i go with Firefox on that page on the 3 Points menu and open for Example History and click then Edit i came to the WYSIWYG Editor normaly?

Very Strange behavior

Any ideas?

Thank you

1 Like

There’s no relationship between displaying the history viewer and the edit button. The edit button always edits the page content. And the default editor is the WYSIWYG in-place editor. You’ll have exactly the same under any browser.

Try refreshing your browser cache (or use the FF private browsing mode to verify).

Thanks

I confirmed this bug .When I use the FF private browsing mode ,the error occured, too.
the edit button only works when you are viewing source of page.
Screenshot_2020-12-31 Ln - XWiki

Did you try using Chrome to see if it reproduces there too?

Would be helpful if you could check the network tab in the developer console: when you click on the button, you should see a request performed with a 4xx or 5xx status. It would be helpful to see the answer on this request.

On Microsoft Edge (chromium based) it reproduce.
the respond for firefox pasted below.

HTTP/2 302 Found
server: nginx/1.14.0 (Ubuntu)
date: Thu, 31 Dec 2020 10:31:13 GMT
content-type: text/plain;charset=UTF-8
content-length: 0
content-script-type: text/javascript
content-location: /xwiki/bin/view/Main/
pragma: no-cache
cache-control: max-age=0
expires: Thu, 31 Dec 2020 10:31:13 GMT
location: http://private.jingkaimori.top/xwiki/bin/lock/Main/WebHome?ajax=1&action=edit&language=
content-language: en-US
X-Firefox-Spdy: h2

Which version of XWiki do you use?

XWiki Debian 12.10.2

Some further infomation:
When pressing “edit” on the main view,the http request is :

GET /xwiki/bin/get/Main/?sheet=XWiki.InplaceEditing&action=lock&lockAction=edit&language=en_US&outputSyntax=plain&timestamp=1609607579393 HTTP/2
Host: mydomain.top
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate, br
X-Requested-With: XMLHttpRequest
Connection: keep-alive
Referer: https://mydomain.top/xwiki/bin/view/Main/
Cookie: JSESSIONID=AC655C91FB7F00C69CB9AD50BAD97FF9; username="bNg76hQEwSXwZzTcDnIQ0g__"; password="I7NxXgICPO2omqnCVWPCwA__"; rememberme="false"; validation="f7f42d60640d143835434e34b873e09a"
TE: Trailers

which returns to the error message, and the proper request is:

GET /xwiki/bin/edit/Main HTTP/2
Host: mydomain.top
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: JSESSIONID=AC655C91FB7F00C69CB9AD50BAD97FF9; username="bNg76hQEwSXwZzTcDnIQ0g__"; password="I7NxXgICPO2omqnCVWPCwA__"; rememberme="false"; validation="f7f42d60640d143835434e34b873e09a"
Upgrade-Insecure-Requests: 1
TE: Trailers

Inplace Editor does not loaded properly.Can I disable Inplace Editor to temprarily bypass the bug?

related topic:Message “failed to lock the page” when tring to edit a page

following the topic above I solved this issue.Thx