随笔分类 -  Magento 2

The website with id 0 that was requested wasn't found
摘要:SET FOREIGN_KEY_CHECKS=0; UPDATE `store` SET store_id = 0 WHERE code='admin'; UPDATE `store_group` SET group_id = 0 WHERE name='Default'; UPDATE `stor 阅读全文

posted @ 2022-03-13 15:21 冯亮 阅读(96) 评论(0) 推荐(0)

magento 2 basic concept
摘要:Web Site is mapped to the store_website table in the database.Store is mapped to the store_group table in the database.Store View is mapped to the sto 阅读全文

posted @ 2021-09-08 22:47 冯亮 阅读(47) 评论(0) 推荐(0)

magento2 定时任务
摘要:* * * * * /usr/bin/php /www/wwwroot/m2.demo.evebit.cn/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /www/wwwroot/m2.demo.evebit.cn/var/log/ 阅读全文

posted @ 2018-03-27 23:10 冯亮 阅读(205) 评论(0) 推荐(0)

Could not create an acl object: Role '16'
摘要:解决方案: (1) 用rm命令一个一个的清除var/cache, var/page_cache, var/di, generated/文件夹下的所有文件 (2) run setup:upgradecommand (3) 修改var、generated下所有文件夹和文件的owner 阅读全文

posted @ 2018-03-22 16:25 冯亮 阅读(177) 评论(0) 推荐(0)

magento 2 cronjob setup
摘要:*/5 * * * * php /var/www/html/bin/magento cron:run >> /var/www/html/var/log/cron.run.log*/5 * * * * php /var/www/html/update/cron.php cron:run >> /var 阅读全文

posted @ 2017-06-02 17:41 冯亮 阅读(407) 评论(0) 推荐(0)

magento2 pub/static没有adminhtml,frontend的解决方案
摘要:(1) 运行php bin/magento setup:static-content:deploy (2) 检查pub/static有没有.htaccess文件 (3) php bin/magento cache:clean (4) chown -R www-data:www-data ./* 阅读全文

posted @ 2017-05-27 10:49 冯亮 阅读(1093) 评论(0) 推荐(0)

Invalid credentials for 'https://repo.magento.com/packages.json'
摘要:Use your public key as username and private key as password from your magento connect account You can find public and private key at: https://www.mage 阅读全文

posted @ 2017-05-25 10:16 冯亮 阅读(952) 评论(0) 推荐(0)

Magento 2 instantiate object by Factory Objects
摘要:magento2的Factory Objects是用来实例化non-injectable classes,目前还不知道什么叫non-injectable classes。 可以用它来实例化Helper、Interface、Model、Resource、Collection。 在代码无误的情况下,如果 阅读全文

posted @ 2017-04-11 23:58 冯亮 阅读(283) 评论(0) 推荐(0)

Magento 2 Factory Objects
摘要:In object oriented programming, a factory method is a method that’s used to instantiate an object. Factory methods exist to ensure system developers h 阅读全文

posted @ 2017-04-11 11:57 冯亮 阅读(575) 评论(0) 推荐(0)

导航