Jump to content
Froxlor Forum
  • 0

Master Cronjob startet nicht - syntax error, unexpected T_OBJECT_OPERATOR


bububoomt

Question

Ich habe diverse Kunden gelöscht und die Cronjobs werden leider nicht ausgeführt um die Daten zu löschen und die Konfigdatei neu zu schreiben.

Beim manuellen Start der Cronjobdatei per ssh mit

 /usr/bin/php5 /var/www/froxlor/scripts/froxlor_master_cronjob.php --force

erhalte ich


PHP Parse error:  syntax error, unexpected T_OBJECT_OPERATOR in /var/www/froxlor/scripts/jobs/cron_tasks.inc.http.10.apache.php on line 69

Jemand eine Idee wie ich das lösen kann?

Ich glaube das Problem existiert schon länger, nur ist es mir nicht aufgefallen, da der Server wenig genutzt wird.

Wäre über jede Hilfe dankbar.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

Naja, die neueste Release-Version ja, ist ne Weile her, ist in Git gefixed, siehe https://github.com/Froxlor/Froxlor/blob/master/scripts/jobs/cron_tasks.inc.http.10.apache.php#L69

Also statt:

$isDirEmpty = !(new \FilesystemIterator($restart_cmd['config_dir']))->valid();
if ($isDirEmpty) {

machst du da einfach folgendes draus, dann brauchst du nix sonst anpassen:

$_conffiles = glob(makeCorrectFile($restart_cmd['config_dir'] . "/*.conf"));
if ($_conffiles === false || empty($_conffiles)) {

 

Link to comment
Share on other sites

Dann bekomme ich leider
 

PHP Parse error:  syntax error, unexpected $end in /var/www/froxlor/scripts/jobs/cron_tasks.inc.http.10.apache.php on line 420

Habe dann die ganze Datei ersetz, da die auf Github ja deutlich größer ist, dann bekam ich das Problem bei cron_tasks.inc.http.20.lighttpd.php, ebenfalls ersetz und dann cron_tasks.inc.http.30.nginx.php das gleiche.

Dann hatte ich das Problem

SSLProtocol: Illegal protocol 'TLSv1.2'
Action 'configtest' failed.
The Apache error log may have more information.

was ich erst mal lösen konnte indem ich aus den Congi files in apache2/sites-enabeled  

aus

 SSLProtocol -ALL +TLSv1 + TLSv1.2

nur

SSLProtocol -ALL +TLSv1 

gemacht habe. Damit erst mal zumindest die Seiten wieder gehen.

Argh, verzweiflung macht sich langsam breit :(

 

Link to comment
Share on other sites

habe ich nun gemacht und bekomme beim Crone folgendes:

 

Syntax error on line 11 of /etc/apache2/sites-enabled/35_froxlor_ssl_vhost_XXXXXXXX.de.conf:
SSLProtocol: Illegal protocol 'TLSv1.2'
rndc: connect failed: 127.0.0.1#953: connection refused
[error] Error while running `/etc/init.d/bind9 reload`: exit code (1) - please check your system logs

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...