Closed icsy7867 closed 1 year ago
Second this. Also, "download" and "Public" do not remain active after turning them on
Also seeing this on my fresh upgrade to 6ca3066/4.6.5. Also was forced to upgrade to PHP 8.1 (also seen in #1670). Server is running ubuntu 20.04 and I reproduced this issue on Win10 Firefox, Chrome, and Android 13 Firefox.
Can you check the browser console for errors?
There's a source map error when I load my site, but the same errors display on the demo site. When I click the share button, nothing happens in the UI or the console. In the [url]/api/Albums::get post response JSON, I don't see the "share button visible" attribute in either the policy or rights headers. I do see them in the demo site.
Yes, this attribute was removed and is no longer sent. Source map errors are some kind of expected and not related.
Yeah, changing the 'share button visible' setting in the config screen seems to do nothing now. I don't see any documentation for the 'default album protection' setting, though, and setting it to 0 caused an internal error that prevented me from saving. The logs say it was expecting 1, 2, or 3...maybe this new setting is preventing share links?
I saw these entries in the log from shortly after I upgraded but I have so far been unable to recreate it. Possibly related? error -- Illuminate\Routing\AbstractRouteCollection::handleMatchedRoute -- 44 -- error -- App\Http\Middleware\FixStatusCode::handle -- 30 -- ; caused by
default album protection
This is when you create a new album, the protection policy is either full private (as currently), inherit from parent or full public (hence directly visible by any anonymous user).
Lychee Version (git): master (2902bee) -- Up to date (22 hours ago).
DB Version: 4.6.5
Annoying bug, since I use Lychee to share photos to external (photo-)websites.
I sort of figured out part of the isssue.
contextMenu.sharePhoto = function (photoID, e) {
if (!lychee.share_button_visible) {
return;
}
If you change this to:
contextMenu.sharePhoto = function (photoID, e) {
if (false) {
return;
}
It magically starts to work:
So it looks like if you set that variable manually it all should start working: https://lycheeorg.github.io/docs/settings.html#share_button_visible
Interestingly... setting the variable in settings -> more did not resolve it. That variable still seems to be triggering a false.
correct. the share menu automagically appears.
Additional details... looking at the code, it looks like this is statically set:
from chrome console:
<img width="450" alt="image" src="https://user-images.githubusercontent.com/3788162/210442470-f2a1f704-9679-40b3-91e4-8f2e49dc864c.png">
var lychee = {
/**
* The version of the backend in human-readable
* @type {Version}
*/
version: null,
updateGit: "https://github.com/LycheeOrg/Lychee",
updateURL: "https://github.com/LycheeOrg/Lychee/releases",
website: "https://LycheeOrg.github.io",
publicMode: false,
viewMode: false,
grants_full_photo_access: true,
grants_download: false,
public_photos_hidden: true,
share_button_visible: false,
Looks like this requires some input from the developers. They are usually pretty quick to react.
fixed. thanks!
Just tested the newly pushed docker container: testing-3863451196
Working!
looks like the problem is back in the latest update.
I'm using Lychee 4.7.0 and have the same problem. I can't share my albums
Detailed description of the problem [REQUIRED]
Just installed the latest docker container to test out lychee. Everything seems to work great! However, I am looking for a way to implement some images in another tool/program, and I really need an easy access share/link.
After installing and setting up, I added a few various images to various albums (Some in the public one and in others). However when I do, nothing happens. All other icons/buttons seem to work as intended.
Steps to reproduce the issue
Steps to reproduce the behavior:
As a side note, I assume the popovers are javascript or bootstrap based, but I see no errors in the console.
Screenshots
Output of the diagnostics [REQUIRED]
Browser and system
Chrome - MacOS