Manual talk:$wgEnableScaryTranscluding

I can't get these to work at all. I'm using MediaWiki 1.9.3 with PHP 5.2.1. Whenever I try to include an external template, I get an error message that looks like this:
 * [Template fetch failed for http://en.wikipedia.org/wiki/Template:User_en?action=render; sorry]

I don't think I'm the only person with this problem. I've googled the phrase "Template fetch failed for" and have found several other wikis with this problem as well. The setup for this feature is so simple and so straightforward -- I can't imagine how I could be doing it wrong. - Big Brother 1984 08:24, 11 April 2007 (UTC)


 * Alter the interwiki table and change the URL for Wikipedia (assuming the above example) to http://en.wikipedia.org/w/index.php?title=$1; I recall some problems with the rewritten form. There should also be some more on this in the mediawiki-l mailing list archives. robchurch | talk 08:30, 11 April 2007 (UTC)


 * Update - I found the problem. It appears that Wikipedia doesn't allow scripts to access its site. Take a look at the user_agent setting in your php.ini. ^>^ However, the function still doesn't work like it's supposed to. Instead of grabbing just the template, it grabs everything that appears on the 'render' page. (Including template usage information) -- Big Brother 1984 08:35, 11 April 2007 (UTC)


 * Another Update - It appears that the software is ignoring the &lt;noinclude> tag. Or rather, the 'render' action causes the template to be returned from the external site without any &lt;noinclude> tags. In other words, when my site requests a template with the parameter "action=render", the external site sends me the everything on the template page, including the text between the &lt;noinclude> tags. This should not be how this works. Perhaps another "action=" parameter needs to be added to the software that will cause the external site to return the template without the data between the &lt;noinlude> tags??? -- Big Brother 1984 09:52, 11 April 2007 (UTC)


 * 3rd Update -- In Parser.php there is a boolean named $forceRawInterwiki. I'm wondering if this could provide a solution to this problem. I tried setting it to TRUE, but that only results in the following error message:
 * [Template fetch failed for http://en.wikipedia.org/wiki/Template:user_en?action=raw; sorry]
 * When I try navigating to that page manually I get a HTTP Error 403 - Forbidden message in my browser. I can't find any documentation for this "raw" feature anywhere, so it's entirely possible that I may be barking up the wrong tree. The only clue as to what $forceRawInterwiki does is a comment in the source code that says that this variable "Forces interwiki transclusion to be done in raw mode not rendered". Can anybody enlighten me as to what this option is actually supposed to do? -- Big Brother 1984 10:55, 11 April 2007 (UTC)