SpecialK
Well-known member
@AndyB - Currently the add-on sends its request with no user agent. Some servers will block these requests and the add-on will never be able to populate the table, and since you're suppressing the $rss->load($url); call, the error will never show up in the error log, which makes debugging very difficult.
I highly suggest that you add
directly above
in XF/Cron/RSSFeed.php
I also think you should un-suppress the $rss->load($url); call so that issues will populate the error log instead of failing silently.
I highly suggest that you add
PHP:
$opts = array(
'http' => array(
'user_agent' => 'PHP libxml agent',
)
);
$context = stream_context_create($opts);
libxml_set_streams_context($context);
directly above
PHP:
$rss = new \DOMDocument('1.0', 'utf-8');
in XF/Cron/RSSFeed.php
I also think you should un-suppress the $rss->load($url); call so that issues will populate the error log instead of failing silently.