I guess I wasn't clear. After running importDump.php (but not rebuildAll.php), I view the imported page via the web server by opening or reloading it in a browser. I know that it's not a browser cache problem because other content on the page changes (or it's the first time that page has ever been viewed).
What is mystifying to me is that the {{SERVER}} is incorporated into the text.old_text field. So I can't see how the it could be failing, since the code must be pulling it from the database and parsing it - other template tags and markup are being converted correctly (I haven't tried other magic words). Hardcoding $wgServer in LocalSettings.php didn't help either.
Do magic words need something different?
Jim On Jul 12, 2007, at 8:35 AM, Brion Vibber wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jim Hu wrote:
When I use importDump.php to import a page that includes the text [{{SERVER}}], it seems like I initially get http:/localhost instead of http://$wgServerName. But this only occurs on the first load, and it is corrected if I do an edit on the page.
Anyone else seen this? Any ideas about why it's happening and how to fix it?
$wgServer can't be autodetected sensibly from the web server when you're not running via the web server, so it defaults to 'http://localhost'.
If you set it explicitly in LocalSettings.php it should stick on the command-line scripts as well, though.
- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGli4owRnhpk1wk44RAv+RAKDOqlxvHWcVFMiB/dAib8c4aXxVQQCdEE1r 3JyO4K0nW0z3w8CbsAmKrQ8= =v5IN -----END PGP SIGNATURE-----
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054