Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2025 17:21:29 -0800
From:      Walter Parker <walterp@gmail.com>
To:        questions@freebsd.org
Subject:   Re: roundcube failure after pkg update
Message-ID:  <CAMPTd_C1=EO8AjUVJT5dM-j8Qf0F5xbfeh-C9Q=2ujusS=tVmg@mail.gmail.com>
In-Reply-To: <9205a8f0-bfcd-4853-83b9-bfef0b9ca176@fjl.co.uk>
References:  <9f88d596-95f3-4c02-8038-ec67fcf4dd69@paz.bz> <9205a8f0-bfcd-4853-83b9-bfef0b9ca176@fjl.co.uk>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Tue, Nov 25, 2025 at 4:52 PM Frank Leonhardt <freebsd-doc@fjl.co.uk>
wrote:

> On 25/11/2025 19:48, Jim Pazarena wrote:
> > 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.
> >
> 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.
>
>
>
> 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

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Nov 25, 2025 at 4:52 PM Frank Leonhardt &lt;<a href="mailto:freebsd-doc@fjl.co.uk">freebsd-doc@fjl.co.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 25/11/2025 19:48, Jim Pazarena wrote:<br>
&gt; I have been struggling with an error in roundcube since I updated some <br>
&gt; software (via pkg system). I have solved my own issue, and wanted to <br>
&gt; share it here.<br>
&gt;<br>
&gt; FreeBSD (14.3p5), roundcube (1.6.11), php (8.5.0b3)<br>
&gt;<br>
&gt; issue:<br>
&gt; at first launch of roundcube, issue triggered in apache log:<br>
&gt; [Tue Nov 25 09:36:04.095321 2025] [php:error] [pid 12559] [client <br>
&gt; <a href="http://23.235.68.254:49684" rel="noreferrer" target="_blank">23.235.68.254:49684</a>] PHP Fatal error:  Cannot redeclare function <br>
&gt; array_first() in /u/roundcube/program/lib/Roundcube/bootstrap.php on <br>
&gt; line 308\nStack trace:\n#0 <br>
&gt; /u/roundcube/index.php(40):require_once()\n#1 {main}, referer: <br>
&gt; <a href="https://emailh.ca/" rel="noreferrer" target="_blank">https://emailh.ca/</a><br>;
&gt;<br>
&gt; I reverted to php (8.4.13) ..... issue resolved.<br>
&gt; so there is either something in roundcube that isn&#39;t compatible with <br>
&gt; php 8.5.0b3<br>
&gt; or php 8.5.0b3 isn&#39;t ready for primetime.<br>
&gt;<br>
&gt; In any event, 8.4.13 resolves my roundcube issue.<br>
&gt;<br>
Roundcube 1.6 only goes up to PHP 8.3 AFAIK. If you want 8.4 or later <br>
you should be looking at Roundcube 1.7 (which is in beta). They&#39;re quite <br>
good about listing the minimum version that&#39;s supported, but not the <br>
maximum but it&#39;s implied in the release notes for the newer versions <br>
(i.e. &quot;now supports PHP 8.4&quot;).<br>
<br>
That&#39;s not to say 1.6 won&#39;t work with 8.4 - just that they&#39;re too busy <br>
testing 1.7 to regression test the older versions.<br>
<br>
I&#39;m running most of my roundcube instances with PHP v8.4.10 and Apache <br>
2.4.63 FWIW. No one&#39;s complained :-) I just download roundcube from <br>
github and plonk it in a directory, BTW.<br>
<br>
Regards, Frank.<br>
<br>
<br>
<br>
</blockquote></div><div>To get Roundcube to work with the newer versions of PHP, you need to make a few changes to the sources. I&#39;ve done it to my copy of Roundcube.The modifications can be found in one of the Github tracker issues.</div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)">The greatest dangers to liberty lurk in insidious encroachment by men of zeal, well-meaning but without understanding.   -- Justice Louis D. Brandeis</span></div></div>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMPTd_C1=EO8AjUVJT5dM-j8Qf0F5xbfeh-C9Q=2ujusS=tVmg>