-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
Expected Behavior
Extract tags from article page
Current Behavior
Error
Steps to Reproduce
I finally got around to updating to the latest feediron, and found the following config no longer works.
"rarefilm.net": {
"type": "xpath",
"xpath": "div[@class='entry']",
"tags": {
"type": "xpath",
"replace-tags": true,
"xpath": [
{
"xpath": "p[@class='post-tag']\/a",
"index": "all"
}
],
"join_element": ",",
"split": ","
}
}
Failure Logs
E_ERROR (1)
plugins.local/feediron/filters/fi_mod_xpath/init.php:28
Uncaught TypeError: DOMNodeList::item(): Argument #1 ($index) must be of type int, string given in /var/www/html/tt-rss/plugins.local/feediron/filters/fi_mod_xpath/init.php:28
Stack trace:
#0 /var/www/html/tt-rss/plugins.local/feediron/filters/fi_mod_xpath/init.php(28): DOMNodeList->item()
#1 /var/www/html/tt-rss/plugins.local/feediron/filters/fi_mod_tags_xpath/init.php(20): fi_mod_xpath->perform_filter()
#2 /var/www/html/tt-rss/plugins.local/feediron/init.php(372): fi_mod_tags_xpath->get_tags()
#3 /var/www/html/tt-rss/plugins.local/feediron/init.php(224): Feediron->getArticleTags()
#4 /var/www/html/tt-rss/plugins.local/feediron/init.php(817): Feediron->getNewContent()
#5 /var/www/html/tt-rss/classes/pluginhandler.php(15): Feediron->test()
#6 /var/www/html/tt-rss/backend.php(169): PluginHandler->catchall()
#7 {main}
thrown
Forwarded For: 2001:ac8:31:8900:1012:b051:4a95:c76a
Forwarded Protocol: https
Remote IP: 172.19.0.1
Request URI: /tt-rss/backend.php
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
- Operating System: unraid
- TTRSS version/git version: v23.08-afd04d14
- PHP version: PHP Version 8.2.9
- Feediron Configuration:
see above, unless more is needed