Topic on Project:Support desk

Import did not create categories...

7
AssetDenmark (talkcontribs)

I am trying to export/import pages - from a local wiki to a new one, but I have a few issues. ( This apparently requires me to enter an "Interwiki prefix" - for this I used the name of the target wiki). The language for the wiki is Danish, but my profile is set to English.

At first sight import looks like a success, however when i check page with categories the link works but the category pages does not refer to the pages and contains this text: "This category currently contains no pages or media."


When I go to the specialpage:categories I get this message:

[XL7T4zh62JutCTuDi5sqqwAAAIA] 2019-04-23 08:59:15: Fatal exception of type "Error"


also most pages have been put into a the category for missing files, but this category also do not contain any page references.


Even if I go to the edit and save a page, the category is not updated!


(Target is 1.32.0 and source is 1.18 )

AssetDenmark (talkcontribs)

I tried to restore my new wiki to a state before I even had the most basic extensions added , and the results are the same!

My next attempt must be to remove categories from the import... and import these prior to the other pages!


AssetDenmark (talkcontribs)

Doing this does not work either. New errors occurs...

The categories appear to import correctly, but importing the main data - or a "big" namespace - results in "No interwiki prefix was supplied" even though the interwiki prefix was supplied! - this seems to occur now (and not before), because I included the entire history in the 2nd files I exported!



AhmadF.Cheema (talkcontribs)

Maybe the category pages haven't populated yet. See runJobs.php.

Regarding the fatal exception, to get a more detailed error description, in your LocalSettings.php, add the following:

$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
AssetDenmark (talkcontribs)

Thanks for the tips! Re the fatal error This was going wrong:

[XL7gZQyBgBlOyCfL6kZ4kQAAAA8] /Speciel:Kategorier Error from line 415 of /home/n117056/public_html/extensions/TinyMCE/TinyMCE.hooks.php: Call to undefined method TitleValue::getArticleID()

so I can disable TinyMCE (editor extension) and then I can see the categories... the getArticleID function may work when the categories are updated. ( I wound NEVER have found this without your help!)


I set

$wgJobRunRat = 0.01;

...but I can I somehow trigger the jobs run? ( I do not have PHP access, but I know there is a way to run the update scripts. Or is there something in an error log i need to check?

AhmadF.Cheema (talkcontribs)
AssetDenmark (talkcontribs)

I wonder if, i used $wgExportFromNamespaces = true; and "from" this got the option to select the namespace "categories" - now I wonder if the categories was somehow has invalidated by this? (Or can someone perhaps exclude that as what cause the error?)

Reply to "Import did not create categories..."