php-telegram-bot / core

PHP Telegram Bot based on the official Telegram Bot API
MIT License
3.87k stars 951 forks source link

MySQL logging works only with no other commands active, but then HTTP/500 #39

Closed danielberlin closed 8 years ago

danielberlin commented 9 years ago

I can only get hook.php running if I take ./vendor/longman/telegram-bot/example-hook.php and uncomment $telegram->enableMySQL($credentials);.

Then all commands sent to the bot are logged in the MySQL table messages while hook.php answers the HTTP request from the Telegram API server with a HTTP/500 and also the error reported in #38 is logged.

If I activate another command, e.g. $telegram->addCommandsPath($COMMANDS_FOLDER);, hook.php answers with a HTTP/200 and no error logged, but nothing is written into the messages table – very strange!

danielberlin commented 8 years ago

Still the same problem with the currently latest version!