no respone from in group chats and Error while sending direct messages to groups
-
Hi!
I have updated to PHP 8.1 because support for 7.4 will be discontinued at the end of the year. Unfortunately, after updating to PHP 8.1, it is no longer possible to send a direct message to the group associated with the bot. Also, the bot no longer responds to requests made from within the group. In direct chat with the bot everything works fine!
The error log shows the following messages:
mod_fcgid: stderr: PHP Fatal error: Uncaught TypeError: str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string in /exaple.com/httpdocs/wp-content/plugins/telegram-bot/telegram-bot.php:164, referer: https://example.com/wp-admin/admin.php?page=telegram_send
After a short consultation with a WebDev friend, the assumption was that there might be a problem with the variable used and that the stricter checking by PHP 8.1 causes an error. Unfortunately, the bot is so under PHP 8.1 in groups no longer usable.
If you have any questions about the error, I’m happy to help!
- The topic ‘no respone from in group chats and Error while sending direct messages to groups’ is closed to new replies.