OpenWRT Security Advisories bridge returns "Call to a member function find() on null" error
Describe the bug The OpenWRT Security Advisories bridge only returns errors and a stack trace when my feed reader pulls that ATOM feed. The error response is:
Type: Error
Code: 0
Message: Call to a member function find() on null
File: bridges/OpenwrtSecurityBridge.php
Line: 19
The stack trace is:
#0 index.php(73): RssBridge->main()
#1 lib/RssBridge.php(39): RssBridge->{closure}()
#2 lib/RssBridge.php(37): CacheMiddleware->__invoke()
#3 middlewares/CacheMiddleware.php(44): RssBridge->{closure}()
#4 lib/RssBridge.php(37): ExceptionMiddleware->__invoke()
#5 middlewares/ExceptionMiddleware.php(17): RssBridge->{closure}()
#6 lib/RssBridge.php(37): SecurityMiddleware->__invoke()
#7 middlewares/SecurityMiddleware.php(19): RssBridge->{closure}()
#8 lib/RssBridge.php(37): MaintenanceMiddleware->__invoke()
#9 middlewares/MaintenanceMiddleware.php(10): RssBridge->{closure}()
#10 lib/RssBridge.php(37): BasicAuthMiddleware->__invoke()
#11 middlewares/BasicAuthMiddleware.php(13): RssBridge->{closure}()
#12 lib/RssBridge.php(37): TokenAuthenticationMiddleware->__invoke()
#13 middlewares/TokenAuthenticationMiddleware.php(10): RssBridge->{closure}()
#14 lib/RssBridge.php(34): DisplayAction->__invoke()
#15 actions/DisplayAction.php(54): DisplayAction->createResponse()
#16 actions/DisplayAction.php(89): OpenwrtSecurityBridge->collectData()
#17 bridges/OpenwrtSecurityBridge.php(19)
To Reproduce Steps to reproduce the behavior:
- Go to an up-to-date install of RSS-Bridge.
- Search the install for "openwrt". It should only display the OpenWRT Security Advisories box.
- Click on "Show more."
- Click on "Generate feed."
Expected behavior You should see the latest security advisories for OpenWRT displayed in a fashion appropriate for the option (an HTML page, an XML document, JSON, and so forth).
Screenshots My instance is public, so here are URLs for reproducing the issue first-hand:
- https://feeds.drwho.virtadpt.net/?action=display&bridge=OpenwrtSecurityBridge&format=Html
- https://feeds.drwho.virtadpt.net/?action=display&bridge=OpenwrtSecurityBridge&format=Atom
Additional context Feed reader: Huginn commit 1e0c359a46b1e84eb8c658404212eaf693b30e61.
I get the same errors when I open this particular bridge in Librewolf 1:138.0.4_1-1 (64-bit) running on Arch Linux.
Version of RSS-Bridge: Commit b8064d9dfe210cc20fad303222e104460413071d (updated daily at 0000 hours by a cronjob)
Are other feeds generated by this install working? Yes, I get new entries in my morning e-mail and I just finished reading all of it. This particular feed has worked for me in the past because I use it to keep abreast of things in my network at home.
My hosting provider is running Linux and PHP v8.2.28.
The site is protected by Anubis