最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

database - WordPress Theme Migration Local to Live Assets Not Loading

programmeradmin0浏览0评论

I have a fully working custom WordPress theme built off underscores served up locally via MAMP. Normally when migrating to a live server, I move over the wp-content directory and the .sql file, find/replaced with the appropriate live url. Sometimes I have to update permalinks to get everything working properly on the live server. I have followed these steps with my current site and the theme is showing up broken. The theme image doesn't display, and no hosted assets are loading (CDN assets are coming through). I'm getting no PHP errors and the rest of the site works fine, meaning the pages all link up. I've tried this process multiple times with no success, with plugins and with plugins disabled. Default themes are loading fine.

Anyone encountered anything like this before or know what I'm doing wrong?

I have a fully working custom WordPress theme built off underscores served up locally via MAMP. Normally when migrating to a live server, I move over the wp-content directory and the .sql file, find/replaced with the appropriate live url. Sometimes I have to update permalinks to get everything working properly on the live server. I have followed these steps with my current site and the theme is showing up broken. The theme image doesn't display, and no hosted assets are loading (CDN assets are coming through). I'm getting no PHP errors and the rest of the site works fine, meaning the pages all link up. I've tried this process multiple times with no success, with plugins and with plugins disabled. Default themes are loading fine.

Anyone encountered anything like this before or know what I'm doing wrong?

Share Improve this question asked Sep 5, 2014 at 21:29 go_ggo_g 11 bronze badge 6
  • 1 View rendered page source. Verify everything is correct. – Michael Ecklund Commented Sep 5, 2014 at 21:36
  • @MichaelEcklund page source is correct, however theme JS and CSS assets are not loading. – go_g Commented Sep 5, 2014 at 21:58
  • @go_g Did you manually change the upload url path? Is this a multisite install? – Sven Commented Sep 6, 2014 at 0:00
  • @Sven it is a single site install, and the only thing I have changed with respect to uploads is unchecking the 'organize into month & year based folders' option – go_g Commented Sep 6, 2014 at 0:31
  • 1 Solved: this was a folder permissions issue which was fixed with a chmod to 755 – go_g Commented Sep 6, 2014 at 1:12
 |  Show 1 more comment

1 Answer 1

Reset to default 0

Solved: this was a folder permissions issue which was fixed with a chmod to the parent folder containing the affected assets. The appropriate permissions level in this case was 755.

Hardening WordPress

发布评论

评论列表(0)

  1. 暂无评论