langziyang Posted January 13, 2015 Share Posted January 13, 2015 when i upgrade ps 1.6.0.9 to 1.6.0.11,and login addons,then tell me Fatal error: Undefined class constant 'MODE_CONTRIB' in/classes/controller/AdminController.php on line 405 so i disenable this code: // Set context mode /* if (defined('_PS_HOST_MODE_') && _PS_HOST_MODE_) { if (isset($this->context->cookie->is_contributor) && (int)$this->context->cookie->is_contributor === 1) $this->context->mode = Context::MODE_CONTRIB_HOST; else $this->context->mode = Context::MODE_HOST; } elseif (isset($this->context->cookie->is_contributor) && (int)$this->context->cookie->is_contributor === 1) $this->context->mode = Context::MODE_CONTRIB; else $this->context->mode = Context::MODE_STD; */ this is bug? or how can i fix it? Link to comment Share on other sites More sharing options...
langziyang Posted January 16, 2015 Author Share Posted January 16, 2015 hello? 1 Link to comment Share on other sites More sharing options...
fahmi77ak Posted January 19, 2015 Share Posted January 19, 2015 Hi, I was also facing the same problem. Is there anyone can help? Link to comment Share on other sites More sharing options...
Viktory Posted January 22, 2015 Share Posted January 22, 2015 (edited) How to fix Line 396 - 407 // Set context mode if (defined('_PS_HOST_MODE_') && _PS_HOST_MODE_) { if (isset($this->context->cookie->is_contributor) && (int)$this->context->cookie->is_contributor === 1) $this->context->mode = Context::MODE_HOST_CONTRIB; else $this->context->mode = Context::MODE_HOST; } elseif (isset($this->context->cookie->is_contributor) && (int)$this->context->cookie->is_contributor === 1) $this->context->mode = Context::MODE_STD_CONTRIB; else $this->context->mode = Context::MODE_STD; Edited January 22, 2015 by Bestimweb24 (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now