【发布时间】:2020-02-08 22:59:53
【问题描述】:
我正在使用模板怪物的主题,我已成功从 2.1.7 升级到 2.2.6 我使用通过命令行升级。 技术是 Centos 7 上的 PHP 7.1.3。 我可以很好地进入后端并登录,一切似乎都在工作(仅限后端)。
但是前端只显示一个空白页面 - 我尝试了几种更改权限的方法,包括 chmod -R 777 /var/www/html/magento2 - 我以不同的顺序多次刷新、升级、编译、索引和部署 - 我的日志文件显示了一些警告,我不确定这是导致空白屏幕的原因
这里是
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'sale.reorder.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'wishlist_sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'catalog.sidebarnav' element cannot be added as child to 'div.sidebar.main', because the latter doesn't exist [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'brand.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'yotpo_bottomline' element cannot be added as child to 'product.info.main', because the latter doesn't exist [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'paypal.partner.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'bml.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'catalog.sidebarnav' tries to reorder itself towards '', but their parents are different: 'div.sidebar.main' and '' respectively. [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'brand.sidebar' tries to reorder itself towards 'catalog.compare.sidebar', but their parents are different: 'sidebar.additional' and '' respectively. [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'yotpo_bottomline' tries to reorder itself towards 'product.info.addto', but their parents are different: 'product.info.main' and '' respectively. [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'store_switcher' tries to reorder itself towards 'copyright', but their parents are different: 'footer.grid-container' and 'footer' respectively. [] []
[2020-02-08 22:34:04] main.INFO: Broken reference: the 'header.switchers' tries to reorder itself towards 'sm.header.customer.menu.wrap', but their parents are different: 'header-wrapper.grid-container_inner' and '' respectively. [] []
我最大的问题是我不知道如何记录此问题以便进行调试。我得到的只是一些损坏的引用,这是导致问题的原因吗?
如何解决黑屏问题?
编辑:我升级到 PHP 7.2.27,删除了所有静态文件并将主题更改为空白,再次部署所有内容。 我通过更改此代码编辑了 Validator.php
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
不幸的是,仍然没有运气。
【问题讨论】:
标签: php magento2 magento-2.3