-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
Prerequisites
- I am running the latest version
- I checked the documentation and found no answer
- I checked to make sure that this issue has not already been filed
Expected Behavior
Some of these were fixed in #189, but I encounter some more (and adding pages via the bookmarklet results in empty articles, maybe that is related).
Current Behavior
These warning show up over and over again, see below
Steps to Reproduce
Failure Information (for bugs)
Failure Logs
E_WARNING (2) plugins.local/feediron/init.php:142 Undefined array key "plugin_data"
1. plugins.local/feediron/init.php(142): ttrss_error_handler(Undefined array key "plugin_data", plugins.local/feediron/init.php)
2. plugins.local/feediron/init.php(98): addArticleMarker([{"owner_uid":1,"guid":"1,894ad759-8eba-4eab-a2f1-731ddb8e5799","guid_hashed":"{\"ver\":2,\"uid\":1,\"hash\":\"SHA1:93302c0f9c54d3c8774c6ac30cc1c8fb35fc328b\"}","title":"Marktbericht: US-B\u00f6rsen auf gro\u00dfer Talfahrt","content":"<![CDATA[<p> <a href=..., feediron,1,abd5610dc4d4d5fed6cd01890d881726:)
and
E_WARNING (2) plugins.local/feediron/init.php:142 Undefined array key "owner_id"
1. plugins.local/feediron/init.php(142): ttrss_error_handler(Undefined array key "owner_id", plugins.local/feediron/init.php)
2. plugins.local/feediron/init.php(98): addArticleMarker([{"owner_uid":1,"guid":"1,894ad759-8eba-4eab-a2f1-731ddb8e5799","guid_hashed":"{\"ver\":2,\"uid\":1,\"hash\":\"SHA1:93302c0f9c54d3c8774c6ac30cc1c8fb35fc328b\"}","title":"Marktbericht: US-B\u00f6rsen auf gro\u00dfer Talfahrt","content":"<![CDATA[<p> <a href=..., feediron,1,abd5610dc4d4d5fed6cd01890d881726:)
Context
- Operating System: FreeBSD 14.1
- TTRSS version/git version: 20240421
- PHP version: 8.2
- Feediron Configuration:
feediron pulled just an hour ago, so at 8ac460e
I also had lots of "not an array" errors before and have applied this patch to shut up that warning when not-an-array is passed in:
diff --git a/init.php b/init.php
index b98dc17..53842b8 100644
--- a/init.php
+++ b/init.php
@@ -121,7 +121,7 @@ class Feediron extends Plugin implements IHandler
}
function array_check($array, $key){
- if( array_key_exists($key, $array) && is_array($array[$key]) ){
+ if (is_array($array) && array_key_exists($key, $array) && is_array($array[$key]) ){
return true;
} else {
return false;