Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 May 2024 19:20:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 278761] www/tt-rss: update daemon (ttrssd) now fails with php syntax error
Message-ID:  <bug-278761-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278761

            Bug ID: 278761
           Summary: www/tt-rss: update daemon (ttrssd) now fails with php
                    syntax error
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: bob@vesterman.com
                CC: dereks@lifeofadishwasher.com
             Flags: maintainer-feedback?(dereks@lifeofadishwasher.com)
                CC: dereks@lifeofadishwasher.com

Last night I updated www/tt-rss@php83 on FreeBSD-RELEASE-13.2-p11 GENERIC a=
md64
to the latest version (tt-rss-php83-g20240421,2). The main program itself is
working fine, but the update daemon, ttrssd, no longer starts up successful=
ly:

# service ttrssd start
PHP Fatal error:  Cannot redeclare get_pref() (previously declared in
/usr/local/www/tt-rss/include/functions.php:44) in
/usr/local/www/tt-rss/include/functions.php on line 45
/usr/local/etc/rc.d/ttrssd: ERROR: Unknown database configured:

That's the whole thing - there's nothing after the final colon on the last
line. I'll point out that the two filenames are the same, the lines are off=
 by
one, and at a quick glance by my non-PHP-expert eye only one of the two lin=
es
(44) actually declares that function; the other just looks like a line *in*=
 the
function. Maybe it's a "include vs. include-once" kind of thing?

I'd like to mention for the benefit of anyone who may also be facing this i=
ssue
that you can work around it by manually running the update script:

# su -m www -c "/usr/local/bin/php /usr/local/www/tt-rss/update.php --feeds
--quiet"

The tt-rss website has several other suggestions for how to update when you=
're
having problems with the standard way. Seems to be written from a Linuxish
point of view, but:

https://tt-rss.org/wiki/UpdatingFeeds

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278761-7788>