Jump to content


Photo
- - - - -

LESS/CSS error has nearly crashed site

error less/css sections

  • Please log in to reply
20 replies to this topic

#1 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 15 May 2013 - 10:48 PM

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.



#2 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 15 May 2013 - 10:59 PM

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 :-)



#3 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 16 May 2013 - 12:58 AM

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

Please Login or Register to see this Hidden Content

. You'll see here that it's unformatted HTML. Thanks again.



#4 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 16 May 2013 - 02:00 AM

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() [

Please Login or Register to see this Hidden Content

]: 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.



#5 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 16 May 2013 - 02:05 AM

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.



#6 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 16 May 2013 - 02:12 AM

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.



#7 Danny

Danny

    Is Awesome!

  • Moderators
  • 17636 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 16 May 2013 - 06:56 AM

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



#8 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 16 May 2013 - 12:02 PM

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.

Attached Files



#9 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 16 May 2013 - 07:27 PM

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.



#10 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 16 May 2013 - 07:34 PM

Are you using scrollspy? Have you tried disabling it?



#11 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 16 May 2013 - 07:59 PM

hi Simon,

 

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



#12 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 16 May 2013 - 08:31 PM

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?



#13 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 16 May 2013 - 09:01 PM

hi Simon,

 

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

 

Warning: array_map() [

Please Login or Register to see this Hidden Content

]: 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.



#14 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 16 May 2013 - 09:15 PM

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?

#15 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 16 May 2013 - 09:51 PM

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.



#16 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 16 May 2013 - 09:56 PM

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.



#17 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 16 May 2013 - 11:36 PM

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.



#18 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 17 May 2013 - 02:58 PM

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.

#19 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 17 May 2013 - 03:10 PM

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



#20 eglashcreative

eglashcreative

    Advanced Member

  • Members

  • 77 posts
  • LocationSyracuse, New York, USA
  • Country: Country Flag

Posted 17 May 2013 - 03:11 PM

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.







Also tagged with one or more of these keywords: error, less/css, sections