Archived

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

  • 0

LESS/CSS error has nearly crashed site


Question

Posted · Report post

Hi all,

 

I'm panicking a bit here - a client site I'm developing (and almost done with) is throwing an error:

 

 

PageLines Sections LESS/CSS error.

expected color value: failed at `border: 1px solid darken(@baseContrastMore, 10);` line: 96

 

The site is totally messed up. Here's what I've done, using my brain and research on the forums:

 

- Removed all of my custom CSS (using Pagelines Customize). Still broken.

- Updated Pagelines today. It broke some time (hours) after this.

- Refreshed the Store - read that refreshing it might work. I have no Sections installed on this site, by the way. Still broken.

- Checked every "line: 96" I could think of. Can't find anything.

- It seemed to break after I enabled Boxes on one particular Template. I also trashed a ton of unused boxes.

 

All help is greatly appreciated. Should I be using debug mode? Thanks.

Share this post


Link to post
Share on other sites

20 answers to this question

Posted · Report post

Do you have scrollspy active on the page? I've gone through the source code but can't see anything like that in there. The page css seems to be rendering now.

 

Edit: css not back, was looking at the wrong page.

Share this post


Link to post
Share on other sites

Posted · Report post

I've gone through the source code and the css and I can't see what would be causing it. I'll ask one of our developers to take a look and see if they can spot anything.

 

In the meantime, the only error I can see in the html is in the poppy plugin in the footer column, you could try removing that to see if anything adjusts. It says the code isn't closed properly.

Share this post


Link to post
Share on other sites

Posted · Report post

This may not be the cause of the error, but can you take a screenshot of your Color Control settings please.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks Danny and James.

 

Scrollspy is not active, but I found it in the Framework files, so thought I'd mention it.

 

Removing the Poppy shortcode did nothing. Also, the code is right, there's nothing wrong with it, and it was working perfectly, as is, before.

 

Screenshot attached.

 

It's back to the original error, by the way.

 

Thanks again.

post-48942-0-51289800-1368705791_thumb.p

Share this post


Link to post
Share on other sites

Posted · Report post

I have yet to make any progress on this - I'm starting to wonder if a Pagelines reinstall might do the trick.

 

Anyone have insight on doing this? Thanks.

Share this post


Link to post
Share on other sites

Posted · Report post

Are you using scrollspy? Have you tried disabling it?

Share this post


Link to post
Share on other sites

Posted · Report post

hi Simon,

 

I'm not using Scroll Spy - though I have tried removing it (see above posts). Thanks.

Share this post


Link to post
Share on other sites

Posted · Report post

I did read the above posts. 

 

You say you are not using it, but the scrollspy css is still in your compiled css, so it is enabled.

 

Under store/sections/core sections is it active or not?

Share this post


Link to post
Share on other sites

Posted · Report post

hi Simon,

 

It's now deactivated. The live site now reports the error I wrote about before:

 

Warning: array_map() [function.array-map]: An error occurred while invoking the map callback in #/public_html/wp-content/themes/pagelines/includes/less.plugin.php on line 628


 
and the admin now has:

PageLines Sections LESS/CSS error.
expected color value: failed at `#gradient > .vertical(lighten(@baseContrast, 6), @baseContrast);` line: 428

 

thanks.

Share this post


Link to post
Share on other sites

Posted · Report post

Right well that code is in the carousel section.

@baseContrast is a core variable, i dont see how it cant be set??

What plugins do you have installed?

Have you tried uploading a fresh copy just in case?

Share this post


Link to post
Share on other sites

Posted · Report post

So ScrollSpy must be enabled in order for the Carousel to work? I'm not using a Carousel, so no matter.

 

Plugins: 

contactbuddy-by-pluginbuddycom/contactbuddy.php
cookies-for-comments/cookies-for-comments.php
enable-media-replace/enable-media-replace.php
nextgen-gallery/nggallery.php
pagelines-customize/pagelines-customize.php
pagelines-poppy/pagelines-poppy.php
pagelines-sections/pagelines-sections.php
post-types-order/post-types-order.php
sitepress-multilingual-cms/sitepress.php
wordpress-seo/wp-seo.php

