Download the site frome the server none of the links work and the images have disappeared

Permalink
Hello,

I copied the site to my local machine from the server. I copied into a direcotry under the www directory of my wamp server, and changed the site.php properties as such:
define('BASE_URL', 'http://localhost');
define('DIR_REL', 'my_folder_name');

I restored the database and created the user with the same name and password on the server.

When I visit the site I see the first page's contents but all the formatting (images/css) is missing and any link that I click on is broken. Is there another setting that needs to be modified?


Thanks in advance,

Hesam

 
tallacman replied on at Permalink Reply
tallacman
Did you have pretty urls enabled on the site?
get to the dashboard and run all your maintenance jobs and rebuild the tables.

See if that helps. Sounds like everything else is fine.

steve
hshoghi replied on at Permalink Reply
Thanks for the reply Steve.
The problem is that I cannot log into the dashboard. I am not able to navigate to the login page.

Thank you,
Hesam
hshoghi replied on at Permalink Reply 1 Attachment
This what the home page looks like:
tallacman replied on at Permalink Reply
tallacman
jordanlev replied on at Permalink Reply
jordanlev
You're missing a slash at the beginning of your DIR_REL. Try this:
define('DIR_REL', '/my_folder_name');
hshoghi replied on at Permalink Reply
So I got the links to work by enabling mod_rewrite on Apache. But the cusmtomized CSS and the images still are not working. They work fine on the server but not locally on my machine. When I look at the error logs on Apache the following errors are printed

(20024)The given path is misformatted or contained invalid characters: Cannot map GET /TGS/%3C?=$this-%3EgetThemePath()?%3E/images/bar.png HTTP/1.1 to file, referer:http://localhost/TGS/

Thanks in advance,

Hesam
boomgraphics replied on at Permalink Reply
boomgraphics
Maybe check your header.php and look for the $this->getThemePath() bit and see what it looks like. This error seems to be saying that the > and < characters are malformed or something.
boomgraphics replied on at Permalink Reply
boomgraphics
Hi, I looked around, here is a link to a bug report. Maybe it will help you troubleshoot.

https://issues.apache.org/bugzilla/show_bug.cgi?id=41441...

It seems this is a windows apache bug, but there are some solutions. Perhaps your theme code simply has a windows specific error in it.
boomgraphics replied on at Permalink Reply
boomgraphics
I looked more closely at the escaped characters in your error.

http://www.december.com/html/spec/esccodes.html...

Seems from the error your theme has php short codes in it, which may not be compatible with you wamp install. I would check header.php, and change the <?= to <?php.