Hi,

There was a small trouble in the scripts that generate the community build,
which caused variable names to get “lost”.

The main CE archive has been updated with the fix.
But any other installation can be fixed by applying a patch that replaces this file:

sudo wget -O /opt/observium/includes/community.inc.php https://www.observium.org/files/community.inc.php.fix

Roland Hill via observium wrote on 09.02.2026 08:55:
Hi team,

Thanks again for releasing another CE version. I run this in my home lab so I always appreciate your updates when you are able to do this.

I followed the steps as provided on your document site (https://docs.observium.org/updating), as I have done previously without issue.

When I ran "/opt/observium/discovery.php -u" I got the following message.

Any guidance when you have time would be a big help please.

======

ops! Something went wrong! You may want to report this to the Observium developers.

syntax error, unexpected token "=", expecting variable in /opt/observium/includes/community.inc.php:5

Stack trace:

#0: (unknown function) called at [/opt/observium/includes/community.inc.php:5]
1: <?php
2:
3: // stub functions for not exist features
4: function cache_groups() { return []; }
5: function get_type_groups( = NULL,  = TRUE) { return []; }
6: function get_groups_by_type( = NULL) { return []; }
7: function get_group_entities(,  = '') { return []; }
8: function get_group_entities_array(,  = '') { return []; }
9:
10: // EOF

#1: require_once called at [/opt/observium/includes/observium.inc.php:73]
68: db_config();
69: $GLOBALS[OBS_DB_LINK] = dbOpen($config['db_host'], $config['db_user'], $config['db_pass'], $config['db_name']);
70: }
71:
72: // Include more necessary supporting files
73: require_once($config['install_dir'] . "/includes/functions.inc.php");
74:
75: if (!isset($GLOBALS[OBS_DB_LINK]) || !$GLOBALS[OBS_DB_LINK]) {
76: if (db_skip()) {
77: print_warning("NOTE: Database connection skipped by request. Database is not connected.");
78: } elseif (isset($options['V'])) {

#2: include called at [/opt/observium/discovery.php:19]
14: chdir(dirname($argv[0]));
15:
16: // Get options before definitions!
17: $options = getopt("h:i:m:n:p:U:dfquaMV");
18:
19: include("includes/observium.inc.php");
20: include("includes/discovery/functions.inc.php");
21:
22: $cli = TRUE;
23:
24: //if (is_cron()) { $options['q'] = TRUE; } // Set quiet for cron

======

Many thanks,


--
Mike Stupalov,
Discord channel: https://discord.gg/GjpNXKWm8W
Observium Limited, https://observium.org

_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to