Page 1 of 1

keyhelp-toolbox can't run.

Posted: Wed 17. Aug 2022, 10:39
by akong77
I'm sure the cause of the problem is within KeyHelp
I run keyhelp-toolbox will got error message.


Server operating system + version
Debian 11


Server virtualization technology used
Vmware


KeyHelp version + build number
22.1.1 (Build 2691)


Problem description / error messages
Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct(/home/keyhelp/www/keyhelp/locale/zh/LC_MESSAGES): failed to open dir: No such a file or directory in /home/keyhelp/www/keyhelp/functions/functions.gettext.php:47
Stack trace:
#0 /home/keyhelp/www/keyhelp/functions/functions.gettext.php(47): DirectoryIterator->__construct()
#1 /home/keyhelp/www/keyhelp/bin/toolbox.php(50): bindAllTextDomains()
#2 {main}
thrown in /home/keyhelp/www/keyhelp/functions/functions.gettext.php on line 47

Expected result


Actual result


Steps to reproduce


Additional information
This directory should /home/keyhelp/www/keyhelp/locale/zh_TW/LC_MESSAGES

Re: keyhelp-toolbox can't run.  [SOLVED]

Posted: Wed 17. Aug 2022, 10:59
by Alexander
Thanks for reporting!

Your system locale is set to zh, KeyHelp expect it to be set to zh_tw (in your case).

The bug in KeyHelp is, the keyhelp-toolbox does not fall back to the default language in this case.

I have fixed it now. You can replace the KeyHelp file with this command and you are good:

Code: Select all

cp /home/keyhelp/www/keyhelp/bin/toolbox.php /home/keyhelp/www/keyhelp/bin/toolbox.php ; wget https://install.keyhelp.de/misc/toolbox -O /home/keyhelp/www/keyhelp/bin/toolbox.php ; chown keyhelp:keyhelp /home/keyhelp/www/keyhelp/bin/toolbox.php ; chmod +x /home/keyhelp/www/keyhelp/bin/toolbox.php

Re: keyhelp-toolbox can't run.

Posted: Tue 27. Sep 2022, 17:15
by andromeda
Alexander wrote: Wed 17. Aug 2022, 10:59 Thanks for reporting!

Your system locale is set to zh, KeyHelp expect it to be set to zh_tw (in your case).

The bug in KeyHelp is, the keyhelp-toolbox does not fall back to the default language in this case.

I have fixed it now. You can replace the KeyHelp file with this command and you are good:

Code: Select all

cp /home/keyhelp/www/keyhelp/bin/toolbox.php /home/keyhelp/www/keyhelp/bin/toolbox.php ; wget https://install.keyhelp.de/misc/toolbox -O /home/keyhelp/www/keyhelp/bin/toolbox.php ; chown keyhelp:keyhelp /home/keyhelp/www/keyhelp/bin/toolbox.php ; chmod +x /home/keyhelp/www/keyhelp/bin/toolbox.php
Hallo,

Ist das script noch up to date?

PHP Fatal error: The file /home/keyhelp/www/keyhelp/bin/toolbox.php encoded as type [1/71] cannot be decoded by this version of the ionCube Loader.

Re: keyhelp-toolbox can't run.

Posted: Wed 28. Sep 2022, 10:26
by Florian
Hallo,

läuft auf der CLI die vom System mitgebrachte PHP Version oder wurde da was verändert?

Re: keyhelp-toolbox can't run.

Posted: Wed 28. Sep 2022, 19:44
by andromeda
Florian wrote: Wed 28. Sep 2022, 10:26 Hallo,

läuft auf der CLI die vom System mitgebrachte PHP Version oder wurde da was verändert?
ja.

PHP 8.1.2

Alles andere funktioniert auch. Habe mir nur versehentlich die .php der Toolbox gelöscht und wollte mir das File so wieder holen. :oops:

Re: keyhelp-toolbox can't run.

Posted: Wed 28. Sep 2022, 20:05
by 24unix
andromeda wrote: Wed 28. Sep 2022, 19:44
Florian wrote: Wed 28. Sep 2022, 10:26 Hallo,

läuft auf der CLI die vom System mitgebrachte PHP Version oder wurde da was verändert?
ja.

PHP 8.1.2

Alles andere funktioniert auch. Habe mir nur versehentlich die .php der Toolbox gelöscht und wollte mir das File so wieder holen. :oops:
Das klappt nicht.
Deine Cron-Jobs laufen jetzt wahrscheinlich nicht mehr.

Default CLI muss für Bullseye 7.4 sein.

Wenn Du ein anderes brauchst, dass unter php erreichbar ist, siehe hier: viewtopic.php?t=11705

Re: keyhelp-toolbox can't run.

Posted: Thu 29. Sep 2022, 15:57
by andromeda
24unix wrote: Wed 28. Sep 2022, 20:05
andromeda wrote: Wed 28. Sep 2022, 19:44
Florian wrote: Wed 28. Sep 2022, 10:26 Hallo,

läuft auf der CLI die vom System mitgebrachte PHP Version oder wurde da was verändert?
ja.

PHP 8.1.2

Alles andere funktioniert auch. Habe mir nur versehentlich die .php der Toolbox gelöscht und wollte mir das File so wieder holen. :oops:
Das klappt nicht.
Deine Cron-Jobs laufen jetzt wahrscheinlich nicht mehr.

Default CLI muss für Bullseye 7.4 sein.

Wenn Du ein anderes brauchst, dass unter php erreichbar ist, siehe hier: viewtopic.php?t=11705
Danke. Der Link war hilfreich. :D