Topic on Project:Support desk

Resolved [EXTENSION] Visual Editor | Page / Old id error

6
Summary by MarkAHershberger

look at phab:T152547. It looks like it is addressed there.

MUSEION (talkcontribs)

Hi everyone, i have locally installed latest version of mediawiki with visual editor (parsoid installed and linked to mediawiki). Mediawiki is running perfectly but a minor bug of Visual Editor is annoying me. When i save a page i have an error "The parameters "page" and "oldid" can not be used together."

What can I do?

Thanks, have a good day

MUSEION

MarkAHershberger (talkcontribs)

Have a look at phab:T152547. It looks like it is addressed there.

MUSEION (talkcontribs)

Hi! I am confused, i did not find this page searching on google but it seems like I do not have to edit ApiParse.php, the "fix" is already in the file.

		// No easy way to say that text & title are allowed together while the
		// rest aren't, so just do it in two calls.
		$this->requireMaxOneParameter( $params, 'page', 'pageid', 'oldid', 'text' );
		$this->requireMaxOneParameter( $params, 'page', 'pageid', 'oldid', 'title' );
MUSEION (talkcontribs)

Well, not familiar with all of this, i had to edit /mediawiki/extensions/VisualEditor/ApiVisualEditorEdit.php

And now it works, thanks to you, thank you very much! Have a nice day!

BluAlien (talkcontribs)

I installed Mediawiki 1.30 and I got the same problem. I checked phab:T152547 but It's not clear what to do to solve the problem. The file /includes/api/ApiParse.php is not present and referring to MUSEION, which had edited /mediawiki/extensions/VisualEditor/ApiVisualEditorEdit.php ... what is the modification to be done ??

BluAlien (talkcontribs)