HTTP 500 error because setup:upgrade doesn't work
-
22-12-2020 - |
Question
I created a class and I can't understand why when I pass a second parameter give a error HTTP 500.
I'm trying to do a simple code, like this:
namespace Ahimsa\FooterLinks\Block;
use \Magento\Framework\View\Element\Template as Template;
class FooterLinks extends Template
{
protected $_storeManager;
protected $categoryRepository;
protected $_categoryHelper;
public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Category $categoryHelper)
{
$this->_categoryHelper = $categoryHelper;
parent::__construct($context);
}
}
Anyone knows what I'm doing wrong?
Solution
I found the error :). I was executing magento commands inside cmd in Php Storm IDE. When I executed in Mac Terminal the command bin/magento setup:upgrade work's fine. Thank's guys.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange