Jump to content

Dev site broken as CSS and Javascript URLs point to live site, how to rebuild the theme


genrobgen

Recommended Posts

Posted

To set up a dev site I first dumped the live site database, then loaded this dump into the dev database.

Then I rsync'ed the files across from the live server to the dev server.

Finally I adjusted the "base_url" in "global_conf.php" to point to the dev server.

My dev site now kind of works, but all the CSS and Javascript are missing, so I just have white pages with plain text.

My dev server is trying to load the CSS and Javascript from the live server, but Chrome prevents this.

How to fix?

  • Management
Posted

Make sure you're using 4.0.6 or later and then just go to the ACP > System > Support and run the support tool. It'll drop all built theme files and refresh them.

Posted

Thanks very much for the suggestion. Unfortunately that didn't help.

I upgraded to 4.0.6.1, then ran through System > Support as you suggested.

It did a bit of processing, but my site still remains without CSS and Javascript unless I switch on designer's mode.

I did submit a support ticket, but apparently you can't help with dev/test sites, only live.

 

screenshot.png

Posted

I finally fixed my above problem by going to the ACP then Files > Storage Settings > Configurations > Edit and checking all the paths were correct.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...