Import Users Error

Are you responsible for making OMP work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 10
Joined: Fri Feb 08, 2013 4:14 pm
Location: Calgary

Import Users Error

Postby ojshelpatucalgary » Thu Oct 31, 2013 3:42 pm

Our Press has been using OJS for its purposes for quite a while. We are now moving to OMP.
I have been attempting to export the users from OJS and import to OMP.
In all cases the form spins forever. I'm wondering whether this is a bug or not and what the solution might be.

This error shows up on the log:
Call to undefined method Role:: setRoleId() in var/www/omp/plugins/importexport/users/ on line 164, referrer: ... portPlugin

I've looked at the line in UserImportExportPlugin
Line 164 in that file contains this: $role->setRoleId(4roleDao->getRoleIdFrom Path(roleType));

- I've tried to import 'All" from OJS.
- Exporting only the Reviewers from OMP itself and then tried Import to see if it would accept its own data and clicked the option to “Continue to import users if a failure occurs.” No luck there either. Same error again.
- Exported only the Reviewers from OJS and importing them to OMP thinking that might work. Since the role is called Reviewers on both systems.
This time, the same error appeared again in the log file. So much for my hopeful assumption that the import would work because the Role name was the same
Thanks for your help!

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Import Users Error

Postby asmecher » Thu Oct 31, 2013 3:58 pm

Hi ojshelpatucalgary,

The simple -- but unfortunate -- answer is that the plugin doesn't work at the moment; it contains some broken role import code. I've filed this at for attention and will treat it as a priority.

If you'd like to work around this in the meantime, you'll most likely be able to do so by:
  • Using the user import plugin, with no roles specified, to import the user accounts themselves
  • Run a couple of DB queries to associate them with the user roles you want to grant them
This is especially true of you only want to import a single role. I can help with the SQL part of this.

Alec Smecher
Public Knowledge Project Team

Posts: 80
Joined: Thu Jul 17, 2014 7:17 am
Location: Calgary, Alberta, Canada

Re: Import Users Error

Postby cedavid » Mon Nov 03, 2014 1:05 pm

I see that this issue has been resolved and is fixed.
When I go to
I am not seeing any diff or patch file.
I am still fairly new to the pkp project and working out procedures for applying fixed whan a bug has been resolved.
What do I need to do to apply the fix?


Site Admin
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am

Re: Import Users Error

Postby JasonNugent » Mon Nov 03, 2014 1:22 pm

Hi Edward,

The problem with patching this particular bug is that the commits submitted by Alec and myself are spread out over many small changes. There is no one single commit that fixes it all at once. In addition to the commits listed on that particular bug, there are some other changes to the Role code and some database modifications needed in order to get the new plugin (which uses OMP's new filter structure) working.

How urgent are your import needs? My suggestion, if you can wait a week or so, would be to upgrade to OMP 1.1.1 when it is released. All of these changes will be rolled into it, and the necessary database modifications would be made during the upgrade process automatically.

Otherwise, I can attempt to diff between the current OMP 1.1 stable branch and the release you have and create some sort of mega patch. But I may miss something, and rolling back from that may not be a lot of fun if there is a problem.


Posts: 80
Joined: Thu Jul 17, 2014 7:17 am
Location: Calgary, Alberta, Canada

Re: Import Users Error

Postby cedavid » Mon Nov 03, 2014 1:44 pm

Hi Jason,
Good to know I was not missing anything.
I think that due to all the changes required I will wait until the new release.


Return to “OMP Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest