Jump to content
eglashcreative

LESS/CSS error has nearly crashed site

Recommended Posts

eglashcreative+    2
eglashcreative

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.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
James B    436
James B

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


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
eglashcreative+    2
eglashcreative

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.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
eglashcreative+    2
eglashcreative

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.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
James B    436
James B

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.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
James B    436
James B

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.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

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


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
eglashcreative+    2
eglashcreative

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


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
eglashcreative+    2
eglashcreative

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.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
Simon    247
Simon

Are you using scrollspy? Have you tried disabling it?

Share this post


Link to post
Share on other sites
eglashcreative+    2
eglashcreative

hi Simon,

 

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


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
Simon    247
Simon

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
eglashcreative+    2
eglashcreative

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.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
Simon    247
Simon

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
eglashcreative+    2
eglashcreative

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.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
Simon    247
Simon

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
James B    436
James B

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.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
eglashcreative+    2
eglashcreative

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.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
Simon    247
Simon

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
eglashcreative+    2
eglashcreative

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.


Joe Eglash

Eglash Creative

Share this post


Link to post
Share on other sites
Simon    247
Simon

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
    • bnapoli
      By bnapoli+
      On my site www.modishmel.com I'm seeing the "blog post title" within the "pins" plugin section breaking words into multiple lines. See screenshot attached.
      Only seeing it in Firefox. Can you help?

    • floydwebb
      By floydwebb+
      I can't get my less?CSS window to open. Any ideas of the probable issue?
       
    • yemoonyah
      By yemoonyah+
      Hi,
      I tried to make a simple change on my opt-in page today by reordering two sections.
      Now they won't save and whatever I do, the same 2 section will be stuck to the top.
      This is a huge problem since it is my opt-in page!
      http://yemoonyah.com/quiz
      (I'm on the latest WP & PL version)
      Thanks.
       
×