After restoring a wiki backup I'm having a problem with namespaces. Namespace "XYZ" was not defined in my old server's LocalSettings.php, the pages were added just by typing in the namespace before each new page name ie. XYZ:Pagename. Now on the new server, after restoring the backup, all pages in namespace XYZ don't exist. When a link to a page in namespace XYZ is clicked, the create new page is shown. As I said before, I fear this was caused by not specifying the namespaces in LocalSettings.php on the old server. Adding a namespace declaration in the new server's LocalSettings.php doesn't fix the problem either.
Any ideas?
Thanks!
beachboy4231 wrote:
After restoring a wiki backup I'm having a problem with namespaces. Namespace "XYZ" was not defined in my old server's LocalSettings.php, the pages were added just by typing in the namespace before each new page name ie. XYZ:Pagename. Now on the new server, after restoring the backup, all pages in namespace XYZ don't exist. When a link to a page in namespace XYZ is clicked, the create new page is shown. As I said before, I fear this was caused by not specifying the namespaces in LocalSettings.php on the old server. Adding a namespace declaration in the new server's LocalSettings.php doesn't fix the problem either.
Any ideas?
Thanks!
Don't set it on the new localsettings. Their name has became invalid since they had a namespace name and were in main namespace, which is now invalid. You can take them out to the llight using maintenance/cleanupTitles.php
That worked! But is there any way to actually to have it work the right way to avoid problems in the future?
On Tue, Dec 8, 2009 at 10:12 AM, Platonides Platonides@gmail.com wrote:
beachboy4231 wrote:
After restoring a wiki backup I'm having a problem with namespaces. Namespace "XYZ" was not defined in my old server's LocalSettings.php, the pages were added just by typing in the namespace before each new page
name
ie. XYZ:Pagename. Now on the new server, after restoring the backup, all pages in namespace XYZ don't exist. When a link to a page in namespace
XYZ
is clicked, the create new page is shown. As I said before, I fear this
was
caused by not specifying the namespaces in LocalSettings.php on the old server. Adding a namespace declaration in the new server's
LocalSettings.php
doesn't fix the problem either.
Any ideas?
Thanks!
Don't set it on the new localsettings. Their name has became invalid since they had a namespace name and were in main namespace, which is now invalid. You can take them out to the llight using maintenance/cleanupTitles.php
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
beachboy4231 wrote:
That worked! But is there any way to actually to have it work the right way to avoid problems in the future?
That's the right way. If you add a new namespace for whose name there are already pages, you need to run maintenance/cleanupTitles.php
You hid the configuration change on a database backup+restore but it's still a configuration change. For the backup to restore to the same state, you should keep the same configuration.
mediawiki-l@lists.wikimedia.org