Tiny-Tiny-RSS-Plugins icon indicating copy to clipboard operation
Tiny-Tiny-RSS-Plugins copied to clipboard

af_golem: DOMDocument::loadHTML(): Empty string supplied as input

Open gumida opened this issue 4 years ago • 0 comments

Hello, I was looking for a workaround for golem.de and came across this project. So I copied af_golem to my plugin folder and activated it. Unfortunately, there seems to be an issue :thinking:

My TTRSS log show a warning entry for each RSS item processed:

plugins.local/af_golem/init.php:137

DOMDocument::loadHTML(): Empty string supplied as input
1. plugins.local/af_golem/init.php(137): loadHTML()
2. plugins.local/af_golem/init.php(178): load_page(https://www.golem.de/news/galaxy-s21-serie-im-test-bei-samsung-ist-fuer-alle-was-dabei-2101-153757-rss.html)
3. classes/rssutils.php(814): hook_article_filter(Array)
4. classes/feeds.php(855): update_rss_feed(169, 1)
5. backend.php(113): update_debugger()

As mentioned in #1 I've added some debug output to your function, to be sure it's actually running:

[09:07:01/4751] guid 1,https://www.golem.de/news/galaxy-s21-serie-im-test-bei-samsung-ist-fuer-alle-was-dabei-2101-153757-rss.html (hash: {"ver":2,"uid":1,"hash":"SHA1:f435308b03e444df345357a4724a71d9b38735b8"} compat: SHA1:dd8e140b03886b6bfd6594ea41e82a011b8832c3)
[09:07:01/4751] orig date: 1611907507
[09:07:01/4751] title Galaxy-S21-Serie im Test: Bei Samsung ist für alle was dabei
[09:07:01/4751] link https://www.golem.de/news/galaxy-s21-serie-im-test-bei-samsung-ist-fuer-alle-was-dabei-2101-153757-rss.html
[09:07:01/4751] language de
[09:07:01/4751] author Tobias Költzsch
[09:07:01/4751] looking for tags...
[09:07:01/4751] tags found: 
[09:07:01/4751] done collecting data.
[09:07:01/4751] looking for enclosures...
[09:07:01/4751] article hash: ca0d87c3ff23b49b412030b8ba02966b2fa931c2 [stored=ca0d87c3ff23b49b412030b8ba02966b2fa931c2]
[09:07:01/4751] hash differs, applying plugin filters:
[09:07:01/4751] ... Af_Comics
[09:07:01/4751] === 0.0000 (sec)
[09:07:01/4751] ... Af_Golem
[09:07:01/4751] Plugin is running
[09:07:01/4751] === 0.1483 (sec)
[09:07:01/4751] ... Af_Heise
[09:07:01/4751] === 0.0000 (sec)
[09:07:01/4751] ... Af_Readability
[09:07:01/4751] === 0.0000 (sec)
[09:07:01/4751] ... Af_RedditImgur
[09:07:01/4751] === 0.0000 (sec)
[09:07:01/4751] ... Af_Unburn
[09:07:01/4751] === 0.0000 (sec)
[09:07:01/4751] ... Feediron
[09:07:01/4751] === 0.0001 (sec)
[09:07:01/4751] ... mercury_fulltext
[09:07:01/4751] === 0.0000 (sec)
[09:07:01/4751] plugin data: af_comics,af_golem,af_heise,af_readability,af_redditimgur,af_unburn,feediron,mercury_fulltext,
[09:07:01/4751] date 1611907507 [2021/01/29 08:05:07]
[09:07:01/4751] num_comments: 0
[09:07:01/4751] force catchup: 
[09:07:01/4751] base guid found, checking for user record
[09:07:01/4751] initial score: 0 [including plugin modifier: 0]
[09:07:01/4751] user record FOUND: RID: 13445, IID: 13445
[09:07:01/4751] resulting RID: 13445, IID: 13445
[09:07:01/4751] article updated, but we're forbidden to mark it unread.
[09:07:01/4751] assigning labels [other]...
[09:07:01/4751] assigning labels [filters]...
[09:07:01/4751] filtered tags: 
[09:07:01/4751] article processed

Am I'm doing something wrong here?

gumida avatar Feb 01 '21 09:02 gumida