While setting up a new SuiteCRM service, I found these PHP notices repeating in my Apache error log:
PHP Notice: Undefined index: custom in /var/www/html/themes/Suite7/css/colourSelector.php on line 95, referer:
PHP Notice: Undefined index: modlink in /var/www/html/themes/Suite7/css/colourSelector.php on line 70, referer:
I’m fairly sure they started because I changed the colors in the Suite7 theme (the color selector is a really neat way to customize the theme), though they probably appear with the standard theme colors too.
The Fix
Add these two lines to /var/www/html/config_override.php:
$sugar_config['colourselector']['modlink'] = 'EEEEEE';
$sugar_config['colourselector']['custom'] = 'EEEEEE';
With both keys defined, the notices stop appearing in the log.
