roundcube failure after pkg update

0 views
Skip to first unread message

Jim Pazarena

unread,
Nov 25, 2025, 2:49:09 PM (10 days ago) Nov 25
to ques...@freebsd.org
I have been struggling with an error in roundcube since I updated some
software (via pkg system). I have solved my own issue, and wanted to
share it here.

FreeBSD (14.3p5), roundcube (1.6.11), php (8.5.0b3)

issue:
at first launch of roundcube, issue triggered in apache log:
[Tue Nov 25 09:36:04.095321 2025] [php:error] [pid 12559] [client
23.235.68.254:49684] PHP Fatal error: Cannot redeclare function
array_first() in /u/roundcube/program/lib/Roundcube/bootstrap.php on
line 308\nStack trace:\n#0 /u/roundcube/index.php(40):require_once()\n#1
{main}, referer: https://emailh.ca/

I reverted to php (8.4.13) ..... issue resolved.
so there is either something in roundcube that isn't compatible with php
8.5.0b3
or php 8.5.0b3 isn't ready for primetime.

In any event, 8.4.13 resolves my roundcube issue.

--
Jim Pazarena fqu...@paz.bz
Haida Gwaii - British Columbia - Canada


Frank Leonhardt

unread,
Nov 25, 2025, 7:52:29 PM (10 days ago) Nov 25
to ques...@freebsd.org
Roundcube 1.6 only goes up to PHP 8.3 AFAIK. If you want 8.4 or later
you should be looking at Roundcube 1.7 (which is in beta). They're quite
good about listing the minimum version that's supported, but not the
maximum but it's implied in the release notes for the newer versions
(i.e. "now supports PHP 8.4").

That's not to say 1.6 won't work with 8.4 - just that they're too busy
testing 1.7 to regression test the older versions.

I'm running most of my roundcube instances with PHP v8.4.10 and Apache
2.4.63 FWIW. No one's complained :-) I just download roundcube from
github and plonk it in a directory, BTW.

Regards, Frank.



Walter Parker

unread,
Nov 25, 2025, 8:22:14 PM (10 days ago) Nov 25
to ques...@freebsd.org
To get Roundcube to work with the newer versions of PHP, you need to make a few changes to the sources. I've done it to my copy of Roundcube.The modifications can be found in one of the Github tracker issues.

--
The greatest dangers to liberty lurk in insidious encroachment by men of zeal, well-meaning but without understanding.   -- Justice Louis D. Brandeis
Reply all
Reply to author
Forward
0 new messages