Extension talk:ImportUsers

Jump to navigation Jump to search

About this board

Archived talk

Internal Error: Fatal exception of type "LogicException"

1 (talkcontribs)


I tried to import a .csv file of users but am facing this "Fatal exception of type "LogicException" and can't seem to figure out what is causing this. It was working for me previously, but am not sure why it doesn't seem to work anymore. Could you kindly advise?

Thank you.

Reply to "Internal Error: Fatal exception of type "LogicException""
Krabina (talkcontribs)

just tried the extension in MW 1.31 and everything works as expected.

Reply to "Works fine in MW 1.31"
JosefAssad (talkcontribs)

What does that option do? Is it correct that, if the option "Replace existing users" is selected, then selecting the option "Add user to existing group" will add any groups in the input file to the user which the user is NOT already a member of? And corresponding, if the option "Replace existing users" is selected, then the option "Add user to existing group" is '''not''' selected, then any extra groups in the input file which the user is not already a member of will be ignored?


Kghbln (talkcontribs)

I will have to test this. This was a feature added along the way. If you tick "Replace existing users" I would expect that the current record in the database gets overwritten by whatever there is in the import file. So the option "Add user to existing group" should have any effect.

Krabina (talkcontribs)

I just tested this. If the option "Add user to existing group" is not checked, then user groups don't get set even if they are included in the CSV. So to set user groups, you have to check the option.

Reply to "Add user to existing group"

Problem when trying to add invalid characters.

AJ Quick (talkcontribs)

When trying to add characters that are in violation of the $wgLegalTitleChars the program doesn't error out or skip the input gracefully, but instead crashes and doesn't provide meaningful output.

Common error:

[XDmdMwNiX64pb2H-OgFOtQAAAAk] /wiki/Special:ImportUsers Error from line 129 of /home/xxxx/public_html/w/extensions/ImportUsers/ImportUsers_body.php: Call to a member function setEmail() on boolean
Reply to "Problem when trying to add invalid characters."

What if I want them to get a temporary password by email?

2 (talkcontribs)

Instead of choosing a password on their behalf.

Kghbln (talkcontribs)

This would indeed be a nice feature but this extension cannot do this currently. If you are a programmer an would like to pick this up I am all for it.

Reply to "What if I want them to get a temporary password by email?"

Bug for username with special characters

Dieudo (talkcontribs)

A bug has been identified when using usernames such as :

  • André
  • Jérémy

The user appears in the user list but doesn't seem to be recognised elsewhere like for the userpage. It becomes then possible to create an other user with the same name through the ordinary way, making appearing two users with the same name in the user list.

My configuration is MW 1.23.2

Kghbln (talkcontribs)

Thanks for reporting this issue. I filed it as task T118184 so it does not get lost.

Reply to "Bug for username with special characters"

Works well with MW 1.23 (also with multiple groups)

Sm8ps (talkcontribs)

I am very happy to see that my changes were integrated by User:Ency (as per the archived talk page of 16 June 2014). The extension works well with MW 1.23.

I does also work with multiple groups. I have updated the instructions and the example on the extension page.


Kghbln (talkcontribs)

Heiya Sm8ps, thanks for the feedback and amending the documentation! Yeah, I added the respective version to the GitHub repo since I also thought that this will be very useful. In case you want to further enhance the extension you could just do a pull request at GitHub and I merge it in for you. Cheers

Sm8ps (talkcontribs)

Thank you for your work, Kghbln! Now that I have started learning Git, I can even imagine pulling and merging stuff in and out. :)

Kghbln (talkcontribs)

You are welcome. Coincidently, yesterday I have been asked by someone who wants to take over maintainership of this extension, which also means that it will be move from GitHub to the WMF repo. So you would need commit access for this one.

Sm8ps (talkcontribs)

Sounds good to me! This extension is quite relevant, especially on closed wikis with lot of users. So it would be great if someone took over maintainership. Unfortunately, I am by no means capable of any programming in PHP other than my occasional copy/paste jobs. :)

Kghbln (talkcontribs)

Cool, I was not sure how much involvement was intended or possible by you. So things can get rolling. :)

Reply to "Works well with MW 1.23 (also with multiple groups)"
There are no older topics