Thumbnails look broken on my own instance #46

Closed
opened 2024-10-24 13:03:07 +00:00 by Evhorizon · 11 comments

I'm running my own local instance with nginx and my thumbnails/preview icons are broken, I can only see the generic icon

I'm running my own local instance with nginx and my thumbnails/preview icons are broken, I can only see the generic icon
Owner

Please open the network tab, and reload the page. Inspect the headers of an image, you should see an X-Error header with more information.

Please open the network tab, and reload the page. Inspect the headers of an image, you should see an `X-Error` header with more information.
Author

The X-error is "No URL(i) provided". If I click the preview the image loads tho. Also, FWIW, the broken thumbnail URL appears to be http://localhost/proxy

The X-error is "No URL(i) provided". If I click the preview the image loads tho. Also, FWIW, the broken thumbnail URL appears to be http://localhost/proxy
Owner

Weird. Why wouldn't it pass the i parameter to /proxy? Do you have any weird redirects setup?

Weird. Why wouldn't it pass the `i` parameter to `/proxy`? Do you have any weird redirects setup?
Author

Hmm actually I followed the very same steps that @bread suggests in the updated nginx guide, ofc I used "localhost" as server_name. Maybe I should add some other stuff in the configuration file? I don't really have idea of how to set redirect rules.

Hmm actually I followed the very same steps that @bread suggests in the updated nginx guide, ofc I used "localhost" as server_name. Maybe I should add some other stuff in the configuration file? I don't really have idea of how to set redirect rules.
Contributor

@Evhorizon Could you git pull? I'm pretty sure Will fixed it, but forgot to mention it: 9c18753ec3 Slight blunder on their behalf, lol.

@Evhorizon Could you `git pull`? I'm pretty sure Will fixed it, but forgot to mention it: https://git.lolcat.ca/lolcat/4get/commit/9c18753ec3b19571f7a84865faa090e48b12bc38 Slight blunder on their behalf, lol.
Contributor

I'm also getting something somewhat similar; I have to reload twice for searching something behind a proxy, while also having the ‘you need to click on images to load them’ fiasco. GET status is 500, while X-Error is not present whatsoever.

It might be my internet for the first one, but I'm not sure about the second.

I'm also getting something somewhat similar; I have to reload twice for searching something behind a proxy, while also having the ‘you need to click on images to load them’ fiasco. GET status is `500`, while `X-Error` is not present whatsoever. It might be my internet for the first one, but I'm not sure about the second.
Author

Nvm bros, the latest commit fixed the issue :) @bread btw I didn't even had to use the pinned php83-sodium PKG from the AUR, I just had to install php-sodium and uncomment "; extension=sodium" in the php.ini file

Nvm bros, the latest commit fixed the issue :) @bread btw I didn't even had to use the pinned php83-sodium PKG from the AUR, I just had to install php-sodium and uncomment "; extension=sodium" in the php.ini file
Contributor

The fak

The fak
Author

Also, the imagick.ini file should have the extension=imagick line uncommented to make php load the imagick module.
And I can confirm that the curl and mbstring modules are already built in in the Arch PHP package.

Also, the imagick.ini file should have the extension=imagick line uncommented to make php load the imagick module. And I can confirm that the curl and mbstring modules are already built in in the Arch PHP package.
Owner

Sick, but yeah sorry about that. I don't think nginx handles passing the .php extension accidentally. If you pass an extension on an apache2 build, shit just werks.

Sick, but yeah sorry about that. I don't think nginx handles passing the .php extension accidentally. If you pass an extension on an apache2 build, shit just werks.
Author

No prob @lolcat , thanks for the fast fix :) I agree that nginx is not the ideal option but setting up an apache instance on Arch is a nightmare, I couldn't even get redirect working lol.

No prob @lolcat , thanks for the fast fix :) I agree that nginx is not the ideal option but setting up an apache instance on Arch is a nightmare, I couldn't even get redirect working lol.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lolcat/4get#46
No description provided.