Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dreamweaver CS5 crash when I open certain files

Tags:

dreamweaver

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?

like image 578
horgen Avatar asked Feb 18 '11 15:02

horgen


2 Answers

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.

like image 104
Tony M Avatar answered Nov 05 '22 09:11

Tony M


Dreamweaver CS5 definitely has issues with externally sourced items. I just got the same type of failure when trying to include jquery from googleapi:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>

Removing the line or commenting it out allows Dreamweaver to open and work with the file.

like image 20
Stephen Barker Avatar answered Nov 05 '22 10:11

Stephen Barker