Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CS4 - An unexpected error occurred while trying to read style-sheet information

Participant ,
Nov 23, 2017 Nov 23, 2017

Lately in DW4 my CSS file has intermittently been giving me the following error when I try save or open .classes from the CSS Styles panel:

"An unexpected error occurred while trying to read style-sheet information."

Here's the CSS file.

Thanks.

1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2017 Nov 23, 2017

A warning: Duplicate property text-align in

.disclaimer {

     text-align:left;

     font-size:11px;

     text-align:center;

     color: #343735;

}

An error: Color has an invalid value

.quotationattr {

     font-family: Verdana, Geneva, sans-serif;

     font-size: 14px;

     font-style: normal;

     font-weight: normal;

     color: #0;

     border-bottom: 2px solid #ddd;

     margin-top: 0px;

     margin-right: 40px;

     margin-bottom: 30px;

     margin-left: 40px;

     padding-top: 0px;

     padding-right: 40px;

     padding-bottom: 24px;

     padding-left: 40px;

}

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 23, 2017 Nov 23, 2017

I made the changes you pointed out, but it's still "intermittently" not working.

Here's the new file.

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2017 Nov 23, 2017

Can we safely assume that all background-images expressed in your CSS are in the same folder as your CSS file?

I ask because I prefer to organize my site's assets in separate folders for images, css and scripts.  See screenshot.

CC-StarterPageAssets.jpg

Having said that, my path to background-images would be different than yours because my CSS is in one folder and images are in another.

../images/filename.png

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 23, 2017 Nov 23, 2017

I didn't build the website but, yes, it does appear that the background images are in the same folder as the CSS file:

bknd-imgs.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2017 Nov 23, 2017

If  your code validates without errors, see links below:

  - CSS - http://jigsaw.w3.org/css-validator/

  - HTML - http://validator.w3.org/

  - HTML5 - https://validator.w3.org/nu/

then try Restore Preferences.

Restore preferences in Dreamweaver CS4, CS5, and CS5.5

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 23, 2017 Nov 23, 2017

My web guy ran one of those tow validators. I'll have to ask him to run the other one. The problem exists for multiple webpages, FWIW.

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2017 Nov 23, 2017

The problem does not appear to be caused by the code that you have made us privy to. Perhaps the problem lies elsewhere. The best way for us to help you is for you to supply the link to your site.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 23, 2017 Nov 23, 2017

www.argentechinc.com

There are some pages not accessible through the menu which is what I've been working on, so that's where it's been occurring that I've been seeing, but they're in the root directly and it's happening on multiple pages.

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 23, 2017 Nov 23, 2017

Here's one of the hidden pages it's been happening on:

Contributing

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2017 Nov 23, 2017

JayNewWeb  wrote

Here's one of the hidden pages it's been happening on:

Contributing

Have a look at Showing results for http://www.argentechinc.com/contributing.shtml - Nu Html Checker in particular entry #26. I am not saying that this is the definite cause of the problem,it is a matter of elimination.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2017 Nov 23, 2017

JayNewWeb  wrote

Here's one of the hidden pages it's been happening on:

Contributing

This page is not so bad [Invalid] Markup Validation of http://www.argentechinc.com/public/ - W3C Markup Validator

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 23, 2017 Nov 23, 2017

I really appreciate the help. I'm not sure how much examining this file is the way to find the cause, though. I want to please point out that this same issue has been manifesting for another page on this site, also in the root, that used to work fine all along before. That's not a page I want to share publicly here, though.

And the problem cropped up only recently, for what it's worth. It all worked fine through the last time I worked on pages about a month ago or two ago. And I've been using the same style sheet for some time.

The behavior has manifested about equally with either of those two pages in question (I haven't really tried working in other files as yet).

And, oddly enough, as I've said, it's intermittent. Sometimes everything works fine, and sometimes:

- I can't even open the settings when double-clicking on the name of a style in the right-hand CSS Styles column

- I can open or create a style but it won't save (I get that error message)

- I can modify and save a style but then it won't reflect the changes when I look in the CSS file

Then, I try again and it might work fine. And I can't find any kind of pattern to the behavior.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2017 Nov 23, 2017

You are right as far as the errors are concerned, most of them will have no effect on DW. That is why I pointed to the one entry that could cause the problem in DW, namely a non-matching closing paragraph tag.

I have found that DW does not take kindly to coding errors, that is why I asked you to correct that one entry. It is worth a try, after all it is a matter of elimination to get behind the real culprit.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 24, 2017 Nov 24, 2017
LATEST

just a question, you said that you was using CS4, what is your OS and platform ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines