Dreamweaver CS5 crash when I open certain files

horgen picture horgen · Feb 18, 2011 · Viewed 10.5k times · Source

I've been using CS4 for over a year without problems. Today I installed Dreamweaver CS5 and, well... I have not been able to do my work because it keeps crashing. When i try to open certain files (in this case: index.php) it crashes.

I also had a problem with the "upload on save" option untill I unchecked the "Use alternative FTP move method" option in the server settings.

I've tried googling for this problem without luck. Does anyone know a solution for this?

UPDATE:

After testing every line of code in index.php I finally found the source of the problem. If I add this line to the file:

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Reenie+Beanie"> 

Dreamweaver CS5 stops working. Could someone with CS5 installed try it?

Answer

Tony M picture Tony M · Apr 3, 2013

It's definitely the external links that are the issue. The culprit in my case was a font file also being loaded from Google.

Problem:

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Reenie+Beanie">

Commenting or removing this line does work, but the problem is that I need this font to test the website as I'm developing. What I did instead (since I'm using PHP) was echo out the link so that DW can't try to crawl it.

Solution:

<link rel="stylesheet" type="text/css" href="<?php echo "http://fonts.googleapis.com/css?family=Reenie+Beanie"; ?>">

It's pointless code, but it works - DW will stop hanging and the font will still work when testing in a live environment.