Last modified: 2014-05-09 18:28:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66942, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64942 - Templates using interwiki transclusions fails at API request
Templates using interwiki transclusions fails at API request
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Arlo Breault
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-06 07:02 UTC by Joel Moberg
Modified: 2014-05-09 18:28 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Joel Moberg 2014-05-06 07:02:08 UTC
In LocalSettings.php I enabled scary transclusions:
$wgEnableAPI = true;
$wgEnableWriteAPI = true;
$wgEnableScaryTranscluding = true;
$wgTranscludeCacheExpiry = 0;

Then in a template I have this:
{{raw:lo::{{{1}}}}}

I see this in the log:
[info][localhost:Test] starting parsing
[warning/api][localhost:Test][oldid:306] Failed API request, 8 retries remaining.
... and so on.

If just {{raw:lo::someItem}} is on the page parsoid evaluates this OK. But when this is in a template the requests fail for some reason.
Comment 1 Arlo Breault 2014-05-08 19:51:03 UTC
I'm having trouble reproducing this bug. Here's what I did:

1) Create a template Template:Lo::someItem with the content: Hi
2) Create a template Template:Another with the content: {{raw:lo::{{{1}}}}}
3) Create a page Testing with the content: {{another|someItem}}

Result on Testing is: Hi

I can edit all of the above in VisualEditor.
Comment 2 Joel Moberg 2014-05-08 20:02:15 UTC
Sorry, {{raw:lo::xxx}} should transclude template xxx from wiki with prefix 'lo'. This is what I did:

1) Create a template containing just plain text on a wiki (A).
2) From another wiki (B), make sure you have scary transclusion enabled and the other wiki in the transclusion database.
3) Make a template that transcludes the template from wiki A.
4) Create a page at wiki B the template you created in step 3.
Comment 3 Arlo Breault 2014-05-08 20:04:59 UTC
Oh, yikes, I missed the "interwiki" in the subject line. Thanks for the clarification.
Comment 4 Arlo Breault 2014-05-08 20:08:24 UTC
Can you try with {{raw:lowiki::xxx}} for prefix lo. Just a hunch.
Comment 5 Joel Moberg 2014-05-09 18:28:44 UTC
This works now, I do not know what have happend but works, with both prefixes I inserted in the db :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links