Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8078291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:44:47+00:00 2026-06-05T15:44:47+00:00

In advance, I apologize if the question title may not be be convenient. I’m

  • 0

In advance, I apologize if the question title may not be be convenient. I’m pretty sure that Ubuntu Server 12.04 is not the cause, but I can explain where is the trick…

My website uses Bootstrap with LESS and its client-side compilation (I’m on development cycle so I want to keep it on client). Everything works fine on my local instance (a laptop with Ubuntu 12.04) but style is not generated when requesting the same website from my server instance (running on Ubuntu Server 12.04).

Both runs Apache 2.2.22 with the same mods : alias, auth_basic, authn_file, authz_default, authz_groupfile, authz_host, authz_user, autoindex, cgi, deflate, dir, env, headers, mime, negotiation, php5, reqtimeout, rewrite, setenvif, ssl, status.


What I get from my local instance (Ubuntu 12.04) Works fine !

<!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset="utf-8">
        <title>My website</title>
        <meta content="width=device-width, initial-scale=1.0" name="viewport">
        <meta content="" name="description">
        <meta content="alterphp" name="author">
        <link href="/bundles/mywebsite/css/main.less" type="text/css" rel="stylesheet/less">
        <link href="/bootstrap/less/responsive-768px-979px.less" type="text/css" rel="stylesheet/less">
        <script type="text/javascript" src="/jquery/jquery.js"> ... </script>
        <script type="text/javascript" src="/jquery.form.js"> ... </script>
        <script type="text/javascript" src="/bundles/mywebsite/js/less-1.3.0.min.js"> ... </script>
        <style id="less:bundles-mywebsite-css-main" type="text/css" media="screen"> **Style is well processed** </style>
        <style id="less:error-message" type="text/css" media="screen"> ... </script>
    </head>
    <body>
        ...
    </body>
</html>

With FireBug, I can see that only two main less files appear as downloaded in the Network tab. main.less imports many less files that are all processed in the main.less response.


What I get from my server instance (Ubuntu Server 12.04) Doesn’t work !

<!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset="utf-8">
        <title>My website</title>
        <meta content="width=device-width, initial-scale=1.0" name="viewport">
        <meta content="" name="description">
        <meta content="alterphp" name="author">
        <link href="/bundles/mywebsite/css/main.less" type="text/css" rel="stylesheet/less">
        <link href="/bootstrap/less/responsive-768px-979px.less" type="text/css" rel="stylesheet/less">
        <script type="text/javascript" src="/jquery/jquery.js"> ... </script>
        <script type="text/javascript" src="/jquery.form.js"> ... </script>
        <script type="text/javascript" src="/bundles/mywebsite/js/less-1.3.0.min.js"> ... </script>
        <style id="less:error-message" type="text/css" media="screen"> ... </script>
    </head>
    <body>
        ...
    </body>
</html>

No style is processed from main.less …
With FireBug, I can see that all less files imported from main.less appear as downloaded in the Network tab.

Edit 1 :
I reach my pages, and every resources one-by-one (each LESS files is reachable and complete). I have no error in the Network tab, it’s just that LESS style is not processed on my server instance…


I take any suggestion about this enigma !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:44:49+00:00Added an answer on June 5, 2026 at 3:44 pm

    Forcing less.env to development helped me as i discovered the debug mode of LESS… Even my local instance has a hostname so less.env was always ‘production’ and i never saw any error from LESS.

    My mistake was that I was importing less files with too much subdirectories or relative path. Sorry for this vague explanation but this what I got from this issue on github : https://github.com/cloudhead/less.js/issues/723

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize in advance for the open-ended question. I tried searching, but wasn't sure
I apologize in advance for the long-winded question but I wanted to make sure
I apologize in advance if this question is too specific, but I think that
I apologize in advance for not knowing how to better state this question. In
I apologize in advance if I am asking asking question with impossible answer. But
I apologize in advance because this is somehow a silly question, but I just
I apologize in advance for the rambling nature of this question, but I have
I'm not sure this question has the best of titles but I'm not sure
I apologize in advance if my question is not clear, because I don't know
I apologize in advance for this somewhat ignorant question, but I have researched this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.