No, haven't done a reinstall - I was trying to avoid that. Do you suggest it? James recommended it too, but asked that I first send my login info to PL. I'm beginning to suspect that the only way to fix this is a reinstall. Can you suggest a best method? Thanks.

Share this post


Link to post
Share on other sites

Posted · Report post

No you misread. The same variable that isnt set is also used by carousel. They are not dependant on each other.

 

You do not need to reinstall anything.

 

1. Disable all plugins except pagelines-sections.

 

then goto pagelines options and resave.

 

If problem still persists download a fresh zip from your members area, unzip and upload the files via FTP, overwriting the existing files.

 

Nothing needs to be reinstalled. All settings are stored in the database, unless you have edited any files.

Share this post


Link to post
Share on other sites

Posted · Report post

We've logged into the site, cannot see anything obvious that could be causing this so overwriting the core framework files seems the best option, I didn't want to play around/disable stuff in your live site to test as we didn't know what was set/saved. Your Pagelines settings won't be affected if you upload the core files again as they're saved in database.

Share this post


Link to post
Share on other sites

Posted · Report post

I've now overwritten the core files. Same error. Sigh.

PageLines Sections LESS/CSS error.

expected color value: failed at `#gradient > .vertical(lighten(@baseContrast, 6), @baseContrast);` line: 428

What next, anyone? Thanks.

Share this post


Link to post
Share on other sites

Posted · Report post

Disabled carousel as you were not using it, all good now. Probably a memory issue.

Share this post


Link to post
Share on other sites

Posted · Report post

I take it back! It's working now - Simon, please explain the carousel issue. What happened, how do I avoid it, how can it help others, etc. What kind of memory issue? Thanks for helping.

Share this post


Link to post
Share on other sites

Posted · Report post

I take it back! It's working now - Simon, please explain the carousel issue. What happened, how do I avoid it, how can it help others, etc. What kind of memory issue? Thanks for helping.

As i said it was probably a memory issue and the LESS compile was not completing.

 

I didn't get as far as disabling plugins.

 

Being a shared host with 455 other sites all on the same IP there probably not a lot of ram to go around.

 

Even if the 'max' is set to 256M for your account, 455 x 256 is 113GB of ram, and cheap shared hosts do not put 100 gigs of ram in the server lol.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Joe 

 

So the above code wasn't something you added manually in the css anywhere?

 

Couple of things to try troubleshooting, in the wp admin bar is you see a 'flush less' button, if so hit that.

 

If not go into Pagelines>site options and hit save, that should recompile the css, see if the error still shows. 

 

Are you using a child theme? If so if you switch over to the main Framework does the Less error go away? 

 

Latestly, do you have a link to the site we could take a look at :-)

Share this post


Link to post
Share on other sites

Posted · Report post

hi James - 

 

Thanks for responding. This is really weird.

 

Right, I did not add this line of code.

 

I did the CSS recompile, didn't work.

 

Not using a child theme.

 

I should mention that I'm using WPML, but I don't see what that would do anything.

 

Here's a sample page. You'll see here that it's unformatted HTML. Thanks again.

Share this post


Link to post
Share on other sites

Posted · Report post

I've done a bit of research - and the only place in Pagelines where that line of code that errored out is in ScrollSpy - in the style.less file. So I deactivated it in the Sections/Core Framework area, refreshed a page, and got:

 

Warning: array_map() [function.array-map]: An error occurred while invoking the map callback in #/public_html/wp-content/themes/pagelines/includes/less.plugin.php on line 628


 
Then, I activated ScrollSpy, and the error from before changed to:
PageLines Sections LESS/CSS error. expected color value: failed at `#gradient > .vertical(lighten(@baseContrast, 6), @baseContrast);` line: 428

 

I'm in way over my head here. No clue what's going on. Help! Thanks again.

Share this post


Link to post
Share on other sites