Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/sbboke.com/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php:409) in /www/wwwroot/sbboke.com/wp-content/themes/pacify/content-single.php on line 5

Magento2安装后,访问前后台页面CSS与JS不加载

magento2 安装完成后 前台和后台的CSS与js不加载,检查发现文件不存在 的情况

解决方案:

1. 在数据库MYSQL中运行SQL:

insert core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0);

2. 在SSH导向CD magento2根目录运行CLI命令

php bin/magento setup:static-content:deploy -f php bin/magento 

indexer:reindex

3. 删除magento2根文件夹下的var目录

rm -rf var/*

相关文章

0 0 投票数
文章评分
订阅评论
提醒
0 评论
内联反馈
查看所有评论