Trying to upload photo to Piwigo via Shotwell plugin I got and error like "URL not valid" (I got it in Italian).
Looking at Piwigo side I found this php error:
[22-Jul-2022 11:06:39 Europe/Berlin] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/piwigo/include/functions_user.inc.php on line 804
[22-Jul-2022 11:06:39 Europe/Berlin] PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, bool given in /var/www/piwigo/include/ws_protocols/rest_encoder.php:145
Stack trace: #0 /var/www/piwigo/include/ws_core.inc.php(289): PwgRestEncoder->encodeResponse() #1 /var/www/piwigo/include/ws_protocols/rest_handler.php(42): PwgServer->sendResponse() #2 /var/www/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest() #3 /var/www/piwigo/ws.php(22): PwgServer->run() #4 {main}
thrown in /var/www/piwigo/include/ws_protocols/rest_encoder.php on line 145
[22-Jul-2022 11:06:40 Europe/Berlin] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/piwigo/include/functions_user.inc.php on line 804
[22-Jul-2022 11:06:40 Europe/Berlin] PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, bool given in /var/www/piwigo/include/ws_protocols/rest_encoder.php:145
Stack trace: #0 /var/www/piwigo/include/ws_core.inc.php(289): PwgRestEncoder->encodeResponse() #1 /var/www/piwigo/include/ws_protocols/rest_handler.php(42): PwgServer->sendResponse() #2 /var/www/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest() #3 /var/www/piwigo/ws.php(22): PwgServer->run() #4 {main}
thrown in /var/www/piwigo/include/ws_protocols/rest_encoder.php on line 145
I think both Shotwell and Piwigo are updated to latest version:
I don't know if it is a Piwigo bug, or a Shotwell's Piwigo plugin problem, I've also opened a bug on Shotwell side:
https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1982564
Trying to upload photo to Piwigo via Shotwell plugin I got and error like "URL not valid" (I got it in Italian).
Looking at Piwigo side I found this php error:
[22-Jul-2022 11:06:39 Europe/Berlin] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/piwigo/include/functions_user.inc.php on line 804
[22-Jul-2022 11:06:39 Europe/Berlin] PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, bool given in /var/www/piwigo/include/ws_protocols/rest_encoder.php:145
Stack trace:
#0 /var/www/piwigo/include/ws_core.inc.php(289): PwgRestEncoder->encodeResponse()
#1 /var/www/piwigo/include/ws_protocols/rest_handler.php(42): PwgServer->sendResponse()
#2 /var/www/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest()
#3 /var/www/piwigo/ws.php(22): PwgServer->run()
#4 {main}
thrown in /var/www/piwigo/include/ws_protocols/rest_encoder.php on line 145
[22-Jul-2022 11:06:40 Europe/Berlin] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/piwigo/include/functions_user.inc.php on line 804
[22-Jul-2022 11:06:40 Europe/Berlin] PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, bool given in /var/www/piwigo/include/ws_protocols/rest_encoder.php:145
Stack trace:
#0 /var/www/piwigo/include/ws_core.inc.php(289): PwgRestEncoder->encodeResponse()
#1 /var/www/piwigo/include/ws_protocols/rest_handler.php(42): PwgServer->sendResponse()
#2 /var/www/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest()
#3 /var/www/piwigo/ws.php(22): PwgServer->run()
#4 {main}
thrown in /var/www/piwigo/include/ws_protocols/rest_encoder.php on line 145
I think both Shotwell and Piwigo are updated to latest version:
Shotwell: 0.30.14 – “Celle”
Piwigo 12.3.0
Operating System: Linux
PHP: 8.1.2
MySQL: 5.5.5-10.6.7-MariaDB-2ubuntu1.1
Grafic Lib: GD 2.3.0
Thanks
Giulio
<!-- github-sync-id:1314764421 -->
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.
I don't know if it is a Piwigo bug, or a Shotwell's Piwigo plugin problem, I've also opened a bug on Shotwell side:
https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1982564
Trying to upload photo to Piwigo via Shotwell plugin I got and error like "URL not valid" (I got it in Italian).
Looking at Piwigo side I found this php error:
[22-Jul-2022 11:06:39 Europe/Berlin] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/piwigo/include/functions_user.inc.php on line 804
[22-Jul-2022 11:06:39 Europe/Berlin] PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, bool given in /var/www/piwigo/include/ws_protocols/rest_encoder.php:145
Stack trace:
#0 /var/www/piwigo/include/ws_core.inc.php(289): PwgRestEncoder->encodeResponse()
#1 /var/www/piwigo/include/ws_protocols/rest_handler.php(42): PwgServer->sendResponse()
#2 /var/www/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest()
#3 /var/www/piwigo/ws.php(22): PwgServer->run()
#4 {main}
thrown in /var/www/piwigo/include/ws_protocols/rest_encoder.php on line 145
[22-Jul-2022 11:06:40 Europe/Berlin] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/piwigo/include/functions_user.inc.php on line 804
[22-Jul-2022 11:06:40 Europe/Berlin] PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, bool given in /var/www/piwigo/include/ws_protocols/rest_encoder.php:145
Stack trace:
#0 /var/www/piwigo/include/ws_core.inc.php(289): PwgRestEncoder->encodeResponse()
#1 /var/www/piwigo/include/ws_protocols/rest_handler.php(42): PwgServer->sendResponse()
#2 /var/www/piwigo/include/ws_core.inc.php(281): PwgRestRequestHandler->handleRequest()
#3 /var/www/piwigo/ws.php(22): PwgServer->run()
#4 {main}
thrown in /var/www/piwigo/include/ws_protocols/rest_encoder.php on line 145
I think both Shotwell and Piwigo are updated to latest version:
Thanks
Giulio
Hi @gcarabetta
Can you make a test with the latest "master" ? the
get_classhas been fixed.Ok, with 13.0.0RC1 it works.
Thanks
I think it's more with the upcoming 13RC2, but OK, I mark this issue as fixed :-D