I’ve finally solved my failures with VisualEditor in 1.28. The wiki server (Ubuntu) was missing the php-curl package. After installation, VisualEditor works flawlessly.
I was able to diagnose this by watching the network traffic between MediaWiki and parsoid using Chrome’s developer tools (the "Network" tab). There it was... the error message "Call to undefined function curl_init()."
I’m going to file a bug report that the user-visible error message in this case can perhaps be Improved. Currently the message is just a JavaScript alert that says:
examplewiki.com replied: "http"
and no errors appear in any log files.
Thanks to everyone who helped with this issue!!
DanB
On 22 December 2016 at 16:03, Daniel Barrett danb@cimpress.com wrote:
I was able to diagnose this by watching the network traffic between MediaWiki and parsoid using Chrome’s developer tools (the "Network" tab). There it was... the error message "Call to undefined function curl_init()."
I’m going to file a bug report that the user-visible error message in this case can perhaps be Improved. Currently the message is just a JavaScript alert that says:
examplewiki.com replied: "http"
Yeah, that's a bit broken and should show that the error code was 500 - https://phabricator.wikimedia.org/T152429 In addition to that (which is much more general), for this specific dependency, we could also have the VE API code check whether the function exists, and if not throw a particular error that can be shown nicely by the client. A bug report for that would be good, thanks.
wikitech-l@lists.wikimedia.org