CSS errors & unable to save Functions.PHP
Wordpress 4.9 introduced big changes to the Theme Editor. The Editor now looks like this:
- Do not be alarmed by CSS errors. They will not affect your site negatively whatsoever.
- If you want to make a change to the CSS, you can safely check the box "Update anyway" box. Your site will NOT break.
- If you are unable to save the Functions.php, you can edit the file in your File Manager or FTP instead.
Why are there errors in the style.css file?
We have received lots of concerned emails about the CSS "errors" that now display in the Editor, and the scary checkbox that says saving might break your site.
First, making CSS changes will not break your site. You are perfectly safe to make changes to the CSS file. Click the checkbox without fear – your site will not break, we promise.
Second, the CSS errors that are noted will not harm your site. There will be at least 3 errors shown in every one of our themes, due to some keyframe code that always get flagged as an error (but is not). Any errors beyond these will not affect your site negatively, so you don't need to worry about them.
Third, the CSS errors have NO effect on your ability to save other files. It's a common misconception that you need to "correct" the errors before you are able to save other files. This is not true. See the next section regarding editing PHP.
Unable to save Functions.php
The other big change in Wordpress 4.9 is to the PHP files. PHP files are extremely sensitive and, unlike the CSS, can break your site if there is even a single tiny error.
Whenever you save PHP files in 4.9, Wordpress now runs a check on the file to make sure it's not going to break your site. If Wordpress determines the file will break your site OR it is unable to determine the outcome, it won't allow you to save. More often than not it's the latter (unable to determine). Wordpress being unable to determine the outcome is not fault of the theme; it's just that the Wordpress file check process is new, buggy, and errs way on the side of caution.
If you need to make a change to your Functions.php but you are unable to save, there are several workarounds: