FS#43783 - [roundcubemail] roundcube 1.1.0-2 is now bricked with internal PHP error
Attached to Project:
Community Packages
Opened by Patrick Goetz (pgoetz) - Wednesday, 11 February 2015, 10:29 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 04 January 2016, 14:55 GMT
Opened by Patrick Goetz (pgoetz) - Wednesday, 11 February 2015, 10:29 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 04 January 2016, 14:55 GMT
|
Details
Package: roundcubemail 1.1.0-2
The 1.1.0-2 roundcubemail update appears to have bricked my roundcube installation, which now gives a fatal PHP error on my server. The error message I get in the httpd logs is: [Wed Feb 11 04:02:54.450857 2015] [:error] [pid 15519] [client 67.189.113.124:4342] PHP Fatal error: Class 'Patchwork\\Utf8\\Bootup' not found in /usr/share/webapps/roundcubemail/program/include/iniset.php on line 73 This seems like an upstream bug; however I don't see anyone else on the http://www.roundcubeforum.net reporting similar problems, so maybe it's a packaging issue? |
This task depends upon
Closed by Sergej Pupykin (sergej)
Monday, 04 January 2016, 14:55 GMT
Reason for closing: Fixed
Additional comments about closing: 1.2-beta in community
Monday, 04 January 2016, 14:55 GMT
Reason for closing: Fixed
Additional comments about closing: 1.2-beta in community
However, after that I got stumped by further issues when sending which I suspect may be packaging. The first was solved by installing pear-mail-mime from AUR, but I'm now stuck at
[11-Feb-2015 11:42:36] WARNING: [pool www] child 5523 said into stderr: "NOTICE: PHP message: PHP Fatal error: Class 'Net_SMTP' not found in /usr/share/webapps/roundcubemail/program/lib/Roundcube/rcube_smtp.php on line 111"
Which I suspect could be resolved by installing pear-net-smtp but I then got:
Warning: touch(): Unable to create file /usr/share/pear/.lock because Permission denied in PEAR/Registry.php on line 835
PHP Warning: touch(): Unable to create file /usr/share/pear/.lock because Permission denied in /usr/share/pear/PEAR/Registry.php on line 835 could not create lock file: fopen(/usr/share/pear/.lock): failed to open stream: No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
Building pear-net-socket as a dependency, at this I decided I should stop clutching at straws.
Edit: this is the line in the code where the fatal PHP error occurs:
// load the UTF-8 portablity layer from Patchwork
if (!function_exists('iconv') || !function_exists('utf8_encode') || !extension_loaded('mbstring')) {
\Patchwork\Utf8\Bootup::initAll();
}
So enabling the iconv extension means that \Patchwork\Utf8\Bootup::initAll(); is bypassed (which is good, since it appears to not be installed, and isn't given as a dependency).
pear-mail-mime
pear-net-socket (dependency for next package)
pear-net-smtp
pear-mail-mimedecode
The one and only dependency which I couldn't find was for Auth_SASL or something like that. You can make a quick check from the installer.
I have a thread open on http://www.roundcubeforum.net/ regarding this issue, and will report back if I can get feedback on Bogomil's commments.
"I would recommend installing using composer to resolve the dependencies."
I think if roundcube is going to continue to be packaged, it will be up to the package maintainer to install roundcube using composer and then make note of the dependencies so that they can be included in the PKGBUILD.
https://wiki.archlinux.org/index.php/Roundcube updated
BTW: using composer results in problems similar to:
http://stackoverflow.com/questions/22289640/trying-to-install-composer-on-osx-10-9
[Tue Sep 08 11:30:39.426056 2015] [:error] [pid 22761] [client 91.208.250.110:35139] PHP Fatal error: Class 'Patchwork\\Utf8\\Bootup' not found in /usr/share/webapps/roundcubemail/program/include/iniset.php on line 74, referer: https://webmail.mini.pw.edu.pl/?_mbox=INBOX&_refresh=1&_task=mail
Maybe you have those necessary libraries thanks to previous upgrade to 1.1.x? I'm upgrading from 1.0.4...