Release Support > Pending Issues

rcube_config.php Error

(1/1)

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


--- Quote ---[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'
--- End quote ---

 i dont know whats wrong there, its this part:


--- Code: --- // 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';
        }

--- End code ---



Dmitry42:
not sure, but try PHP 8.0-8.1

Pr3muToS:
same error

JohnDoh:
The snippet you posted only contained warnings not errors. However those warnings suggest Roundcube cannot read its config files as all of those keys are defined in defaults.inc.php

Pr3muToS:

--- Quote from: JohnDoh on December 01, 2023, 02:38:31 AM ---The snippet you posted only contained warnings not errors. However those warnings suggest Roundcube cannot read its config files as all of those keys are defined in defaults.inc.php

--- End quote ---

thanks for the tip, apache cant read..

setting owner and group to www-data and all problems gone.

it was installed with a open source management panel, so the installation process of the panel was wrong, set wrong ownerships.

BR

Navigation

[0] Message Index

Go to full version