-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSONDecodeError when calling pwg.images.setMd5sum API #2114
Comments
nathanzumwalt
added a commit
to nathanzumwalt/Piwigo
that referenced
this issue
Feb 10, 2024
… update md5sums
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When all the images in the piwigo_images table have an md5sum value and the pwg.images.setMd5sum API is called, a JSONDecodeError is thrown. Issue is with the call to get_photos_no_md5sum():
Piwigo/include/ws_functions/pwg.images.php
Line 2596 in 5621705
I have a fix in my local repo that wraps it in an if statement similar to how this is handled on the admin UI that I'll submit after I figure out pull requests:
Piwigo/admin.php
Lines 290 to 295 in 5621705
Sample Code:
Output:
The text was updated successfully, but these errors were encountered: