MediaWiki Visual Editor Parsoid 404 Error: Difference between revisions

No edit summary
No edit summary
Line 24: Line 24:
</div> I hadn't. And it turns out that was the issue. It had nothing to do with the MediaWiki or Parsoid configuration at all.  Specifically I had a simple typo in my httpd.conf file (I'm using CentOS 7.4, so the location and name of your Apache / HTTPD configuration file may vary. It may even be in multiple files.) that allowed me to view any page on the site, but didn't allow for editing with the Visual Editor.  As near as I could figure out it has something to do with absolute and relative paths.  But for the life of me I couldn't figure out how anything had worked at all with that typo, so I gave up on that and just fixed it.
</div> I hadn't. And it turns out that was the issue. It had nothing to do with the MediaWiki or Parsoid configuration at all.  Specifically I had a simple typo in my httpd.conf file (I'm using CentOS 7.4, so the location and name of your Apache / HTTPD configuration file may vary. It may even be in multiple files.) that allowed me to view any page on the site, but didn't allow for editing with the Visual Editor.  As near as I could figure out it has something to do with absolute and relative paths.  But for the life of me I couldn't figure out how anything had worked at all with that typo, so I gave up on that and just fixed it.


<div class="mw-parser-output">
<div class="mw-parser-output">
<div class="mw-parser-output">
== My configuration ==
== My configuration ==
Line 31: Line 32:
&nbsp;
&nbsp;
<syntaxhighlight lang="bat">
<syntaxhighlight lang="bat">
uri: '[[Http://FullQualifiedDomainNameAndPath/api.php'|http://FullyQualifiedDomainNameAndPath/api.php']]
uri: '[[Http://DomainNameAndPath/api.php'|http://DomainNameAndPath/api.php']]
domain: 'localhost'
domain: 'localhost'
</syntaxhighlight>
</syntaxhighlight>


For my LocalSettings.php (MediaWiki configuration) file, the following code, using the same fully qualified domain name and path, plus the port number of the Parsoid service (8000 in my case).<syntaxhighlight lang="bat">
For my LocalSettings.php (MediaWiki configuration) file, the following code, using the same fully qualified domain name and path, plus the port number of the Parsoid service (8000 in my case).
<syntaxhighlight lang="bat">
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'VisualEditor' );


Line 66: Line 68:
</syntaxhighlight>
</syntaxhighlight>


Also, I noticed a dash ( - ) in front of a comment hash tag ( # ) that I thought was a typo, but some people actually referenced it as it was supposed to be there. It worked, so I left it.
Also, I noticed a dash ( - ) in front of a comment hash tag ( # ) that I thought was a typo, but some people actually referenced it as it was supposed to be there. It worked, so I left it. </div>
</div>
</div>