Roundcube Community Forum

Release Support => Pending Issues => Topic started by: cpmwi on July 02, 2009, 10:55:37 PM

Title: PHP Fatal error: Class 'rcube_user' not found in /web/mail.XXX/program/include/rcmai
Post by: cpmwi on July 02, 2009, 10:55:37 PM
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
Title: same issue after updating PHP to 5.2.10
Post by: pnagel on July 02, 2009, 11:50:16 PM
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.
Title: PHP Fatal error: Class 'rcube_user' not found in /web/mail.XXX/program/include/rcmai
Post by: cpmwi on July 03, 2009, 12:14:29 AM
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.
Title: Ditto
Post by: Kirktis on July 11, 2009, 08:19:53 PM
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]
Title: PHP Fatal error: Class 'rcube_user' not found in /web/mail.XXX/program/include/rcmai
Post by: pnagel on July 11, 2009, 10:16:15 PM
I also brought this up on the Development mailing list, see here (http://www.nabble.com/Incompatibility-with-PHP-5.2.10--td24317275.html#a24317275).

To summarise the discussion over there:


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:

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
Title: PHP Fatal error: Class 'rcube_user' not found in /web/mail.XXX/program/include/rcmai
Post by: satan777 on July 12, 2009, 03:03:44 PM
My solution was to remove curlwrappers from use flags on gentoo. The ':' in path confuses the new php include code.
Title: PHP Fatal error: Class 'rcube_user' not found in /web/mail.XXX/program/include/rcmai
Post by: pnagel on July 12, 2009, 09:56:30 PM
That's it! USE=-curlwrappers and RoundCube works again. Thanks :)