constant already defined in php April 22, 2023 by Tarik Replace this: define('constant', 'value'); with this: if (!defined('constant')) define('constant', 'value');