Author Topic: rcube_config.php Error  (Read 5356 times)

Offline Pr3muToS

  • Newbie
  • *
  • Posts: 3
rcube_config.php Error
« 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:

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




Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: rcube_config.php Error
« Reply #1 on: November 30, 2023, 10:16:11 AM »
not sure, but try PHP 8.0-8.1

Offline Pr3muToS

  • Newbie
  • *
  • Posts: 3
Re: rcube_config.php Error
« Reply #2 on: November 30, 2023, 01:48:49 PM »
same error

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Re: rcube_config.php Error
« Reply #3 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
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline Pr3muToS

  • Newbie
  • *
  • Posts: 3
Re: rcube_config.php Error
« Reply #4 on: December 01, 2023, 12:24:17 PM »
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