-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
[Bug]: Unable to access "ALBAUM" in Nextcloud 29.0.x #2493
Comments
photos/lib/Album/AlbumMapper.php Line 211 in ca18d17
The call You can patch the photos app like below to have the data logged and the file with the broken mimetype ignored:
(the patch path is relative to the photos app, not the server directory) |
Applied the patch on my server and now I am able to upload the files and create an albaum. However when I come out of the albaum, it shows 0 photos 0 videos (despite of adding multiple pictures) and after working on some other module, when I come back to the my albaum, it shows "This albaum does not have photos or videos yet" |
Check the logfile for "Ignoring file because the mimetype is not an integer" and post the complete line. |
This one of the many lines.
|
Strange, I fail to understand why the mimetype is not an integer on your end. This modified version of the patch should also log the type.
|
The values are always strings when they come from the DB. @nikitakothari06, could you create a PR with the patch @kesselb provided? |
I thought so too. Surprisingly some values have the right type already.
Please log a new issue for it at https://github.com/nextcloud/photos/issues Also the button works fine over here ;) |
There is a setting for that in PDO: ATTR_STRINGIFY_FETCHES |
Is there any ETA for the next version with these changes ?
Also I created an separate issue for this. #2496 |
Should be in the next releases: https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule |
Bug description
I have installed Nextcloud 29.0.1 on my test server with PHP 8.0 & Mysql 8.0 When I first create the albaum from "Photos --> +Add --> Add new albaum" the albaum gets created. However When I upload any image in it, it throws the following error.
Failed to add xxxx.jpg to collection /photos/[[username]]/albums/[[albaum]]
And after that when I visit "Albaum" section from left side menu it throws the "An error occurred" error.
I am attaching the nextcloud.log file for the reference.
nextcloud.log
Steps to reproduce
Expected behavior
The new albaum should created without any error and in that albaum, user should be able to upload the files.
Installation method
Community Manual installation with Archive
Nextcloud Server version
29
Operating system
RHEL/CentOS
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: