Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Master Cronjob startet nicht - syntax error, unexpected T_OBJECT_OPERATOR

Featured Replies

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.

Aktuellere PHP Version nutzen oder aktuellere froxlor Version ;)

  • Author

Froxlor ist die neuste Version.

Argh php update muss ich gestehen schon länger nicht gemacht, weils immer irgendwie nicht so problemlos war :(

Auf dem Froxlorsystem glaube habe ichs selber bisher gar nciht gemacht :(:(

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)) {

 

  • Author

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 :(

 

10 minutes ago, bububoomt said:

Habe dann die ganze Datei ersetz, da die auf Github ja deutlich größer ist

Ehm, das wird nix, wenn musst du das komplette froxlor aus git nutzen...

  • Author

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

 

On 9/30/2018 at 11:40 AM, bububoomt said:

SSLProtocol -ALL +TLSv1 + TLSv1.2

Das steht bei dir drin, beachte das Leerzeichen zwischen dem + und TLSv1.2 ...

  • Author

in der Datei ist es ohne, ich hatte es hier getippt und es versehentlich rein gemacht.

 

Zu altes openssl/alter Apache? Ich brauche bisschen mehr Info. System etc.

Archived

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.