Jump to content

Archived

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

netmorerealtor

How to remove CSS/LESS complier error

Recommended Posts

netmorerealtor    0
netmorerealtor

I was playing around a LESS file with the Pageline Customization plugin, the theme then had a complier error message as follows:

 

PageLines Core LESS/CSS error.

parse error: failed at `@import: "normalize.less"` line: 7069

 

I have deleted the plugin, removed the normalize.less file from the directory and reinstalled the theme. The error message still remain there.

 

Please advice how to fix this issue.

 

Thanks.

Share this post


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

Hi there,

 

Look for a button in the admin bar at the top of the page which says 'flush less'. Hit that and it should recompile and clear the error :-)


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
netmorerealtor    0
netmorerealtor

Thanks so much, it is fixed now.

 

I wanted to use preboot.less from http://getpreboot.com/ (same bootstrap creator) as well as the "normalize.less" file as it is recommended in his Github. Here is what I did lead me to the compile error:

 

1. saved both less files in the same directory as the style.less & function.php from Pagelines Customization Plugin.

 

2. In "style.less" file, I added the following two lines.

 

@import: "normalize.less"

@import: "preboot.less"

 

3. then I added some LESS CSS codes in "style.less"

 

4. When I refresh my site, the compile error happened.

 

What did I do wrong?

Share this post


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

Hi there,

 

I'm glad that worked :-)

 

I'm not a developer so I'm not sure on the other two files being used within the customize plugin from what I've read @import rules have to go at the top of the styesheet above the body tag for them to work. I think the plugin won't be able to use those files to be honest, it will have to go into a child theme, like the base theme. There's an example of what LESS the plugin can handle as opposed to the theme here which might help- http://demo.pagelines.me/theming/


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
netmorerealtor    0
netmorerealtor

Thanks for pointing me to this link, I will take a look.

Share this post


Link to post
Share on other sites
reidwalley    1
reidwalley

Hi there,

 

Look for a button in the admin bar at the top of the page which says 'flush less'. Hit that and it should recompile and clear the error :-)

 

I can't find the "Flush LESS" button in the WordPress Admin anywhere at the top of the page.

Share this post


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

From what I can remember, you need to have Debug Mode active.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • GreyFoxWebDesign
      By GreyFoxWebDesign+
      Hi, could you let me know where the custom less/css is saved to - i.e. how I could access it directly via the server.
      I hid the Admin Bar by mistake and now can't save any changes to the Custom CSS as the Save Button is not available - so I need to find another way to access and edit the custom CSS.
      Thanks in advance
    • Audun MB
      By Audun MB+
      How do I get the LESS in a child theme to compile?
    • dymond
      By dymond+
      I've been trying to upload a video to use as a video background, but the size was 12m, and the alotted max file size is 8m. I downloaded a couple of pugins that increase the size by creating php.ini files and all of that jazz, but to no avail. It would say (Max file size = 250mb) but after I uploaded I would get an "HTTP ERROR",
      Soooo I logged into my cpanel and saw that the php I was using was 4 version out of date. I upgraded my php to PHP 5.6 and now I get
      Fatal error: Out of memory (allocated 39583744) (tried to allocate 15 bytes) in /homepages/39/d200014696/htdocs/dymondentertainment.com/wp-content/themes/dms/dms/includes/less.plugin.php on line 848
      When I activiate another theme that is not pagleines, the site works fine.... but will no longer work with Pagelines DMS Version 2.2
       
      My site has no gone dark. What can I do?
    • station16
      By station16
      I installed DMS for a new site and got an error message on install and when I install any plugin.
      Warning: Invalid argument supplied for foreach() in /nfs/c09/h04/mnt/208781/domains/prevailcoffee.co/html/wp-content/themes/dms/dms/includes/less.legacy.php on line 818
      I installed the latest DMS 2.1.9.6
       
      Please advise. I'm now having issues getting any plugins to work. Not sure what to do next.
      thanks,
      -b
    • mnagillum
      By mnagillum+
      I built a simple site without a child theme, using just the Custom Styling Classes and Inline CSS Styling available in PageLines' various sections. I also added a few lines of CSS in the Jetpack Appearance tool--maybe 10 or 12 lines, nowhere near 1040. I am now getting this message:
       
      /* LESS PARSE ERROR in your Custom CSS: parse error: failed at `` line: 1040 */
      Where can I find the Custom CSS and--more importantly--how can I fix it?
      The site is ndpointstrategies.com.
      Thanks in advance.
×