Jump to content
eglashcreative

LESS/CSS error has nearly crashed site

Recommended Posts

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

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

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

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

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

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

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

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

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

Are you using scrollspy? Have you tried disabling it?

Share this post


Link to post
Share on other sites
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

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

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

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

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

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

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

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

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

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

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

    • yemoonyah
      By yemoonyah+
      Hi, even though I just got a SSL certificate, I can't get the green padlock to appear due to the following error:
      :A file with an insecure url of "http://yemoonyah.com/wp-content/plugins/pl-section-boxes/check.svg" was loaded via the javascript file: https://yemoonyah.com/wp-includes/js/jquery/jquery.js?ver=1.12.4 on line 3. The insecure URL may not be directly contained in the script file and may exist elsewhere."
      I figured if I delete and re-install the plugin it might fix the problem but will my boxes on the website still be there? Or do I have to redesign everything all over again if I delete the plugin and then re-install it?
    • romanondrasek
      By romanondrasek+
      Hi, I just found that my site is not working - nothing to see what I have activated PL5 tap late (just white screen :-() , I can open just admin site . I tried to activate different template (tventy seventeen) and was working , but not with PL5. 
      could you pls let me know what is the problem ASAP 
       
      the site is : www.myfit.cz
      than you so much
       
    • Steve Webb
      By Steve Webb+
      I have a staging site up that I have been working on, and tonight was having PL5 account connection issues:
       
       
      I refreshed, didn't work, so I followed instructions and disconnected and clicked connect to get a new token, and got white screen with the following php error:
      Can someone tell me what I'm doing wrong?  
      https://staging2.imetropol.com/
    • tomtwigg
      By tomtwigg+
      There are some Impulse qualities (title, subtitle, alignment, overlay opacity) that I would like to modify, but when I view source I see that unlike other feature sliders that I've used with PageLines, Impulse seemed to be completely executed via script. Usually I would identify the div class or ID and change via LESS/CSS, but I've not a clue as to how to do it with Impulse. Any help is greatly appreciated.
      -Tom
    • cstudio
      By cstudio
      Hello,
      I need some help!  I am trying to add a Square booking script.  When I add it to a embed section it crashes the page editor and I am unable to save the page version.  I have tried using different browsers with the same result.
       I can add the script on the backend in the word press content area and get it to show and work, but it look terrible.  A page with in a page.  http://www.zoeanastacia.com/booking/.
      I need help getting the page editor to work properly or to make the wp content section to not look like an 90's iframe.
      Thanks
×