麥進鬥Magento2.0模塊錯誤沒有指定安裝版

每一個模塊須要指定 setup_versionphp

setup_version="1.0.0"

更新您的module.xml文件中像下面html

<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="Trimantra_HelloWorld" setup_version="1.0.0">  </module> </config> 

而後清除緩存php bin/magento cache:clean和更新模塊php bin/magento setup:upgrade緩存

致命錯誤:未捕獲的異常'Magento的\框架\異常\ LocalizedException「與消息」沒法建立目錄/var/www/html/magento/magento2.0/var/generation/Magento/Fram ework /應用/ ResourceCo nnection /「。在/var/www/html/magento/magento2.0/vendor/magento/framework/Co德/ Generator.php:103堆棧跟蹤:#0 /var/www/html/magento/magento2.0/vendor/magento /框架/鈷德/發電機/ Autoloa der.php(35):Magento的\框架\代碼\發電機- > generateClass('Magento的\\神父amewo ...')#1 [內部功能]:Magento的\框架\代碼\發電機\ Autoloader->負載('Magento的\\ Framewo ...')#2 [內部功能]框架

相關文章
相關標籤/搜索