magento - How do I resolve the PHP Notice: DS Constant already defined? -


when run script cron job, reason runs error, kills off script:

php notice: constant ds defined in /home/mysite/public_html/app/mage.php on line 27 

i know script runs following command:

require_once $root . 'app/mage.php'; 

what's weird works fine every time run script manually (no error or php notice).

would appreciate ideas on how resolve this.

thank you.

to resolve problem ds constant should define following

if (!defined('ds')) {     define('ds', 'my_ds_value'); } 

but not solution of entire problem, should prevent duplicate code inclusion. post full code of script?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -