Describe the issue or problem
I ran into an issue importing users some time ago. I don’t remember the exact errors or how I resolved it, but I noted two possible bugs in plugins/importexport/users/filter/UserXmlPKPUserFilter.php:
On line 356, the reviewer role check uses assignment = instead of comparison ==:
if ($userGroup->roleId = Role::ROLE_ID_REVIEWER) {
$masthead = true;
}
On line 360, the code references $startDate, but it appears to be undefined.
$dateStart = $startDate ?? Core::getCurrentDate();
Steps I took leading up to the issue
Attempted to import users using the Users XML import/export plugin.
Encountered an issue and investigated the import code.
Noticed the lines above.
Unfortunately, this happened a while ago, so I can’t provide the exact steps or recall how I got around this error when importing users.
What application are you using?
OJS 3.5.0-5
Additional information
The errors can be seen in the file: pkp-lib/plugins/importexport/users/filter/UserXmlPKPUserFilter.php at stable-3_5_0 · pkp/pkp-lib · GitHub
Hi @stephanie ,
Those problems are solved incidentally by this issue, which will be merged for release in OJS 3.5.0-6 pretty soon:
opened 10:20PM - 23 Sep 26 UTC
Bug:2:Major
### Valid Title
- [x] I have updated the title to accurately reflect the bug de… scription
### Description
Not sure if this was a regression as this was previously acknowledge to have been a requirement of this ticket : #9271
> ~~When a user is disabled all active masthead services will be ended for that user.~~ Disabling a user functions differently -- currently no roles are ended, and the user can be reactivated again. Thu disabling a user will not end the masthead services.
### Steps to Reproduce
1. Preconditions: have a user who appears in the Editorial masthead with the disabled status
2. Navigate to About > Editorial Masthead
### Expected Result
Should render without error
### Actual Result
500 error (see log below)
### Environment Details
_No response_
### Application Version
OJS, OMP, OPS 3.5, 3.6(main)
### Logs
`[Wed Sep 23 22:10:45.728992 2026] [php:error] [pid 1180951] [client 64.180.252.76:65102] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/91.99.202.113.sslip.io/ojs/main/lib/pkp/pages/about/AboutContextHandler.php:88\nStack trace:\n#0 [internal function]: PKP\\pages\\about\\AboutContextHandler->editorialMasthead()\n#1 /var/www/91.99.202.113.sslip.io/ojs/main/lib/pkp/classes/core/PKPRouter.php(328): call_user_func()\n#2 /var/www/91.99.202.113.sslip.io/ojs/main/lib/pkp/classes/core/PKPPageRouter.php(252): PKP\\core\\PKPRouter->_authorizeInitializeAndCallRequest()\n#3 /var/www/91.99.202.113.sslip.io/ojs/main/lib/pkp/classes/core/Dispatcher.php(157): PKP\\core\\PKPPageRouter->route()\n#4 /var/www/91.99.202.113.sslip.io/ojs/main/lib/pkp/classes/core/PKPApplication.php(363): PKP\\core\\Dispatcher->dispatch()\n#5 /var/www/91.99.202.113.sslip.io/ojs/main/index.php(21): PKP\\core\\PKPApplication->execute()\n#6 {main}\n thrown in /var/www/91.99.202.113.sslip.io/ojs/main/lib/pkp/pages/about/AboutContextHandler.php on line 88, referer: https://91.99.202.113.sslip.io/ojs/main/index.php/publicknowledge/en/index`
### Additional Information
_No response_
### PRs:
stable-3_5_0:
- https://github.com/pkp/pkp-lib/pull/13389
- https://github.com/pkp/ojs/pull/5859 (only submodule update)
- https://github.com/pkp/omp/pull/2472 (only submodule update)
- https://github.com/pkp/ops/pull/1413 (only submodule update)
main:
- https://github.com/pkp/pkp-lib/pull/13390
- https://github.com/pkp/ojs/pull/5860 (only submodule update)
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher:
3.5.0-6
Excellent! Thank you so much! Do you know when 3.5.0-6 will be released?
Hi @stephanie ,
We’re planning to release 3.6 in Q4 this year. If we mange, it’ll be late in Q4
Thanks,
Alec Smecher
Public Knowledge Project Team