keyhelp-toolbox can't run.  [SOLVED]

Have you discovered a bug? Tell us about it.
Post Reply
akong77
KeyHelp Translator
Posts: 44
Joined: Mon 2. Aug 2021, 07:39

keyhelp-toolbox can't run.

Post 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
User avatar
Alexander
Keyweb AG
Posts: 3809
Joined: Wed 20. Jan 2016, 02:23

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

Post 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
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
andromeda
Posts: 83
Joined: Wed 25. Nov 2020, 13:49

Re: keyhelp-toolbox can't run.

Post 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.
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: keyhelp-toolbox can't run.

Post by Florian »

Hallo,

läuft auf der CLI die vom System mitgebrachte PHP Version oder wurde da was verändert?
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
andromeda
Posts: 83
Joined: Wed 25. Nov 2020, 13:49

Re: keyhelp-toolbox can't run.

Post 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:
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: keyhelp-toolbox can't run.

Post 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
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
andromeda
Posts: 83
Joined: Wed 25. Nov 2020, 13:49

Re: keyhelp-toolbox can't run.

Post 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
Post Reply