Hey,
i installed roundcube on my Debian 11 server , php is 8.2-fpm
If i want to browse the loginsite , i always get:
Oops... something went wrong!
An internal error has occurred. Your request cannot be processed at this time
i cant see any errors in php log, a roundcube log i dont have, the folder is empty...
in Apache log i see following errors:
[proxy_fcgi:error] [pid 700:tid 140342955341568] [client 80.155.161.109:0] AH01071: Got error 'PHP message: PHP Warning: Undefined array key "temp_dir" in /var/lib/roundcube/program/lib/Roundcube/rcube_config.php on line 233; PHP message: PHP Warning: Undefined array key "temp_dir" in /var/lib/roundcube/program/lib/Roundcube/rcube_config.php on line 233; PHP message: PHP Warning: Undefined array key "drafts_mbox" in /var/lib/roundcube/program/lib/Roundcube/rcube_config.php on line 243; PHP message: PHP Warning: Undefined array key "junk_mbox" in /var/lib/roundcube/program/lib/Roundcube/rcube_config.php on line 243; PHP message: PHP Warning: Undefined array key "sent_mbox" in /var/lib/roundcube/program/lib/Roundcube/rcube_config.php on line 243; PHP message: PHP Warning: Undefined array key "trash_mbox" in /var/lib/roundcube/program/lib/Roundcube/rcube_config.php on line 243; PHP message: PHP Warning: Undefined array key "log_driver" in /var/lib/roundcube/program/lib/Roundcube/rcube_config.php on line 247'
i dont know whats wrong there, its this part:
// fix paths
foreach (['log_dir' => 'logs', 'temp_dir' => 'temp'] as $key => $dir) {
foreach ([$this->prop[$key], '../' . $this->prop[$key], RCUBE_INSTALL_PATH . $dir] as $path) {
if ($path && ($realpath = realpath(unslashify($path)))) {
$this->prop[$key] = $realpath;
break;
}
}
}
// fix default imap folders encoding
foreach (['drafts_mbox', 'junk_mbox', 'sent_mbox', 'trash_mbox'] as $folder) {
$this->prop[$folder] = rcube_charset::convert($this->prop[$folder], RCUBE_CHARSET, 'UTF7-IMAP');
}
// set PHP error logging according to config
$error_log = $this->prop['log_driver'] ?: 'file';
if ($error_log == 'file') {
$error_log = $this->prop['log_dir'] . '/errors';
$error_log .= $this->prop['log_file_ext'] ?? '.log';
}