monica - 用户头像显示代码出错 - header.blade.php

现象:新安装monica v2.14.0,用户头像不能正常显示在个人页上。

过程:

1.在浏览器的“开发人员工具”里看到相应的html码块alt缺少了双引号""
monica-header-blade-1.png

2.搜索到相应的源文件,resources/views/people/_header.blade.php
monica-header-blade-2.png

3.在相应的html代码中,添加回双引号""
monica-header-blade-3.png

4.之后在个人页上可正常显示头像了
monica-header-blade-4.png

参考:https://www.w3schools.com/tags/att_img_alt.asp

cPanel - WHM - 为apache2新增模块 - mod_version - Invalid command '<IfVersion'

问题:迁移magento2站点后,访问首页,提示500错误,apache2错误日志里有此类错误信息:.htaccess: Invalid command '<IfVersion', perhaps misspelled or defined by

尝试:WHM -> EasyApache 4 --> Apache Modules ---> 选上 mod_version

cpanel-apache-modules-version.png

参考:https://stackoverflow.com/questions/51743921/magento-ifversion-perhaps-misspelled-or-defined-by-a-module-not-included-in-t

magento - 导入图片 - 图片目录设置 - Images File Directory - pub/media/import

问题:magento2后台,导入商品时,检查有效,但结果失败:Imported resource (image) could not be downloaded from external resource due to timeout or access permissions in row(s): 1, 37

尝试:设置图片目录里,如果图片已经上传到服务器的pub/media/productpics目录里,请填写:pub/media/productpics (不用/打头)。

magento-import-images-directory-1.png

参考:https://magento.stackexchange.com/questions/109066/magento-2-product-import-wont-import-images