![](https://secure.gravatar.com/avatar/4fad748f042c73a9d01d1ff340dbced4.jpg?s=120&d=mm&r=g)
Hi all,
We are using a customized location rewrite function to split the SNMP location of devices into a human readable and a machine understandable format. We are using the community edition, and on updating to the recent version we were faced with thIS error message:
PHP Fatal error: Cannot redeclare custom_rewrite_location() (previously declared in /opt/observium/config.php:87) in /opt/observium/config.php on line 102
This is a common error when a php file is included/required more than once, so I made a workaround by renaming config.php to config.user.php and using require_once() in the original config.php to load these directives (it needs absolute path otherways it cannot find the file).
Shouldn't require_once/include_once be used in all the places where referencing config.php?
Br, Tylla,