Skip to main content
Question

Can not delete/edit/create hosts/services/templates after Patch from 24.10.12 to 25.10.5

  • January 23, 2026
  • 5 replies
  • 41 views

Forum|alt.badge.img+1

Hello everyone,

I tried to update Centreon from version 24.10.12 to 25.10.5 yesterday. The update process worked as expected, but after the update, there were some unexpected issues.

I could not delete hosts and services, could not create new templates, and could not edit existing templates. In some cases, Sometimes when saving it would just throw an empty page. I couldn't find any errors in the log files, and the UI did not throw any exceptions either. 

Cloning services, hosts, and templates works as expected.

I was just wondering if this is a known bug that will be fixed in the next minor update or if this is an edge case.

For testing, I disabled SELinux and removed any security-related, non-Centreon HTTPD configuration.

Thanks in advance!

5 replies

Forum|alt.badge.img+11

I would suspect a symfony cache issue after the upgrade.

Try the steps in this KB Symfony cache causes an issue after performing an upgrade of Centreon | Community


Forum|alt.badge.img+1
  • Author
  • Steward *
  • January 23, 2026

I would suspect a symfony cache issue after the upgrade.

Try the steps in this KB Symfony cache causes an issue after performing an upgrade of Centreon | Community

Hi, thanks for your response, sadly this didn't solve my issue. I reverted back a snapshot to 24.10.12 and patched to the latest minor Version 24.10.17 and then to 25.10.5 and I have the same Problems. I set the logging mode to Debug and enabled all logging Options. Here are errors I found in the logfiles, I don't know if these errors are connected though:

centreon-web.log

[2026-01-23T13:41:20+01:00] ERROR : Error while deleting host by API : Unknown error | {"custom":{"host_id":175},"exception":null,"default":{"request_infos":{"uri":"/centreon/main.get.php?p=60101","http_method":"POST","server":"XXXX.XXX.com"}}}



