OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
What to do if you have a technical problem with OMP:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OMP Discussion subforum; if you have a development question, try the OMP Development subforum.

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/UserXMLParser.inc.php on line 164, referrer: http://136.159.200.88/omp/index.php/uof ... 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!
ojshelpatucalgary
 
Posts: 10
Joined: Fri Feb 08, 2013 4:14 pm
Location: Calgary

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 http://pkp.sfu.ca:8086/bugzilla/show_bug.cgi?id=8463 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.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9201
Joined: Wed Aug 10, 2005 12:56 pm

Re: Import Users Error

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

Alec,
I see that this issue has been resolved and is fixed.
When I go to http://pkp.sfu.ca:8086/bugzilla/show_bug.cgi?id=8463
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?

Thanks,
Edward
cedavid
 
Posts: 46
Joined: Thu Jul 17, 2014 7:17 am
Location: Calgary, Alberta, Canada

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.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 894
Joined: Tue Jan 10, 2006 6:20 am

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.

Thanks,
Edward
cedavid
 
Posts: 46
Joined: Thu Jul 17, 2014 7:17 am
Location: Calgary, Alberta, Canada


Return to OMP Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest