Main.CSS has stopped working after moving website from linux to windows server

Permalink
Hello

I'm new to C5 but hopefully somebody out there can shed some light on an issue i'm having.

I have been building this c5 site on a linux server but now when i try moving the site to my clients server who is running Windows with IIS7 i get issues with the CSS not displaying.

My version of the site which is working fine is here:
http://www.insynccreative.co.uk/akhterweb/...

My clients server which isn't working is here:
http://212.106.97.197/akhterweb/...

I have exported the database fine and the client has downloaded via ftp the site structure from my server and uploaded all files to his webspace and imported the database at his end via phpMyAdmin which appears fine as i can login etc to the site without any problems.

However when i view source i can see that <?=$this->getThemePath()?> still remains in all my URLs which would explain why the CSS is broken, but i don't know why this is happening, and how to fix it.

My client has a fresh installation of C5 running here with the default theme:
http://212.106.97.197/concrete5.4.2.2/...

So i know it should work ok on their server, if anybody can suggest any ideas on this issue, it would be greatly appreciated.

Thanks

James

 
foiseworth replied on at Permalink Best Answer Reply
foiseworth
Hi James,

Could be wrong but it looks to me as if the clients server is not setup to support php short tags?

so: <?= or <?

You can see this in your source (the php is being outputted):
<link href="<?=$this->getThemePath()?>/main.css" rel="stylesheet" type="text/css">

so either:

a) enable short tags (add 'short_open_tag=On') to php.ini

b) convert short tags to long tags in your templates

'<?=' == '<?php echo '
xxjames1975xx replied on at Permalink Reply
Thank You foiseworth for your suggestion, i passed your comments regarding php short tags to the client and he has just informed me that after making those changes to the php.ini file everything is now working as it should.

Thanks again for your help.

james