Topic on Project:Support desk

Contributions not updated after import

12
Reception123 (talkcontribs)

Hi,

After performing an import, contributions for users have not been updated. For example "Main Page" history shows that user "A" has for example 10 edits, but Special:Contributions shows no edits for that user, and it is a redlink. Any ideas how to fix this?

Reception123 (talkcontribs)

This is after the user created the account on the newly imported wiki

AhmadF.Cheema (talkcontribs)
87.123.249.149 (talkcontribs)

I think there is a maintenance script, which allows you to update the edit count numbers for all users inside the database. Using this script might set the values correctly again.

Reception123 (talkcontribs)

Thank you for your answers. The update is not queued, as there are no jobs waiting.

I ran the script, initEditCount.php with no success. Any other suggestions would be appreciated.

87.123.249.149 (talkcontribs)

When you say that Special:Contributions would be a red link, do you then after clicking that link actually see the special page "Contributions"? And if so: Does it say the user would not(!) be registered? Or are you not seeing this page at all?

Reception123 (talkcontribs)

It is a redlink, and when I click it I see the page but there are no user contributions that show up. As I said previously, the contributions were only "gone" after the users registered on the new wiki.

87.123.249.149 (talkcontribs)

I just checked includes/specials/SpecialContributions.php and it looks like the Contributions page is getting information on the edits directly from the database (and not from a cache or so). The interesting part is where it calls ContribsPager(). Do the variables contain wrong data at that place? Maybe something went wrong with the import?

Btw. I do not understand why the users have to register again in the new wiki. Have you deleted the user table? Or: Why have they been there in the old installation and are no longer in the new one?

Reception123 (talkcontribs)

Yes, to my knowledge the user table has not imported (as this is a wiki farm, and user tables are shared).

I'm not quite sure how and where I can check what you are asking.

87.123.249.149 (talkcontribs)

Oh, so this is an installation with a shared user table. I am no expert in that regard, but I would guess that in this case having no content in the user table might be ok(?). But it seems like somehow the connection to your shared user table got lost or is broken currently.

Maybe someone else can help you further from here.

Reception123 (talkcontribs)

I have checked the user table for the local wiki, and the registered users do show up normally, though the same as on-wiki, they have no edits.

Reception123 (talkcontribs)

The user IDs (rev_user) needed to be associated with rev_user_text. The issue is now fixed thanks to @Ciencia Al Poder