Open semaf opened 4 months ago
Hi @semaf
str_replace('{{title}}', Array, '<a href='https:...')
It looks like non-typical format of RSS feed, can you provide URL? I'll add extra tests for cases like yours.
Btw, you probably not set RSSREADER_SOURCES
env variable https://github.com/EvilFreelancer/rss-to-telegram-bot/blob/main/.env.dist#L8
Command 'php' not found
This mean you've not installed php binary in your host system, or call it incoretcly, on some systems need to use something like php8.2
instead of php
.
PHP Warning: require_once(/root/rss-to-telegram-bot/vendor/autoload.php)
This mean you've not executed composer install
in root of project after installing php
binary.
Thank for you reply.. I am not familiar with php and composer but managed to run it with some issues
root@docker:~/rss-to-telegram-bot$ php -f rss-to-telegram.php
PHP Fatal error: Uncaught Symfony\Component\Dotenv\Exception\FormatException: Missing = in the environment variable declaration in "/rss/rss-to-telegram-bot/.env" at line 10.
...W_CATEGORIES_AS_TAGS: false\n\n# Telegram ...
^ line 10 offset 437 in /rss/rss-to-telegram-bot/vendor/symfony/dotenv/Dotenv.php:546
Stack trace:
#0 /rss/rss-to-telegram-bot/vendor/symfony/dotenv/Dotenv.php(288): Symfony\Component\Dotenv\Dotenv->createFormatException()
#1 /rss/rss-to-telegram-bot/vendor/symfony/dotenv/Dotenv.php(244): Symfony\Component\Dotenv\Dotenv->lexVarname()
#2 /rss/rss-to-telegram-bot/vendor/symfony/dotenv/Dotenv.php(556): Symfony\Component\Dotenv\Dotenv->parse()
#3 /rss/rss-to-telegram-bot/vendor/symfony/dotenv/Dotenv.php(83): Symfony\Component\Dotenv\Dotenv->doLoad()
#4 /rss/rss-to-telegram-bot/rss-to-telegram.php(11): Symfony\Component\Dotenv\Dotenv->load()
#5 {main}
thrown in /home/fatih/rss-to-telegram-bot/vendor/symfony/dotenv/Dotenv.php on line 546
Removing the line RSSREADER_SHOW_CATEGORIES_AS_TAGS
let me run it by php -f rss-to-telegram.php
but with same PHP error like in the previous post.
That here is the RSS Feed https://feeds.feedburner.com/semaf/feed
RSSREADER_SHOW_CATEGORIES_AS_TAGS
variable is not required, but seems by code it was broken in .env.dist
(but i've already fixed it).
Hm, i've didn't see any problem with post rendering, probably you have some issues with your source.
Hey,
I am facing with some issue with the docker container running which end with some error in rss-to-telegram.php file.
Running it with the php command is it like below. Installed php-cli