We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. randomdev
  2. General Discussion
  3. Thursday, 22 August 2013
  4.  Subscribe via email
I cannot compile my less to css as whenever I try I get the error in the topic.

I have recently moved the site from another host and have tested the exact same less files on the old host and they compile fine there (the old host actually has a smaller max_execution time so I do not think this is the problem). I have removed the other themes in the less folder but the error still happens.

Is there some way to get a more helpful error message to find out why it is not compiling on this specific host? (is there anything I need to change when moving hosts?)

When I add ?themer=1 to the site url it looks like it is missing all the less files from the theme.

When I check the error logs this is visible around the time of compilation

[error] [client xxx.xxx.xxx.xxx] Premature end of script headers: php, referer: http://xxxx.com/administrator/index.php?option=com_templates&view=style&layout=edit&id=127
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
I have the same problem. After 4 sec this error message comes up. So what is the final solution?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Further to this I put some debugging into less.inc.php's compile function and it appears it isn't even crashing in the same spot each time:

From 3 runs:
templates/t3_blank/css/template-responsive.css
start
1

templates/t3_blank/css/off-canvas.css
start
1

templates/t3_blank/css/megamenu.css
start
1
2
3
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Adding some testing I have done:

Settings for host which compilation works on:
max_execution_time 30
memory_limit 32M

Settings for host which compilation fails on:
max_execution_time 90
memory_limit 256M

Compilation fails after about 10 seconds so I dont think execution time is the problem.

I put in some debugging code and found out that it is crashing in the CompileCss function in core/less.php . The interesting thing is that it is not always failing on the same file.

e.g. from 3 runs this was the last file before crashing:

templates/t3_blank/less/template-responsive.less
templates/t3_blank/less/megamenu.less
templates/t3_blank/less/off-canvas.less

Why it would fail on different files each time makes me believe it is some kind of resource limit but I have no idea how to test for it or how to correct the problem?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
I have a quick look in phpinfo and allow_url_fopen is On also
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
I am still having problems with this error. Thanks to 'Super User' he has discovered the problem as the following:


I have check on your server. It is related to file permission.

I am not sure about any specific file.
If you turn on the Development Error Reporting, you will see the error.
Even the log file can not be saved (It is the default Joomla function).
Every call to file_put_contents or fopen does not success.
You can try to enable FTP user in Global Configuration to see if they can solve the issue.


I have checked the joomla system information and it shows the log and tmp folders as writable so I am not sure what else I can try, has anyone else had a this problem and managed to solve it?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
I have deleted all other themes, I am not sure if the hosting uses fast-cgi (if they are I cannot see any way to disable it).
Is there some way around this problem if it is timing out? (I am not using any super complex template changes, I dont think 40 seconds passes before the error comes up).
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

Yes, the LESS compile is a heavy process.
Please try to delete all other theme if you are not using, that will increase the performance.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

there is no problem with fastCGI as long a the server is
fast enough to compile the less files within 40 seconds
or if the execution time is long enough.

I encountered this problem too on a few 'cheap' webspaces
of my customers. Poor hardware + 40 secs limit = not able
to compile less.

Best regards

Olli
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Hi randomdev,

Please pm me your site information.

When I add ?themer=1 to the site url it looks like it is missing all the less files from the theme.

It seems you have a problem with LESS syntax or wrong less path.

You can try to check if you are using FastCGI, please disable it if you can.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 9
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.