Changes
Jump to navigation
Jump to search
Then '''Day 2:''' I try adding the following line to the php.ini configuration file under the "Dynamic Extensions" section to load the pcntl extension:
Still The import still doesn't work(another 500 error). This [http://stackoverflow.com/a/8432855 SO answer] gives another way to check that Process Control (aka pcntl) is enabled:
Test Web Server Documentation (view source)
Revision as of 15:55, 3 February 2016
, 15:55, 3 February 2016→Debugging Special:Import Errors (2/1/16 - 2/3/16)
But that also doesn't work (Import gives 500 error again and I still can't view the page from the Special:AllPages list of all pages in the Template namespace due to another 500 error)
extension=pcntl.so
$ php --ri pcntl
And it is enabled. So back to the Apache error logs, where we I see a new error:
[Wed Jan 27 14:05:32.370697 2016] [authz_core:error] [pid 26413] [client 10.124.76.123:51235] AH01630: client denied by server configuration: /var/lib/mediawiki/index.php
So let's I check out that file. It doesn't have much other than comments, but one of the comments mentions that the file will "Bail on old versions of PHP, or if composer has not been run yet to install dependencies." So does that mean we need composer? That seems a bit redundant on Linux...
Okay so backtracking a little. Here's a [http://trog.qgl.org/20140923/setting-up-infobox-templates-in-mediawiki-v1-23/ post] that mentions importing [https://en.wikipedia.org/wiki/MediaWiki:Common.css this stylesheet] from Wikipedia (the source wiki, aka where we're getting our infobox templates from). I exported that page with the three options -- "Include only the current revision, not the full history", "Include templates", and "Save as file" -- all checked. Importing the resulting XML file was successful. But trying to import the infobox templates immediately afterwards still failed (500 error).
And here's a random tangent: an [http://trog.qgl.org/20110815/setting-up-infobox-templates-in-mediawiki/ older version] of the post above mentions that the XML file needs to be modified: all of the instances of "text/plain" need to be replaced with "CONTENT_TEXT_FORMAT". There's a thread on Mediawiki that suggests the same fix (the suggestion is also about 3 years old, so it may be just referring to the old version of the post without citing it). The thing that makes me uncertain is that Scribunto's ticket trackers have some tickets about this suggested fix: [https://phabricator.wikimedia.org/T58249 this one] and [https://phabricator.wikimedia.org/T53504 this one] came up when I searched for "content_text_format scribunto". Both seem to conclusively suggest that the fix isn't necessary in newer versions of Scribunto and Mediawiki, and there's even a backport left there for people who are still trying the fix. So it seems that the fix won't actually change anything.
Well, since I imported the Common.css stylesheet, and the [https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial mediawiki infobox tutorial] suggests importing a javascript file as well, might as well try doing that. I exported [https://en.wikipedia.org/wiki/MediaWiki:Common.js the javascript] from Wikipedia with the three options -- "Include only the current revision, not the full history", "Include templates", and "Save as file" -- all checked. Importing that XML is also successful.
Importing the infobox templates still fails (500 error). Back to the Apache error logs... ''*sigh*''
Turns out the 'client denied' error I saw above was actually from an old error log. So I shouldn't be worried about that. The problem is that now I'm dealing with the same 'undefined function pcntl_wifsignaled()' error that I faced last time, so we haven't made any progress.
== To-do list ==