So I’m looking at the file apps/web/lib/Controller/ConfigController.php that shows an error on the data/owncloud.log:
public function getConfig(): JSONResponse {
try {
$configFile = \OC::$SERVERROOT . '/config/config.json';
$configContent = \file_get_contents($configFile);
$configAssoc = \json_decode($configContent, true);
$extendedConfig = $this->addOC10AppsToConfig($configAssoc);
$response = new JSONResponse($extendedConfig);
$response->addHeader('Cache-Control', 'max-age=0, no-cache, no-store, must-revalidate');
$response->addHeader('Pragma', 'no-cache');
$response->addHeader('Expires', 'Wed, 11 Jan 1984 05:00:00 GMT');
// $response->addHeader('X-Frame-Options', 'DENY');
return $response;
} catch(\Exception $e) {
$this->logger->logException($e, ['app' => 'web']);
return new JSONResponse(["message" => $e->getMessage()], Http::STATUS_NOT_FOUND);
}
}
/**
* Add enabled OC10 apps to the loaded config. This ensures that they are
* listed in the app switcher menu.
*
* @param array $config
* @return array
*/
private function addOC10AppsToConfig(array $config): array {
$apps = $config['applications'] ?? [];
This line here $configFile = \OC::$SERVERROOT . '/config/config.json';
is this supposed to be config.php?
There’s no config/config.json on my /var/www/owncloud, but the docs here say there should be one Deploy as an app in ownCloud 10 | ownCloud. I think I might have put it on config.php, oh man, so many configs, let me create the json one.