Fatal error: Uncaught TypeError: Argument 5 passed to Amasty\Preorder\Block\Product\View\Preorder\ProductAbstract::__construct() must be an instance of Magento\CatalogInventory\Model\StockRegistry, array given, called in /home/iglesi10/public_html/palabra2018/var/generation/Amasty/Preorder/Block/Product/View/Preorder/ProductDefault/Interceptor.php on line 14 and defined in /home/iglesi10/public_html/palabra2018/vendor/amasty/preorder/Block/Product/View/Preorder/ProductAbstract.php:31 Stack trace: #0 /home/iglesi10/public_html/palabra2018/var/generation/Amasty/Preorder/Block/Product/View/Preorder/ProductDefault/Interceptor.php(14): Amasty\Preorder\Block\Product\View\Preorder\ProductAbstract->__construct(Object(Magento\Catalog\Block\Product\Context), Object(Magento\Framework\Json\Encoder), Object(Magento\Framework\Stdlib\ArrayUtils), Object(Amasty\Preorder\Helper\Data), Array) #1 /home/iglesi10/public_html/palabra2018/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Amasty\Preorder\Block\Product\View\ in /home/iglesi10/public_html/palabra2018/vendor/amasty/preorder/Block/Product/View/Preorder/ProductAbstract.php on line 31