781 comments found

Hello Sharma,

I am getting the specific error message when trying to validate my website.

HTML5 Validator Error ? Line , column : The character encoding was not declared. Proceeding using windows-1252. Line 17, column 21: A charset attribute on a meta element found after the first 512 bytes. <meta charset=”UTF-8” /> Line 17, column 24: Changing character encoding utf-8 and reparsing. <meta charset=”UTF-8” /> Line 17, column 24: Changing encoding at this point would need non-streamable behavior. <meta charset=”UTF-8” />

I try to search for the specific line of code inside my website but i cannot find it. Can you please help me?

Regards

SaurabhSharma

Hello Stavros,

The cache/minify plugin is adding CSS files above charset declaration. They should be added before closing head tag, or at least after the charset. Kindly check in plugin options if there is any setting to load those files in lower order, or in footer. That will fix the validation error.

Regards

Default-user

Hello Sharma,

This issue is now resolved but now it complains about the stylesheets being outside of header block.

Regards

SaurabhSharma

Hello Stavros,

It seems a known issue with W3 Total minify feature. A solution is mentioned here. The first part is okay about theme’s header.php file. We need to perform the second option of modifying minify.php file. This is not a good solution to modify plugin files directly, but right now this is the only possible workaround for the plugin bug.

If you find any difficulty in editing minify.php, kindly send me a mail at xconsau[at]gmail[dot]com. I will send you the file.

Regards

by
by
by
by
by
by