OJS 3.2.0-1 Users XML Plugin Error

Hi,

When i try to export users using Users XML Plugin: Import and export users, It gives the http error 500. Following I found in the Php Error log.

[09-Apr-2020 08:20:41 UTC] PHP Fatal error: Uncaught Error: Call to undefined method UserGroup::getpPermitMetadataEdit() in /home/seisense/journal.seisense.com/lib/pkp/plugins/importexport/users/filter/UserGroupNativeXmlFilter.inc.php:87
Stack trace:
#0 /home/seisense/journal.seisense.com/lib/pkp/plugins/importexport/users/filter/UserGroupNativeXmlFilter.inc.php(56): UserGroupNativeXmlFilter->createUserGroupNode(Object(DOMDocument), Object(UserGroup))
#1 /home/seisense/journal.seisense.com/lib/pkp/classes/filter/Filter.inc.php(449): UserGroupNativeXmlFilter->process(Array)
#2 /home/seisense/journal.seisense.com/lib/pkp/plugins/importexport/users/filter/PKPUserUserXmlFilter.inc.php(162): Filter->execute(Array)
#3 /home/seisense/journal.seisense.com/lib/pkp/plugins/importexport/users/filter/PKPUserUserXmlFilter.inc.php(54): PKPUserUserXmlFilter->addUserGroups(Object(DOMDocument), Object(DOMElement))
#4 /home/seisense/journal.seisense.com/lib/pkp/classes/filter/Filter.inc.php(449): PKPUserUserXmlFilter->process(Array)
#5 /home/seisense/journal.seisense.co in /home/seisense/journal.seisense.com/lib/pkp/plugins/importexport/users/filter/UserGroupNativeXmlFilter.inc.php on line 87

Can anyone suggest the solution?
Thanks

Hi @seisense

That’s a bug filed as Fatal error in user import/export plugin · Issue #5674 · pkp/pkp-lib · GitHub and fixed with this commit:

https://github.com/pkp/pkp-lib/commit/46b08a375c1a4a28f29b3f9b15a6a9a8da099dbf

Cheers,
Jason

Hi @jnugent,
But I can not find the directory “filter” under the [plugins/importexport/users/
and the subsequent file to change.
following the directory path I end up with the “users” directory and find the following in it
19

Thanks

Hi @seisense

It’s not from the base OJS install, but rather the lib/pkp directory. That patch goes against that repository instead.

Cheers,
Jason

1 Like

Thanks for help @jnugent

1 Like