Skip to content
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

Dependency on exiftool binary is not checked #2

Open
ramack opened this issue Jan 7, 2018 · 7 comments
Open

Dependency on exiftool binary is not checked #2

ramack opened this issue Jan 7, 2018 · 7 comments

Comments

@ramack
Copy link
Owner

ramack commented Jan 7, 2018

If exiftool binary is not found on the server the following warning is shown:

Warning: Invalid argument supplied for foreach() 
in.../plugins/exiftool_gps/main.inc.php on line 23

This is not nice and shall be replaced by a check whether exiftool binary is available and a understandable warning shall be output.

@ramack
Copy link
Owner Author

ramack commented Jan 20, 2018

add

if (`which exiftool`) {
    ...
}else{
    warn -> this is where I do not yet know how to do this in a simple manner...
}

see http://piwigo.org/forum/viewtopic.php?id=28450

@dgrammlich
Copy link

I had a further look at this issue. I am new to Piwigo and as far as I understand the structure and its templates you can not avoid adding a template or a admin.php to show a message in the administration backend. It seems like main.inc.php only is executed in the frontend.

I would not recommend to show the message in the frontend because it's a technical issue that a regular user can't fix or even understand.

As first shot I added a condition to avoid any PHP error messages in the frontend according to a missing exiftool installation. This issue is different to #6 as described in my comment there.

@ramack
Copy link
Owner Author

ramack commented Oct 11, 2019

To be honest I have also not more experience with the server side of piwigo than what I learned during writing down this plugin. I have mainly published it because I wanted to have it for me and though it could be useful for others, but since it does the job in my gallery I did not really care about it. - Shame on me.

I fully agree, that showing the error in the user frontend is not a good option, but in my eyes better than nowhere at all. So in case you have an idea of how to show the warning with an admin.php or a template it would be great if you could implement it.

@dgrammlich
Copy link

Hi @ramack, sorry for the delay. I would love to contribute the missing parts. But it will take some more days due to a lack of time...

@ramack
Copy link
Owner Author

ramack commented Oct 25, 2019

thanks for the feedback, I don't see the need to hurry here. So I'd happily wait for you proposal!

@shanchieh
Copy link

In Ununtu 18.04 . run following command can solve my problem

sudo apt install libimage-exiftool-perl

@klaoun
Copy link

klaoun commented Jul 23, 2023

Hello,
i propose
line 23 for
foreach ((array) $metadata as $key => $section) {
line 24 for
foreach ((array) $section as $name => $val) {

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants