Fehler bei Einrichtung HomeHub

diverse Zusatzsoftware

Moderator: Co-Administratoren

Antworten
Wichtelmann007
Beiträge: 222
Registriert: 26.02.2013, 21:11
Hat sich bedankt: 39 Mal

Fehler bei Einrichtung HomeHub

Beitrag von Wichtelmann007 » 31.10.2023, 18:46

Habe Homehub 3.2 auf Synology installiert.
PHP 7.2
Apache 2.4
Beim versuch des Impirts (Doppelklick auf Icon) kommt jedoch folgender Fehler:

Code: Alles auswählen

supplied for foreach() in /volume1/web/homehub/app/Components/autoload.php on line 18

Code: Alles auswählen

<?php

// Load all custom files
foreach (glob(__DIR__.'/custom/*.php') as $file) {
    require_once($file);
}

// Load standard files based on export.txt
$config_file = realpath(__DIR__.'/../Config/export.json');

if(file_exists($config_file)) {
    $str = file_get_contents($config_file);
    
    if (strlen($str) > 0){
      $export = json_decode($str, true);
      
      $components = array_unique(array_column($export['channels'], 'component'));
      foreach($components as $component) { 
          $func = str_replace('-', '_', $component);
          
          if(!function_exists($func)) {
              $component_file = __DIR__.'/'.$component.'.php';   
              if(file_exists($component_file)) {
                 require_once($component_file);
              }
          }  
      }
    }
    
    if(!function_exists('Program')) {
        require_once(__DIR__.'/Program.php');
    }
    
    if(!function_exists('SysVar')) {
        require_once(__DIR__.'/SysVar.php');
    }
}
 

Slice
Beiträge: 1203
Registriert: 03.02.2016, 14:44
System: Alternative CCU (auf Basis OCCU)
Wohnort: irgendwo aus Süd BaWü
Hat sich bedankt: 141 Mal
Danksagung erhalten: 85 Mal

Re: Fehler bei Einrichtung HomeHub

Beitrag von Slice » 02.11.2023, 10:49

Hi,

ich habe zwar keine Synology, aber hast Du die Berechtigungen wie angegeben gesetzt?
Welche XML-Api Version setzt Du ein? Die v3.2 setzt meine ich noch auf die XML-Api v1.22.

Grüße,
Slice
----------------------------------------------------------------------------------------
Raspi3B+ Bullseye mit HB-RF-ETH und RPI-RF-MOD auf piVCCU-FW 3.75.7 / Addons: CuxD v2.11 - E-Mail v1.7.6 - Patcher v1.0.0 - Philips Hue v3.2.5 - Programme drucken v2.6 - Scriptparser v1.11 - XML-API v2.3
Geräte: 141 / Kanäle: 791 / Datenpunkte: 6080 / SysVars: 275 / Programme: 161 / Regadom IDs: 14010 / 48 CUxD-Kanäle in 3 CUxD-Geräten
Intel NUC i3-5010U @ 2,1 GHz mit 16 GB RAM & 512 GB SSD für Proxmox mit ioBroker VM und CCU-Historian/InfluxDB/Grafana VM
----------------------------------------------------------------------------------------
Projekte im Forum: HomeHub v4.1 / Fritzbox-Anruferliste für HomeHub
----------------------------------------------------------------------------------------

Antworten

Zurück zu „Sonstige Addons“