pluginsGLPI / telegrambot

Telegram Bot for GLPI
https://pluginsglpi.github.io/telegrambot/
GNU General Public License v3.0
39 stars 32 forks source link

Error when Execute Telegram in "messajelistener" #9

Open isawebs opened 6 years ago

isawebs commented 6 years ago

Hi i´ve got this problem and dont know why, token and user its fine! [url=https://imgur.com/qCBVy2r][img]http://i.imgur.com/qCBVy2r.png[/img][/url]

jeffersantoss commented 6 years ago

I've got the same place but a different error and token and user it's correct as well. https://i.imgur.com/93fdZX2.jpg

isawebs commented 6 years ago

I´ve resolved, in the config place E:\xampp\htdocs\proyect\config\config_db.php putting exactly the passwor as it is and changed the token for another. I hope worked for u too. jeffersantos in yourcase it seems to me you have the token and bot wrong written.

Batumbo commented 6 years ago

Error. SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

glpi\config\config_db.php all right: <?php class DB extends DBmysql {

public $dbhost = '127.0.0.1';

public $dbuser = 'root';

public $dbpassword = 'password';

public $dbdefault = 'db';

} glpi nice work telegrambot - error (up to start post ^_^ )

HairullinRR commented 6 years ago

Problem! Automatic action - messagelistener logs Error. SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES) http://www.picshare.ru/view/8363150/

pablo111111 commented 6 years ago

*** PHP Warning(2): require(/var/www/html/plugins/telegrambot/vendor/autoload.php): failed to open stream: No such file or directory Backtrace : plugins/telegrambot/inc/bot.class.php:29 plugins/telegrambot/inc/bot.class.php:29 require() inc/autoload.function.php:355 include_once() : glpi_autoload() ...t/inc/notificationwebsocketsetting.class.php:53 spl_autoload_call() inc/notificationsetting.class.php:103 PluginTelegrambotNotificationWebsocketSetting->showFormConfig() inc/commonglpi.class.php:482 NotificationSetting::displayTabContentForItem() ajax/common.tabs.php:96 CommonGLPI::displayStandardTab()

xpedroaugustox commented 4 years ago

Hi i´ve got this problem and dont know why, token and user its fine! [url=https://imgur.com/qCBVy2r][img][http://i.imgur.com/qCBVy2r.png[/img][/url]](http://i.imgur.com/qCBVy2r.png%5B/img%5D%5B/url%5D)

Tive o mesmo problema hoje. Como eu resolvi:

  1. Dei permissão a tudo que estava no banco GLPI ao usuário glpi usando o comando: GRANT ALL ON glpi.* TO 'glpi'@'localhost' IDENTIFIED BY 'SENHADOBANCO';
  2. Dei uma conferida no arquivo /var/www/html/glpi/config/config_db.php e vi se a senha estava correta para o banco GLPI, no meu caso tava errada a senha do banco nesse arquivo, minha senha tem um @ no meio e nesse arquivo tinha um %40 no local do @. apaguei o %40 e coloquei o @. Tenham cuidado com caracteres especiais em senhas.
  3. Reiniciei o banco e o apache.
akolomyts commented 4 years ago

Hi i´ve got this problem and dont know why, token and user its fine! [url=https://imgur.com/qCBVy2r][img][http://i.imgur.com/qCBVy2r.png[/img][/url]](http://i.imgur.com/qCBVy2r.png%5B/img%5D%5B/url%5D)

Tive o mesmo problema hoje. Como eu resolvi:

  1. Dei permissão a tudo que estava no banco GLPI ao usuário glpi usando o comando: GRANT ALL ON glpi.* TO 'glpi'@'localhost' IDENTIFIED BY 'SENHADOBANCO';
  2. Dei uma conferida no arquivo /var/www/html/glpi/config/config_db.php e vi se a senha estava correta para o banco GLPI, no meu caso tava errada a senha do banco nesse arquivo, minha senha tem um @ no meio e nesse arquivo tinha um %40 no local do @. apaguei o %40 e coloquei o @. Tenham cuidado com caracteres especiais em senhas.
  3. Reiniciei o banco e o apache.

Thank you. This worked for me. symbol "^" in mysql_user password from install.php converted to "%5E" in /var/www/html/glpi/config/config_db.php