Upload from Digikam 7.8.0 to piwigo 13.1.0 broken #1562

Closed
opened 2026-10-05 00:48:23 +02:00 by adam · 2 comments
Owner

The response provided by piwigo function ws_categories_getList in include/ws_function/pwg.categories.php is badly interpreted by Digikam's "Upload to Piwigo" webservice: "Invalid response received from remote Piwigo" (parseResponseListAlbums in core/dplugins/generic/webservices/piwigo/piwigotalker.cpp).

Piwigo responses looks like:

<?xml version="1.0" encoding="utf-8" ?>

Digikam webservices logs are:
digikam.webservices: parseResponseLogin: "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<rsp stat="ok">\n1\n"
digikam.webservices: parseResponseGetVersion: "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<rsp stat="ok">\n13.1.0\n"
digikam.webservices: Version: 1301
digikam.webservices: foundResponse : true
digikam.webservices: parseResponseListAlbums

The response provided by piwigo function ws_categories_getList in include/ws_function/pwg.categories.php is badly interpreted by Digikam's "Upload to Piwigo" webservice: "Invalid response received from remote Piwigo" (parseResponseListAlbums in core/dplugins/generic/webservices/piwigo/piwigotalker.cpp). Piwigo responses looks like: <?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> <categories> <category id="215" ...> </category> </categories> </rsp> Digikam webservices logs are: digikam.webservices: parseResponseLogin: "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<rsp stat=\"ok\">\n1\n</rsp>" digikam.webservices: parseResponseGetVersion: "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<rsp stat=\"ok\">\n13.1.0\n</rsp>" digikam.webservices: Version: 1301 digikam.webservices: foundResponse : true digikam.webservices: parseResponseListAlbums <!-- github-sync-id:1447059635 -->
adam closed this issue 2026-10-05 00:48:23 +02:00
Author
Owner
cf https://bugs.kde.org/show_bug.cgi?id=461790 <!-- github-comment-id:1312808694 -->
Author
Owner

The issue is that there is php warning that breaks the response:
digikam.webservices: parseResponseListAlbums: "
\nDeprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /home/www/photos/include/ws_functions/pwg.categories.php on line 324
\n
\nDeprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /home/www/photos/include/ws_functions/pwg.categories.php on line 324
\n
....

The issue is that there is php warning that breaks the response: digikam.webservices: parseResponseListAlbums: "<br />\n<b>Deprecated</b>: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/home/www/photos/include/ws_functions/pwg.categories.php</b> on line <b>324</b><br />\n<br />\n<b>Deprecated</b>: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in <b>/home/www/photos/include/ws_functions/pwg.categories.php</b> on line <b>324</b><br />\n<br />.... <!-- github-comment-id:1317487410 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1562