Attempts to login using digikam export plugin fails.
The login actually succeeds but piwigo throws an exception and doesn't respond to the request. PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, bool given in /var/www/domainname/piwigo/include/ws_protocols/rest_encoder.php:145
Analysis shows login handler returns the bool whereas the function encodeResponse($response) is conditionallly expecting an PwgError object.
I will raise a pull request to fix this.
Attempts to login using digikam export plugin fails.
The login actually succeeds but piwigo throws an exception and doesn't respond to the request.
` PHP Fatal error: Uncaught
TypeError: get_class(): Argument #1 ($object) must be of type object, bool given in /var/www/domainname/piwigo/include/ws_protocols/rest_encoder.php:145`
Analysis shows login handler returns the bool whereas the function encodeResponse($response) is conditionallly expecting an PwgError object.
I will raise a pull request to fix this.
<!-- github-sync-id:1257334429 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Attempts to login using digikam export plugin fails.
The login actually succeeds but piwigo throws an exception and doesn't respond to the request.
PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, bool given in /var/www/domainname/piwigo/include/ws_protocols/rest_encoder.php:145Analysis shows login handler returns the bool whereas the function encodeResponse($response) is conditionallly expecting an PwgError object.
I will raise a pull request to fix this.
Pull request created. https://github.com/Piwigo/Piwigo/pull/1663