[ZBX-20200] Telegram mediatype fails in configuration Created: 2021 Nov 10  Updated: 2024 Apr 10  Resolved: 2021 Nov 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: None
Fix Version/s: 6.0.0alpha7, 6.0 (plan)

Type: Problem report Priority: Trivial
Reporter: cromagdk Assignee: Alexander Vladishev
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

debian 11.1
Server version: Apache/2.4.51 (Debian)
Ver 10.5.12-MariaDB-0+deb11u1

root@zabbix:~# dpkg -l |grep zab
ii zabbix-agent 1:6.0.0~alpha6-1+debian10 amd64 Zabbix network monitoring solution - agent
ii zabbix-apache-conf 1:6.0.0~alpha6-1+debian10 all Zabbix network monitoring solution - apache configuration for front-end
ii zabbix-frontend-php 1:6.0.0~alpha6-1+debian10 all Zabbix network monitoring solution - PHP front-end
ii zabbix-release 1:5.5-1+debian10 all Zabbix official repository configuration
ii zabbix-server-mysql 1:6.0.0~alpha6-1+debian10 amd64 Zabbix network monitoring solution - server (MySQL)
ii zabbix-sql-scripts 1:6.0.0~alpha6-1+debian10 all Zabbix network monitoring solution - sql-scripts


Attachments: PNG File zabbix60_telegram.PNG    
Issue Links:
Causes
caused by ZBXNEXT-6885 Implement audit for frontend (Media t... Closed
Team: Team B
Sprint: Sprint 82 (Nov 2021)
Story Points: 0.125

 Description   

Steps to reproduce:

  1. Install zabbix 6.0.0 alpha5 from debian repo (updated to alpha6 now.)
  2. Crate bot in Telegram
  3. Try to update telegram mediatype

Result:
see screenshot

Paste:
Details Cannot update media type

  • Undefined index: mediatype_paramid [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerMediatypeUpdate->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CMediatype->update() → CMediatype::updateParameters() in include/classes/api/services/CMediatype.php:671]
  • Incorrect field "mediatype_paramid" name or value in where statement for table "media_type_param".

Expected:
an updated mediatype and alerts from the bot



 Comments   
Comment by Alexander Vladishev [ 2021 Nov 11 ]

Fixed in:

Generated at Thu Apr 17 13:42:54 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.