Topic on Project:Support desk

101.26.42.210 (talkcontribs)

In the 1.31 version. I exported the local data to XML and imported it to the public network. I found that the classification was lost. What is the reason for this?

  • MediaWiki:1.31
  • PHP:7.1
  • Database:mysql5.7
Ciencia Al Poder (talkcontribs)

What do you mean by classification?

101.26.42.210 (talkcontribs)

Thank you very much for your reply!Category added in content,such as[[Category:Category name]]。

101.26.42.210 (talkcontribs)

I try to add a content category. Found that the same can not be added, it may be because 1.31 is not perfect reason。

101.26.42.210 (talkcontribs)

Thank you very much for your reply!Category added in content,such as[[Category:Category name]]。

AhmadF.Cheema (talkcontribs)
101.26.42.115 (talkcontribs)

Is this related to the imported design linked to MediaWiki?

101.26.42.115 (talkcontribs)

Thank you very much for your answer!I am using WINDOWS + nginx + PHP + MYSQL. How can I automatically set the category when importing data?

Ciencia Al Poder (talkcontribs)

When you import data, one or more jobs are added to the queue, which perform the categorization. The same happens when you add a category when editing an article, but if you import several pages, and only one job is picked per page view, it may take longer to make the categorization effectively.

Run the runJobs.php maintenance script, or set up a job runner service as explained in the manual of Job queue

AhmadF.Cheema (talkcontribs)

As the manual mentions, from a command terminal on Windows, run something like:

<path_to_locally_installed_PHP>/php.exe <path_to_mediawiki_directory>/maintenance/runJobs.php

101.26.42.115 (talkcontribs)

Thank you very much for your answer. I open the CMD input C:\ Server \ php-7.2.5-nts-Win32-VC15-x64 \ php.exe C: \ Server \ WWWRoot \ MediaWiki \ maintenance \ runJobs.php. Invalid, please help me

AhmadF.Cheema (talkcontribs)

I've never run a PHP command in Windows, so can't be sure what the problem could be.

However, in CMD, did you include the spaces after each backslash (\) too?

Reply to "TCM"