Error when generating RSS feed
Describe the bug
When hitting the URL of my podcast’s RSS feed, I would get this error:
Error: Call to undefined function App\Libraries\dom_import_simplexml() in /home/user/mydomain.com/castopod/app/Libraries/SimpleRSSElement.php:53
Stack trace:
#0 /home/user/mydomain.com/castopod/app/Helpers/rss_helper.php(46): App\Libraries\SimpleRSSElement->addChild()
#1 /home/user/mydomain.com/castopod/app/Controllers/FeedController.php(74): get_rss_feed()
#2 /home/user/mydomain.com/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(941): App\Controllers\FeedController->index()
#3 /home/user/mydomain.com/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(502): CodeIgniter\CodeIgniter->runController()
#4 /home/user/mydomain.com/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(361): CodeIgniter\CodeIgniter->handleRequest()
#5 /home/user/mydomain.com/castopod/public/index.php(85): CodeIgniter\CodeIgniter->run()
#6 {main}
I hence looked into the code and found that it seemed the call should be to simplexml_import_dom()
and not to dom_import_simplexml()
which does not seem to exist. I hence replaced this call in this file (which is the only place it appears in the codebase.
So now my RSS feed generates but it almost only contains empty feeds: there is an episode, but the title is empty, the description is empty, etc
Here is the RSS feed: https://podcast.thomask.fr/@montee_de_gradient/feed.xml
Context
- Castopod: 1.11.0
Edited by Thomas K