Topic on Project:Support desk

Visual Editor 500 error

12
Star Warden (talkcontribs)

Hi. Visual Editor refuses to work on my wiki (http://dragon-mania-legends-wiki.mobga.me/Main_Page). It keeps giving me this error: http://prnt.sc/d0xkk4. I installed parsoid and node.js correctly and even installed curl and php5-curl as specified here: Extension:VisualEditor#Troubleshooting

I assume php7.0 is not needed since the wiki is on PHP 5. The setMwApi should be configured properly: parsoidConfig.setMwApi({ prefix: 'localhost', uri: 'http://67.205.134.73/api.php', domain: 'localhost' });

and so should the local settings.php one

wfLoadExtension( 'VisualEditor' );

$wgVirtualRestConfig['modules']['parsoid'] = array(

'url' => 'http://67.205.134.73:8142',

'domain' => 'localhost',

'prefix' => 'localhost'

);

The server runs nginx and not apache, but I am not sure if there is a rewrite rule (nor how to check it).

I checked the error.log and this is what I pulled from it: http://pastebin.com/UViRtMTq

I am not sure where I am going wrong. Would anyone please point me in the right direction?

87.123.21.53 (talkcontribs)

There are two different fatal errors in your log:

PHP Fatal error:  Call to undefined function curl_multi_init() in /srv/dml-wiki/includes/libs/MultiHttpClient.php on line 418" while reading response header from upstream, request: "GET /api.php?action=visualeditor&format=json&paction=parse&page=Treater_Dragon&uselang=en

This error can prevent VisualEditor from loading. Please make sure that cURL is installed and activated in your PHP installation!

The other error, ''PHP Fatal error:  Call to undefined method QuestyCaptcha::getFormInformation()'' most likely is not related to issues with VisualEditor. Maybe the ConfirmEdit extension still needs an update; function getFormInformation() has been added to the code of the master branch in July this year. Please make sure that you are using the code for version 1.27, not the one from master!

Star Warden (talkcontribs)

Hi. I ran apt-get install curl and apt-get install php5-curl, then ran service nginx restart and service php5-fpm restart, all while using root in the shell (putty). Both times it said that curl and php5-curl are up to date. Then I followed the instructions here: http://stackoverflow.com/questions/23233460/how-do-i-enable-curl-for-php and here: http://stackoverflow.com/questions/15089871/php-why-php-curl-is-not-working-with-nginx to make sure curl is enabled and it was already enabled, yet I am still getting http 500 errors. Here are the latest that I pulled from the error.log (http://pastebin.com/22XnAHRN).

As for ConfirmEdit, I am using the 1.27 branch. When I switched to the 1.27 mw software, I downloaded all extensions (except four: Comments, MediaWikiChat, WikiForum, Widgets) using git clone -b REL1_27 https://gerrit.wikimedia.org/r/p/mediawiki/extensions/<EXT>.git and ConfirmEdit was one of them. I just checked the extension, in the shell, using git branch and it returned REL1_27.

87.123.0.100 (talkcontribs)

The cURL error no longer is in your logs now.

You still have some "7250 recv() failed (104: Connection reset by peer) while reading response header from upstream" errors in the log. I do't really know what that means - I am seeing this kind of error on my servers as well. They just happen like every 10.000th request. I don't know why.

The error "Call to undefined method QuestyCaptcha::getFormInformation() in /srv/dml-wiki/extensions/WikiForum/WikiForumClass.php on line 359"" is happening inside the WikiForum extension. Please use the version for MW 1.27 - the one, which you are using currently, obviously is not compatible.

Star Warden (talkcontribs)

The problem with using REL1_27 of WikiForum is that I am getting this error: Fatal error: Uncaught exception 'Exception' with message '/srv/dml-wiki/extensions/WikiForum/extension.json does not exist!' in /srv/dml-wiki/includes/registration/ExtensionRegistry.php:106 Stack trace: #0 /srv/dml-wiki/includes/GlobalFunctions.php(115): ExtensionRegistry->queue('/srv/dml-wiki/e...') #1 /srv/dml-wiki/LocalSettings.php(241): wfLoadExtension('WikiForum') #2 /srv/dml-wiki/includes/WebStart.php(124): require_once('/srv/dml-wiki/L...') #3 /srv/dml-wiki/index.php(40): require('/srv/dml-wiki/i...') #4 {main} thrown in /srv/dml-wiki/includes/registration/ExtensionRegistry.php on line 106

I am not getting this error with the master branch. Similar errors happen for any 1.27 versions of Comments and MediaWikiChat (as a matter of fact, Comments is faulty even in previous versions, having to rely on the master branch all the time).

Honestly, I have no idea how to fix those issues regarding MWChat, wikiforum and comments.

If there's a fix for it, please tell me what to do. Currently, I commented out the line for WikiForum in LocalSettings as it was bringing the wiki down.

Also, what should I do about VisualEditor? I am still getting the same error....

Ciencia Al Poder (talkcontribs)
Star Warden (talkcontribs)

Well, even if they don't, I don't think it can affect Visual Editor. So, is there any fix to my issue? Anything at all? What could it be causing? What should I check?

Star Warden (talkcontribs)

I managed to make Visual Editor work, following the instructions here: https://www.mediawiki.org/wiki/Parsoid/Troubleshooting

But now there is another problem. Whenever saving a page after editing it with Visual Editor, the page will 'break' hooks from Tabber and Comments (the ones I noticed, so far). In this edit, you can see how it changed everything on its own, while my sole edit was adding a number in a table: http://dragon-mania-legends-wiki.mobga.me/index.php?title=Demonic_Dragon&curid=85&diff=92686&oldid=91250 There seems to be no edit to the <comments /> hook, but it kills the comment section and makes the hook visible on the page. What might be the cause of all this?

Star Warden (talkcontribs)

Not only that, but all edits made through VE are marked as unpatrolled.. even though my edits are automatically patrolled.

115.113.69.206 (talkcontribs)

Error: 42P01 ERROR: relation "Comments" does not exist LINE 1

115.113.69.206 (talkcontribs)

Hi all...please healp me....i am trying to configure comment extension but i have getting error ..please look below

Database error

A database query error has occurred. This may indicate a bug in the software.

  • Query: SELECT Comment_Username,Comment_IP,Comment_Text,Comment_Date,UNIX_TIMESTAMP(Comment_Date) AS timestamp,Comment_user_id,CommentID,Comment_Parent_ID FROM "Comments" WHERE Comment_Page_ID = '774'
  • Function: CommentsPage::getComments
  • Error: 42P01 ERROR: relation "Comments" does not exist LINE 1: ...Comment_user_id,CommentID,Comment_Parent_ID FROM "Comments"
Ciencia Al Poder (talkcontribs)

Follow the installation instructions, specially the part "Run the update script which will automatically create the necessary database tables that this extension needs."

Reply to "Visual Editor 500 error"