Announcement

#1 2021-02-18 08:40:08

Jyskip
Member
2021-02-03
41

Download By Size -The requested URL was not found on this server.

Hello/Hi/Greetings,

I running the extension "Download By Size".
From the pictures on the site it can display the download function with multiple sizes, but when i select a download option i get a error.

Not Found
The requested URL was not found on this server.

This has only been seen on .tif files and not on .jpg and .png's.

If i select a photo size and right click to make a "save as" it finds the file.

I have seen a earlier post regarding (maybe) the same issue: https://piwigo.org/forum/viewtopic.php?pid=162823

And now i will try to remove all the different sizes and make them again in the batch manager.


Piwigo 2.10.2 Check for upgrade
Operating system: Linux
PHP: 7.3.19-1~deb10u1 (Show info) [2021-02-18 08:39:11]
MySQL: 5.5.5-10.3.25-MariaDB-0+deb10u1 [2021-02-18 08:39:11]
Graphics Library: External ImageMagick 6.9.10-23

Piwigo URL: http://guldmann.billedarkiv.com/
Username: guldmann
Password: images

Last edited by Jyskip (2021-02-18 08:40:39)

Offline

 

#2 2021-02-18 09:04:41

TOnin
Member
1970-01-01
106

Re: Download By Size -The requested URL was not found on this server.

Hi,
When I look on your server this URL: guldmann.billedarkiv.com/plugins/download_by_size/, I get a 404 Error.
On my server, I get a 403 Error.

Have you checked directories and files rights ?
Maybe this page can give you some clues on how to check this: https://piwigo.org/doc/doku.php?id=user … thumbnails

Offline

 

#3 2021-02-18 09:38:28

Jyskip
Member
2021-02-03
41

Re: Download By Size -The requested URL was not found on this server.

Hello TOnin,

Try look at this: http://guldmann.billedarkiv.com/plugins … ize-master

I have downloaded the plugin from GitHub.

Offline

 

#4 2021-02-18 10:32:16

TOnin
Member
1970-01-01
106

Re: Download By Size -The requested URL was not found on this server.

I understand that you did not get download_by_size directory, but instead you got Piwigo-download_by_size-master.
1 - rename this directory, and check the plugin is now working.

2 - I would not let the directory browsable from the web, but I don't think it's a big problem.

Offline

 

#5 2021-02-18 10:41:17

Jyskip
Member
2021-02-03
41

Re: Download By Size -The requested URL was not found on this server.

Hello,

I have renamed the plugin folder.
- I will check later if it changed anything.

Regarding the directory browsing, any tips to disable that? :P

Offline

 

#6 2021-02-18 12:40:52

TOnin
Member
1970-01-01
106

Re: Download By Size -The requested URL was not found on this server.

The plugin looks not installed anymore. You may have to remove previous installation, and to install it again. This would be just a problem with database that has not seen the directory renaming. You could also try: revert renaming, uninstall, rename, install.

For the rights, I don't know your environment. How do you access to your server files? with FTP? That would be nice if you could copy the way rights are set in others plugins. This is a problem of file ownership and file permission, let us know if you don't find anything on the web to get help.

Offline

 

#7 2021-02-18 13:08:27

Jyskip
Member
2021-02-03
41

Re: Download By Size -The requested URL was not found on this server.

Hello,

I have checked the folder for its plugins

https://i.imgur.com/Bu7HS5e.png

I can see that its "root" that is "owning" the files and not "www-data"

So maybe a permission issue?

Offline

 

#8 2021-02-18 13:17:20

TOnin
Member
1970-01-01
106

Re: Download By Size -The requested URL was not found on this server.

Assuming you are root, in download_by_size directory:

Code:

chown -R www-data:www-data .

will set www-data user, www-data group to download_by_size directory (here .) and all sub folders and contained files (-R)

Offline

 

#9 2021-02-18 13:44:51

TOnin
Member
1970-01-01
106

Re: Download By Size -The requested URL was not found on this server.

Actually, this won't change the possibility for other users, such as web visitors, to read your folder content. (user-group-other ugo d_rwx_r-x_r-x)
This is the same for others plugins without index.php file inside (most are using a default index.php file).
My server settings forbid directory listing, that why I get a 403 and you got listing. The default index.php file will redirect to home page.

Now, your actual problem is the plugin files were not deployed in a well named folder. Now, it just need to be installed correctly within piwigo. Just have a look at plugins page.

In the future www-data will be able to update the plugin from piwigo because it owns rights on plugin folder. www-data acting for piwigo, would not have been able to change root owned folder.

Offline

 

#10 2021-02-18 16:59:48

erAck
Only trying to help
2015-09-06
2023

Re: Download By Size -The requested URL was not found on this server.

Lesson: Never work as root!


Running Piwigo at https://erack.net/gallery/

Offline

 

#11 2021-02-19 13:19:49

Jyskip
Member
2021-02-03
41

Re: Download By Size -The requested URL was not found on this server.

Hello,

I didn't make any changes - i renamed the folder and verified it shows it self under the plugin list.

deleted all multiple sizes and regenerated them now - now i have the option for multiple sizes for download.

Thanks for all the help!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact