Jump to content
Froxlor Forum

Question

Posted

Ich habe die neueste Version (2022.07.05) von Froxlor von github heute Nacht installiert, php 8.1.7, mariadb, noch keine Domains hinzugefügt, kein Lets Encrypt
Alles war ok, aber jetzt funktionierte cron nicht mehr (es gab vorher keine Fehler)

# php /var/www/html/froxlor/scripts/froxlor_master_cronjob.php --force --debug

PHP Fatal error:  Uncaught Error: Call to undefined function Froxlor\exec() in /var/www/html/froxlor/lib/Froxlor/FileDir.php:54
Stack trace:
#0 /var/www/html/froxlor/lib/Froxlor/Cron/MasterCron.php(298): Froxlor\FileDir::safe_exec()
#1 /var/www/html/froxlor/lib/Froxlor/Cron/MasterCron.php(41): Froxlor\Cron\MasterCron::init()
#2 /var/www/html/froxlor/scripts/froxlor_master_cronjob.php(26): Froxlor\Cron\MasterCron::run()
#3 {main}
  thrown in /var/www/html/froxlor/lib/Froxlor/FileDir.php on line 54


zusätzlich erhalte ich alle 5 Minuten eine E-Mail mit folgendem Inhalt:

 

PHP Fatal error:  Uncaught Error: Call to undefined function Froxlor\Cron\system() in /var/www/html/froxlor/lib/Froxlor/Cron/MasterCron.php:250
Stack trace:
#0 /var/www/html/froxlor/lib/Froxlor/Cron/MasterCron.php(41): Froxlor\Cron\MasterCron::init()
#1 /var/www/html/froxlor/scripts/froxlor_master_cronjob.php(26): Froxlor\Cron\MasterCron::run()
#2 {main}
  thrown in /var/www/html/froxlor/lib/Froxlor/Cron/MasterCron.php on line 250

Ist das ein PHP 8.1 Problem? Ich weiß nicht, wo der Fehler liegen könnte, hat jemand eine Idee?

3 answers to this question

Recommended Posts

  • 0
Posted

Vielen Dank für schnelle Antwort. Das Problem ist jetzt gelöst.
Es stellte sich heraus, dass das Problem bei den Einstellungen in php.ini lag,
Ich habe dort die Einstellungen für disable_functions geändert, d.h. etwas zu restriktiv gemacht.
Nun funktioniert alles so wie es soll.

  • 0
Posted

exec() und system() sind eigentlich PHP eigene funktionen, ich kann dir so auf die schnelle nicht sagen wieso er diese im Namespace von froxlor sucht

  • 0
Posted

Also gerade getestet, auf aktueller Froxlor Version und PHP-8.1.7 läuft der cron bei mir sauber durch, keine Fehler

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...