micknewton
Sep-08-2008, 12:39 PM
I was trying to use the W3C CSS validator to check one of my pages (http://micknewton.smugmug.com/gallery/5629811_ktrrX) (http://micknewton.smugmug.com/gallery/5629811_ktrrX%29), and it kept reporting the following error:
Servlet has thrown exception:javax.servlet.ServletException: Timed out
So, I tried it with some of my other pages, and I got the same error with every one that I tried. Even with the control panel page.
I narrowed it down to this piece of CSS code in the SmugMug Gradient theme:
.smugmug_ajax #smugmug, .smugmug_ajax #header, .smugmug_ajax #footer {
margin-left: 15px;
margin-right: 15px;
min-width: 785px;
width: auto;
}
Apparently, the W3C CSS validator chokes on the "< ! [ endif ] - - >" part. I removed the comment wrappers around the _width part and the validator works fine. It still reports 150 errors in the SmugMug CSS, but at least it doesn't throw an exception.
I'm using my own theme, and I based it on the SmugMug Gradient theme. This piece of code was in my theme, unchanged from the gradient theme. As I said, when I took it out the validator started working again. Just to be sure, I switch my site to the SmugMug Gradient theme and tested again. Sure enough, the validator choked again.
Note:
Even the textarea that I'm typing this message into doesn't like the code! When I paste the code in and hit 'Preview Post' it strips out the same parts that the CSS validator chokes on. I tried wrapping it CODE and then HTML tags, but it still wants to strip it out! I think I have it so it will display okay now, but I'm not sure. Bizarre! If it doesn't show up in the thread when I post this message, look for the code in the Gradient theme. The parts it chokes on is the "if IE 6" and "endif" HTML comments around the "_width: expression".
Servlet has thrown exception:javax.servlet.ServletException: Timed out
So, I tried it with some of my other pages, and I got the same error with every one that I tried. Even with the control panel page.
I narrowed it down to this piece of CSS code in the SmugMug Gradient theme:
.smugmug_ajax #smugmug, .smugmug_ajax #header, .smugmug_ajax #footer {
margin-left: 15px;
margin-right: 15px;
min-width: 785px;
width: auto;
}
Apparently, the W3C CSS validator chokes on the "< ! [ endif ] - - >" part. I removed the comment wrappers around the _width part and the validator works fine. It still reports 150 errors in the SmugMug CSS, but at least it doesn't throw an exception.
I'm using my own theme, and I based it on the SmugMug Gradient theme. This piece of code was in my theme, unchanged from the gradient theme. As I said, when I took it out the validator started working again. Just to be sure, I switch my site to the SmugMug Gradient theme and tested again. Sure enough, the validator choked again.
Note:
Even the textarea that I'm typing this message into doesn't like the code! When I paste the code in and hit 'Preview Post' it strips out the same parts that the CSS validator chokes on. I tried wrapping it CODE and then HTML tags, but it still wants to strip it out! I think I have it so it will display okay now, but I'm not sure. Bizarre! If it doesn't show up in the thread when I post this message, look for the code in the Gradient theme. The parts it chokes on is the "if IE 6" and "endif" HTML comments around the "_width: expression".