X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FAdmin%2FSummary.php;h=ca042c6fa7616175b8741a1f6a71c4eff03af898;hb=394159d41e140fbf2f3c87245742fa37dbb43c0a;hp=901a4b081feaafeaeb5b3881b3b1b269c7555561;hpb=4161f5ebe07d4646b2acd56f0f459bfa53a18a20;p=friendica.git diff --git a/src/Module/Admin/Summary.php b/src/Module/Admin/Summary.php index 901a4b081f..ca042c6fa7 100644 --- a/src/Module/Admin/Summary.php +++ b/src/Module/Admin/Summary.php @@ -26,7 +26,7 @@ class Summary extends BaseAdminModule // are there MyISAM tables in the DB? If so, trigger a warning message $warningtext = []; - if (DBA::count('`information_schema`.`tables`', ['engine' => 'myisam', 'table_schema' => DBA::databaseName()])) { + if (DBA::count(['information_schema' => 'tables'], ['engine' => 'myisam', 'table_schema' => DBA::databaseName()])) { $warningtext[] = L10n::t('Your DB still runs with MyISAM tables. You should change the engine type to InnoDB. As Friendica will use InnoDB only features in the future, you should change this! See here for a guide that may be helpful converting the table engines. You may also use the command php bin/console.php dbstructure toinnodb of your Friendica installation for an automatic conversion.
', 'https://dev.mysql.com/doc/refman/5.7/en/converting-tables-to-innodb.html'); } @@ -74,6 +74,23 @@ class Summary extends BaseAdminModule $well_known, $well_known, $a->getBaseURL() . '/help/Install'); } + // Check logfile permission + if (Config::get('system', 'debugging')) { + $stream = Config::get('system', 'logfile'); + + if (is_file($stream) && + !is_writeable($stream)) { + $warningtext[] = L10n::t('The logfile \'%s\' is not writable. No logging possible', $stream); + } + + $stream = Config::get('system', 'dlogfile'); + + if (is_file($stream) && + !is_writeable($stream)) { + $warningtext[] = L10n::t('The logfile \'%s\' is not writable. No logging possible', $stream); + } + } + // check legacy basepath settings $configLoader = new ConfigFileLoader($a->getBasePath(), $a->getMode()); $configCache = new Config\Cache\ConfigCache(); @@ -129,8 +146,6 @@ class Summary extends BaseAdminModule $pending = Register::getPendingCount(); - $queue = DBA::count('queue', []); - $deferred = DBA::count('workerqueue', ['`executed` <= ? AND NOT `done` AND `next_try` > ?', DBA::NULL_DATETIME, DateTimeFormat::utcNow()]); @@ -138,7 +153,7 @@ class Summary extends BaseAdminModule DBA::NULL_DATETIME, DateTimeFormat::utcNow()]); // We can do better, but this is a quick queue status - $queues = ['label' => L10n::t('Message queues'), 'queue' => $queue, 'deferred' => $deferred, 'workerq' => $workerqueue]; + $queues = ['label' => L10n::t('Message queues'), 'deferred' => $deferred, 'workerq' => $workerqueue]; $variables = DBA::toArray(DBA::p('SHOW variables LIKE "max_allowed_packet"')); $max_allowed_packet = $variables ? $variables[0]['Value'] : 0;