pkp / openid

OpenId plugin for OJS, OMP, OPS
GNU General Public License v3.0
0 stars 2 forks source link

Error when logging out #6

Open salmanm2003 opened 3 months ago

salmanm2003 commented 3 months ago

Error Encountered After Activating the Plugin and Logging Out of OJS PHP Fatal error: Uncaught TypeError: array_shift(): Argument #1 ($array) must be of type array, Journal given in /var/www/html/lib/pkp/classes/core/PKPRouter.inc.php:487

I am using OJS 3.3.0.17

To fix the issue I have changed this line: https://github.com/pkp/openid/blob/cfee09b8b32b2a04229bb4f4275886969e771b88/handler/OpenIDLoginHandler.inc.php#L202 to this: $request->redirect($request->getContext()->getPath(), 'index');

fradeve commented 3 months ago

@salmanm2003 the file OpenIDLoginHandler.inc.php has the same line that you replaced again in line 133 -- does that have to be replaced as well?

salmanm2003 commented 3 months ago

@fradeve Thanks for pointing that out—you're right, line 133 needs to be changed as well.

defstat commented 3 weeks ago

Hi @salmanm2003! Thanks for reporting that. Can you share the version of the plugin you are using, as well as the providers you are using?

salmanm2003 commented 3 weeks ago

Hi @defstat , The plugin version is v3-3-0_7