Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Pr3muToS on November 30, 2023, 05:00:58 AM

Title: rcube_config.php Error
Post by: Pr3muToS on November 30, 2023, 05:00:58 AM
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'

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';
        }




Title: Re: rcube_config.php Error
Post by: Dmitry42 on November 30, 2023, 10:16:11 AM
not sure, but try PHP 8.0-8.1
Title: Re: rcube_config.php Error
Post by: Pr3muToS on November 30, 2023, 01:48:49 PM
same error
Title: Re: rcube_config.php Error
Post by: 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
Title: Re: rcube_config.php Error
Post by: Pr3muToS on December 01, 2023, 12:24:17 PM
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

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