php-fpm/centreon-error.log
[23-Jan-2026 13:08:29 Europe/Vienna] PHP Fatal error: Declaration of Centreon\Application\Normalizer\IconUrlNormalizer::normalize($icon, $format = null, array $context = []) must be compatible with Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize(mixed $data, ?string $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null in /usr/share/centreon/src/Centreon/Application/Normalizer/IconUrlNormalizer.php on line 40
[23-Jan-2026 13:08:29 Europe/Vienna] PHP Fatal error: Declaration of Centreon\Application\Normalizer\IconUrlNormalizer::normalize($icon, $format = null, array $context = []) must be compatible with Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize(mixed $data, ?string $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null in /usr/share/centreon/src/Centreon/Application/Normalizer/IconUrlNormalizer.php on line 40

The browser does not show anything when trying to delete a host.

 


Forum|alt.badge.img+1
  • Author
  • Steward *
  • January 26, 2026
Error during creation (json encoding). See logs for more detail

[2026-01-26T08:27:04+01:00] ERROR : Error during host/hostTemplate update | {"custom":{"hostId":176,"isTemplate":false,"exception":{"message":"Syntax error","trace":"#0 /usr/share/centreon/www/include/configuration/configObject/host/DB-Func.php(2978): json_decode()\n#1 /usr/share/centreon/www/include/configuration/configObject/host/DB-Func.php(2942): callHostApi()\n#2 /usr/share/centreon/www/include/configuration/configObject/host/DB-Func.php(2844): updateByApi()\n#3 /usr/share/centreon/www/include/configuration/configObject/host/formHost.php(1139): updateHostInAPI()\n#4 /usr/share/centreon/www/include/configuration/configObject/host/host.php(102): require_once('...')\n#5 /usr/share/centreon/www/main.get.php(277): include_once('...')\n#6 {main}"}},"exception":null,"default":{"request_infos":{"uri":"/centreon/main.get.php?p=60101","http_method":"POST","server":"XXXXX"}}}

 


Forum|alt.badge.img+11

Hi, it seems it is calling an api and failed to parse json.

Can you see if you can catch the payload in your browser network tab ? Maybe there is some weird parameter making the internal api fail or something. But that looks like a bug indeed.


Forum|alt.badge.img+1
  • Author
  • Steward *
  • January 26, 2026

Hi, it seems it is calling an api and failed to parse json.

Can you see if you can catch the payload in your browser network tab ? Maybe there is some weird parameter making the internal api fail or something. But that looks like a bug indeed.

Hi, thank you for your answer. Here is the Payload of the POST that gets called after I try to delete a Host and after I try to edit the Host.

 

String Parameters
p
60101

Form Data:
searchH
hostgroup
poller
template
status
o1
d
l
30
p
60101
search
num
0
order
type
sort_types
centreon_token
XXXXX
dupNbr[65]
1
dupNbr[66]
1
dupNbr[121]
1
dupNbr[147]
1
dupNbr[145]
1
dupNbr[146]
1
dupNbr[37]
1
dupNbr[112]
1
dupNbr[83]
1
dupNbr[132]
1
dupNbr[133]
1
dupNbr[134]
1
dupNbr[135]
1
dupNbr[136]
1
dupNbr[115]
1
dupNbr[53]
1
select[176]
1
dupNbr[176]
1
dupNbr[54]
1
dupNbr[55]
1
dupNbr[118]
1
dupNbr[127]
1
dupNbr[128]
1
dupNbr[56]
1
dupNbr[103]
1
dupNbr[104]
1
dupNbr[106]
1
dupNbr[107]
1
dupNbr[105]
1
dupNbr[124]
1
dupNbr[125]
1
o2
l
30
p
60101
search
num
0
order
type
sort_types
centreon_token
XXXXX
o
d
limit
30
centreon_token
XXXXX
[2026-01-26T12:32:48+01:00] ERROR : Error while deleting host by API : Unknown error | {"custom":{"host_id":176},"exception":null,"default":{"request_infos":{"u                                                                ri":"/centreon/main.get.php?p=60101","http_method":"POST","server":"XXXXX"}}}

When trying to edit the same Host:

String Parameter
p
60101

Form Data
host_name=XXXX_1&host_alias=XXXX&host_address=192.168.0.XXX&host_snmp_community=&host_snmp_version=&nagios_server_id=1&host_location=360&tpSelect%5B0%5D=1&clone_order_template_0=0&dupSvTplAssoc%5BdupSvTplAssoc%5D=0&command_command_id=&command_command_id_arg1=&timeperiod_tp_id=&host_max_check_attempts=&host_check_interval=&host_retry_check_interval=&host_active_checks_enabled%5Bhost_active_checks_enabled%5D=2&host_passive_checks_enabled%5Bhost_passive_checks_enabled%5D=2&host_notifications_enabled%5Bhost_notifications_enabled%5D=2&host_notification_interval=&timeperiod_tp_id2=&host_first_notification_delay=&host_recovery_notification_delay=&host_hgs%5B%5D=4&host_acknowledgement_timeout=&host_check_freshness%5Bhost_check_freshness%5D=2&host_freshness_threshold=&host_flap_detection_enabled%5Bhost_flap_detection_enabled%5D=2&host_low_flap_threshold=&host_high_flap_threshold=&host_event_handler_enabled%5Bhost_event_handler_enabled%5D=2&command_command_id2=&command_command_id_arg2=&ehi_notes_url=&ehi_notes=&ehi_action_url=&ehi_icon_image=1&ehi_icon_image_alt=&geo_coords=&criticality_id=&host_activate%5Bhost_activate%5D=0&host_comment=&submitC=Save&macroFrom%5B%23index%23%5D=direct&host_id=176&host_register=1&o=c&initialValues=a%3A0%3A%7B%7D&select=&macChecker=1&centreon_token=XXXXX
[2026-01-26T12:41:45+01:00] ERROR : Error during host/hostTemplate update | {"custom":{"hostId":176,"isTemplate":false,"exception":{"message":"Syntax error","trace":"#0 /usr/share/centreon/www/include/configuration/configObject/host/DB-Func.php(2978): json_decode()\n#1 /usr/share/centreon/www/include/configuration/configObject/host/DB-Func.php(2942): callHostApi()\n#2 /usr/share/centreon/www/include/configuration/configObject/host/DB-Func.php(2844): updateByApi()\n#3 /usr/share/centreon/www/include/configuration/configObject/host/formHost.php(1139): updateHostInAPI()\n#4 /usr/share/centreon/www/include/configuration/configObject/host/host.php(102): require_once('...')\n#5 /usr/share/centreon/www/main.get.php(277): include_once('...')\n#6 {main}"}},"exception":null,"default":{"request_infos":{"uri":"/centreon/main.get.php?p=60101","http_method":"POST","server":"XXXX"}}}

 

Thanks in advance!