打开某些文件时 Dreamweaver CS5 崩溃

发布于 2024-10-18 05:14:14 字数 479 浏览 3 评论 0原文

我已经使用 CS4 一年多了,没有出现任何问题。今天我安装了 Dreamweaver CS5,但是...我无法完成我的工作,因为它总是崩溃。当我尝试打开某些文件(在本例中:index.php)时,它崩溃了。

我还遇到了“保存时上传”选项的问题,直到我取消选中服务器设置中的“使用替代 FTP 移动方法”选项。

我尝试用谷歌搜索这个问题,但没有运气。有谁知道这个问题的解决方案?

更新:

在测试了index.php中的每一行代码后,我终于找到了问题的根源。如果我将此行添加到文件中:

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

Dreamweaver CS5 将停止工作。有安装过CS5的人可以尝试一下吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

风吹雪碎 2024-10-25 05:14:14

这绝对是外部链接的问题。在我的例子中,罪魁祸首是一个也从谷歌加载的字体文件。

问题:

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

评论或删除这一行确实有效,但问题是我在开发时需要这种字体来测试网站。相反,我所做的(因为我使用的是 PHP)是回显链接,以便 DW 无法尝试抓取它。

解决方案:

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

这是毫无意义的代码,但它有效 - DW 将停止挂起,并且在实时环境中测试时字体仍然有效。

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.

梦过后 2024-10-25 05:14:14

Dreamweaver CS5 肯定存在外部来源项目的问题。当尝试从 googleapi 包含 jquery 时,我刚刚遇到了相同类型的失败:

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

删除该行或将其注释掉可以让 Dreamweaver 打开并使用该文件。

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.

转角预定愛 2024-10-25 05:14:14

文件大小正好达到 8KB 左右时会出现问题,然后 Dreamweaver 就会崩溃,直到您使用不同的文本编辑器在文件中添加或删除字符为止。我曾多次遇到过手动编码和保存文件的情况。

您还可以尝试将该字体另存为 reenie-beanie.css 到站点本地,这样您会得到类似以下内容:

<link rel="stylesheet" type="text/css" href="media/styles/reenieBeanie.css" />

当 DW 在预览或分屏模式下实时访问该文件时,防火墙或其他东西可能会吓到它。

There was a problem with files reaching exactly a file size around 8KB and then Dreamweaver would crash until you went in and adding or removing a character from the file using a different text editor. It happened to me a few times hand coding and saving files.

You may also try saving that font as reenie-beanie.css locally to the site so you get something like:

<link rel="stylesheet" type="text/css" href="media/styles/reenieBeanie.css" />

It's possible that a firewall or something is scaring DW when it reaches out for that file live in the preview or split screen mode.

烟酒忠诚 2024-10-25 05:14:14

太好了,这篇文章帮助我解决了 Dreamweaver CS5 中特定文件崩溃的问题。
确实是外部字体导致DW崩溃。

我找到了一个简单的修复方法,省略协议部分并且它可以工作:

<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">

并且

<link href="http//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">

Great, this post helped me solve my problems of crashed on a specific file in Dreamweaver CS5.
It's indeed the external font that crashes DW.

I found an easy fix, omit the protocol part and it works:

<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">

and NOT

<link href="http//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
橘和柠 2024-10-25 05:14:14

在本地 CSS 文件中为我修复:我必须右键单击每个文件并尝试“使用 Dreamweaver 进行编辑”,直到找到真正导致启动时崩溃的文件。我在索引和特定的 css 文件(本地)上崩溃了。

我正在使用 Bootstrap 3。在运行 wamp 的笔记本电脑上运行良好,但在使用 IIS7 的主 PC 上运行不佳。我尝试了所有其他注册表清理和缓存清理技术,但直到我从本地 css 文件中删除了这段代码才成功。

希望它对其他人有帮助。

我删除了 css 文件的这一部分:

@media (min-width: @screen-sm-min) { 
    .featured-box{
        margin-top:5px;
    }
}

FIX FOR ME IN LOCAL CSS FILE: I had to right click on each file and try to "Edit with Dreamweaver" until I found the one that really was behind the crashing on start up. I got the crash on index and a specifc css file (local).

I;m using Bootstrap 3. Works fine on my laptop running wamp, but not on my main PC using IIS7. I tried all the other registry cleaning and cache cleaning techniques, but no go until I removed this one piece of code from the local css file.

Hope it helps someone else.

This I removed this section of a css file:

@media (min-width: @screen-sm-min) { 
    .featured-box{
        margin-top:5px;
    }
}
绅刃 2024-10-25 05:14:14

我很久以前就知道这一点,但它可能对其他人有帮助。这解决了我的计算机的 Dreamweaver CS6 和引导文件崩溃问题。每次链接到引导程序文件时,Dreamweaver 都会崩溃。我将计算机更改为较低的屏幕分辨率,例如 1280x768。我重新启动了 Dreamweaver,bootstrap 不再使我的 Dreamweaver 崩溃。奇怪的是,当我在我丈夫的 17 英寸 LG Gram 笔记本电脑上尝试此方法时,此解决方案不起作用。我不确定正确的组合是什么(分辨率、硬件等),以使其在一台计算机上工作,而不是在一台计算机上工作其他。

I know this from a long time ago but it maybe helpful for others. This is what solved the crashing problem with Dreamweaver CS6 and bootstrap files for my computer. Dreamweaver crashes every time I linked to a bootstrap file. I changed my computer to have a lower screen resolution, for example to 1280x768. I restarted Dreamweaver and bootstrap doesn't crash my Dreamweaver anymore. The strange thing is when I tried this on my husband's 17" LG Gram laptop, this solution doesn't work. I'm not sure what the right combination is (resolution, hardware etc.), to make it work on one computer vs another.

梦幻的味道 2024-10-25 05:14:14

首先,我将注释标记放在 jQuery 链接周围,以查看它是否如上面所建议的那样,不,事实并非如此。

当我在 CSS 中启动媒体查询后,问题就开始了。我把它分成了碎片[我还没有完成]

这是带有注释标签的片段,可以将其禁用。

    /*
@media screen and (max-width:
*/

html 的注释标签与 css 的注释标签不同,它们看起来像这样:

对于 css 使用: /* [line of CSS 代码] */

使用注释标签来禁用可疑代码比仅仅删除内容更方便。

希望对某人有帮助/
-mack318

First I put the comment tag around the jQuery link to see that it was as suggested above and no it was not.

The problem started after I started the media query in the CSS. I left it fragmented [I had not finished]

Here is the fragment with comment tags around it to disable it.

    /*
@media screen and (max-width:
*/

The comment tags for html are different than the css ones they look like this: <!-- [line of html code] -->

For css use: /* [line of CSS code] */

Using the comment tags to disable suspect code is more handy than just deleting things.

Hope that helps somone/
-mack318

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文