Error when importing users in OJS 3.1.1

Hi,

when I import users with the users xml plugin in OJS 3.1.1 I get the following error message:

PHP Fatal error: Call to undefined method User::setIsDisabled() …in … lib/pkp/plugins/importexport/users/filter/UserXmlPKPUserFilter.inc.php on line 114

When I grep “setIsDisabled” in the code I only find:

lib/pkp/plugins/importexport/users/filter/UserXmlPKPUserFilter.inc.php: $user->setIsDisabled(true);

In PKPUser.inc.php (pkp-lib/PKPUser.inc.php at ojs-stable-3_1_1 · pkp/pkp-lib · GitHub) I find

function setDisabled($disabled) {

Did you maybe rename the function in one place?

best,
Carola

Hi @carola,

You’re right, thanks – I’ve committed a fix for release in 3.1.1-1.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks, Alec, it works now.

best,
Carola