Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Custom Css Not Updating And Css Parse Error


Question

Posted · Report post

Hi,

It's happened AGAIN, Pagelines brings out an update and it buggers something up which I now have to spend hours fixing, I'm honestly sick and tired of this.

I've just updated to 2.3.4 and am now getting the error: parse error: failed at `#respond input[type="text"], .wp-comments .wp-comments-pad > #respond textarea { ` line: 1040

It happened when I simply tried to change one value in one line of css.

The problem is, the custom css will NOT update when I change it. It saves, but when I inspect the webpage it hasn't changed anything.

I'm certainly not a pro programmer or anything, but I can't understand why something that worked PERFECTLY is now giving these problems. -And I simply copied these values from Chrome Inspector where they were working fine as well.

Is there a way to downgrade back to 2.3.3?

**I URGENTLY need to get this fixed as I'm already way behind schedule.

Thanks,

Rob

Site is still under development but here's the url: ultimatemasteringformula.com

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

Hi,

If you receive a Parse Error, this means that you have an error in your custom CSS. LESS CSS, is not as forgiving with errors like the standard CSS. Therefore, please review your custom CSS for any errors such as a missing:

{ } ; :

Once you have resolved your incorrect CSS, save your settings and the Parse error will be resolved.

Also, in future, please add any custom code to our paste service - http://paste.pagelines.com/

I have removed your code so the post is more readable.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for searching before posting, just for you I'll repeat myself for the 3rd time.

All options should be filtered by wp kses before saving into the database but we whitelisted the CSS. Drawback was users could now enter HTML Javascript php in fact anything into the CSS box.. The last week or so we were plagued by users adding script tags into the CSS box and wp-admin would not load. I was getting daily emails asking for a fix so I enable the filter again.

Of course our testers didn't pick up nor did I that kses 'escapes' quotes and that chokes the compiler. So if the custom CSS is just that, CSS, then add it to the customise plugins css file where it belongs.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks, I apologize, I did search and read the other posts but didn't really understand what that meant -or how to fix it.

I've installed the customize plugin and moved all my code to there and now it's working again.

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

Change line 489 of class.render.css.php to this:


$custom = stripslashes( ploption( 'customcss' ) );
[/CODE]

And its fixed.

Share this post


Link to post
Share on other sites