Roundcube Community Forum

 

PHP Fatal error: Class 'rcube_user' not found in /web/mail.XXX/program/include/rcmai

Started by cpmwi, July 02, 2009, 10:55:37 PM

Previous topic - Next topic

cpmwi

I had an old(er) version of roundcube that I migrated to a new server, I get the below errors - I also get them in 2.2 when i try the manual or the auto install.

So I figure this is a php issue, can someone point me in the right direction? I am running PHP5.2.10 / Apache2 / MySQL - Permissions look correct

Thanks
Matthew

[02-Jul-2009 19:47:35] PHP Warning:  include() [function.include]: Couldn't resolve host name in /web/mail.XXX/program/include/iniset.php on line 98
[02-Jul-2009 19:47:35] PHP Warning:  include(rcube_user.php) [function.include]: failed to open stream: operation failed in /we
b/mail.XXX/program/include/iniset.php on line 98
[02-Jul-2009 19:47:35] PHP Warning:  include() [function.include]: Failed opening 'rcube_user.php' for inclusion (include_path=
'/web/mail.XXX/:/web/mail.XXX/program:/web/mail.XXX/program/lib:/web/mail.XXX/program/include:.:/usr/share
/php5:/usr/share/php') in /web/mail.XXX/program/include/iniset.php on line 98
[02-Jul-2009 19:47:35] PHP Fatal error:  Class 'rcube_user' not found in /web/mail.XXX/program/include/rcmail.php on line 122

pnagel

Hi,

I have the same error message since I updated PHP to version 5.2.10 (from 5.2.9) on my Gentoo server. Roundcube 0.2.1 has been running there without a problem. I tried updating Roundcube to 0.2.2 with no success.

Is there an incompatibility between PHP 5.2.10 and Roundcube?

Patrick.

cpmwi

Must be - at least a gentoo 5.2.10 problem. I am running gentoo as well.

Dropping to 5.2.9 to see if that help.

Kirktis

#3
Same server setup, same issue. Also applies to 0.3 beta.

[Edit:]
Checked 5.2.10-r1 (still flagged unstable), same problem. I have a feeling this is an upstream issue as opposed to a gentoo-specific issue.
Downgrading to 5.2.9-r2 solves the issue.
[/Edit]

pnagel

I also brought this up on the Development mailing list, see here.

To summarise the discussion over there:

  • Till says Roundcube works with PHP built from source
  • Alec says Roundcube works on his Gentoo box with PHP 5.2.10
  • roy-66 says the same as Alec

I then had a talk with Alec off-list, trying to find out the differences between our two Gentoo-PHP stacks, with the following results:

  • We ruled out that it has to do with the pathname of the Roundcube installation containing an URL-like element (my vhosts all have the domain name in the path, but I created a new vhost called 'test', and the problem persisted)
  • Alec suggested to disable "allow_url_include" - which already was disabled on my PHP
  • Alec suggested to disable Suhosin -> problem still persisted
The following is a diff of Alec's and my USE flags...
--- my_php_use.txt      2009-07-05 14:55:20.000000000 +0800
+++ alec_php_use.txt    2009-07-05 14:56:28.000000000 +0800
@@ -1,31 +1,29 @@
 apache2
+berkdb
 bzip2
-cjk
 cli
 crypt
 ctype
-curl
-curlwrappers
-exif
-gd-external
-hash
+ftp
+gd
+gdbm
 iconv
 imap
-ldap
-mhash
-mysql
+ipv6
 ncurses
 nls
 pcre
-pdo
+posix
+postgres
 readline
 reflection
 session
-sockets
+simplexml
+snmp
+spell
 spl
+sqlite
 ssl
-suhosin
-threads
 truetype
 unicode
 xml

satan777

My solution was to remove curlwrappers from use flags on gentoo. The ':' in path confuses the new php include code.

pnagel