Topic on Project:Support desk

VisualEditor 1.30 truncates data and repeats them

10
Summary by Czech.Fox

Caused by bug in curl (fixed in libcurl 7.56.1) in Windows binaries of PHP (any version). We have to wait for future versions.

Czech.Fox (talkcontribs)

Last version of VisualEditor for MW 1.30 truncates data. When I create or edit a page which contains long code (can be just Lorem ipsum), which is more than ~10kB (size is changing around this size), it truncates data after this size. Instead of the subsequent data, it prints the following code (I present only part because of this editor limitation) followed by the first 10kB of code from page (Lorem ipsum text), and again and again until it reaches the original size of code.

... <meta charset="utf-8" /> <meta property="mw:pageNamespace" content="0" /> <meta property="mw:pageId" content="1" /> <meta property="dc:modified" content="2017-12-19T11:43:54.000Z" /> <meta property="mw:revisionSHA1" content="52037c2060186c3b757682d49c79c681de3a92b6" /> <meta property="isMainPage" content="true" /> <meta property="mw:html:version" content="1.5.0" /> <title>Main_Page</title><base href="https://domain.com/wiki/company/index.php?title=" />[//domai ...

It looks to me like some timeout problem. I use MW 1.30 on Windows Server with IIS 7.5 and PHP 7.0.

Czech.Fox (talkcontribs)

Command line "node bin/server.js" returns these messages when this issue occurs:

{"name":"lib/index.js","hostname":"DEVELOPER","pid":6324,"level":50,"logType":"error/html2wt/link","wiki":"wiki$0","title":"Main_Page","oldId":"31","reqId":null,"userAgent":"VisualEditor-MediaWiki/1.30.0","msg":"Encountered <link rel=\"dc:replaces\" resource=\"mwr:revision/30\"> -- serializing as extlink and dropping <a> attributes unsupported in wikitext.","longMsg":"Encountered\n<link rel=\"dc:replaces\" resource=\"mwr:revision/30\">\n-- serializing as extlink and dropping <a> attributes unsupported in wikitext.","levelPath":"error/html2wt/link","time":"2017-12-21T09:07:50.488Z","v":0}

or

{"name":"lib/index.js","hostname":"DEVELOPER","pid":6324,"level":30,"logType":"info/html2wt","wiki":"wiki$0","title":"Main_Page","oldId":"27","reqId":null,"userAgent":"VisualEditor-MediaWiki/1.30.0","msg":"Incompatible constraints (merge): {\"a\":{},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1} {\"a\":{},\"b\":{\"min\":2,\"max\":2},\"min\":2,\"max\":2,\"constraintInfo\":{\"onSOL\":false,\"sepType\":\"sibling\",\"nodeA\":\"P\",\"nodeB\":\"P\"}} {\"a\":{\"min\":1,\"max\":2},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1}","longMsg":"Incompatible constraints (merge):\n{\"a\":{},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1}\n{\"a\":{},\"b\":{\"min\":2,\"max\":2},\"min\":2,\"max\":2,\"constraintInfo\":{\"onSOL\":false,\"sepType\":\"sibling\",\"nodeA\":\"P\",\"nodeB\":\"P\"}}\n{\"a\":{\"min\":1,\"max\":2},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1}","levelPath":"info/html2wt","time":"2017-12-21T09:05:57.474Z","v":0}

Pankaj79kumar (talkcontribs)

Hi Czech,

Did you find any solution to this problem?

Czech.Fox (talkcontribs)
Czech.Fox (talkcontribs)

We found the problem. It's caused by bug in curl in Windows binaries of PHP (any version). We have to wait for future versions of PHP.

Pankaj79kumar (talkcontribs)
58.68.103.186 (talkcontribs)

I am also facing the same issue.

Am using the MW 1.29 and PHP of 7.0.25.

My data gets truncated while adding through visual editor.

Any one help me sort it out??

Czech.Fox (talkcontribs)

Update PHP to 7.0.27+

This post was hidden by SoorajNair (history)
SoorajNair (talkcontribs)

iam using bitnami package in windows

How can i update php? my current version is.0.25. ..

Please help me

Reply to "VisualEditor 1.30 truncates data and repeats them"