-
Notifications
You must be signed in to change notification settings - Fork 94
Upload // Error Message #205
Comments
I cannot reproduce, do you have an image for me to try with ? |
Is there any output in Lychee's log? |
Very weird, still could not reproduce. :( |
If you run without |
Unfortunately yes ..:-( |
can you do this:
try upload, this if this raise an error.
to see what is the last commit that was working for you. It may sound scary but you should be fine, you can always do a |
Sorry can't do that. I always update manually. Not my server. Sorry :-( |
:( |
Anything else I can do or check? |
You say you update manually, so I presume this means simply copy the content of the lychee-some-version.zip to the folder on the server containing your lychee installation, right? |
No ;-) But thanks. |
@SerenaButler Do you see any errors in the Network tab of the inspector? Check your XHR requests. |
Is your server running php in safe_mode? |
Or are your server running on Windows? |
No and No. I did not had this "false error" with 3.2.9. |
But your error clearly states that the php interpreter is not allowed to run either /bin/sh or /usr/bin/which |
What operating system do you specifically use, maker and version? |
I'm curious what the errors are without |
The error will be there whether using useExiftool or not since checking if useExiftool is true will execute the system call which detects whether exiftool are present or not. See 'public static function useExiftool()' in Settings.php |
I have tried to see whether catching an exception is possible but without luck ;-( |
I might have found a solution that does not cause error messages: diff --git a/php/Modules/Settings.php b/php/Modules/Settings.php
index 928dee9..12440c5 100755
--- a/php/Modules/Settings.php
+++ b/php/Modules/Settings.php
@@ -352,8 +352,8 @@ final class Settings {
/**
* @return bool Returns the useExiftool setting.
*/
- public static function useExiftool() {
- system('which exiftool 2>&1 > /dev/null', $status);
+ public static function useExiftool() {
+ exec('which exiftool 2>&1 > /dev/null', $output, $status);
if ($status != 0) return false;
return (bool) (self::get()['useExiftool'] === '1');
} Could you try above patch? |
Forgot to mention. To provoke a similar error simply call a non existing command like 'which1' |
Actually this version is better as you skip the test if you don't enable public static function useExiftool() {
if(self::get()['useExiftool'] === '1')
{
exec('which exiftool 2>&1 > /dev/null', $output, $status);
if ($status != 0) return false;
return true;
}
return false;
} |
I can confirm that this (ildyrias code) is working and the error message is gone :-) Thanks Michael! :-) |
Do I understand it correct that the Exiftool is not working on my hosted webspace though? |
@SerenaButler Either that or |
I checked and I HAVE exiftool running in my hosted enviroment (all-inkl.de) so it would be nice to get it running with Lychee too ;-) |
Surprising then :( |
Pffff .... hahaha ... ok :-P |
Also feel free to drop by our gitter: https://gitter.im/LycheeOrg/Lobby :) |
Detailed description of the problem
Steps to reproduce the issue
When uploading images I got these errors. Images are uploaded fine though.
Console
Output of the diagnostics (Settings => Diagnostics)
Diagnostics
Warning: Dropbox import not working. No property for dropboxKey.
No critical problems found. Lychee should work without problems!
System Information
Lychee Version (json): 3.2.12
DB Version: update_030212
System: Linux
PHP Version: 7.1
MySQL Version: 50721
Imagick: 1
Imagick Active: 1
Imagick Version: 1673
GD Version: bundled (2.1.0 compatible)
Plugins:
Browser and system
Win 10 // Google Chrome Version 72.0.3626.109 (64-Bit)
The text was updated successfully, but these errors were encountered: