Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Undesired .css search
Hi, I'm still trying to port my theme from 6.2 to 7.0 and there's a new problem: Somewhere my theme is searching for .css instead of real .scss files:
14:43:31,686 WARN [http-nio-8080-exec-4][code_jsp:181] {code="404", msg="ProxyServlet: /o/my-theme/css/main.css", uri=/o/my-theme/css/main.css}
14:43:31,688 WARN [http-nio-8080-exec-7][code_jsp:181] {code="404", msg="ProxyServlet: /o/my-theme/css/aui.css", uri=/o/my-theme/css/aui.css}
I'm unable to find where is Liferay generating this paths to .css extended files. Where is this happening?
14:43:31,686 WARN [http-nio-8080-exec-4][code_jsp:181] {code="404", msg="ProxyServlet: /o/my-theme/css/main.css", uri=/o/my-theme/css/main.css}
14:43:31,688 WARN [http-nio-8080-exec-7][code_jsp:181] {code="404", msg="ProxyServlet: /o/my-theme/css/aui.css", uri=/o/my-theme/css/aui.css}
I'm unable to find where is Liferay generating this paths to .css extended files. Where is this happening?
David H Nebinger, modified 8 Years ago.
RE: Undesired .css search
(Answer)
Liferay Legend
Posts: 14933
Join Date: 9/2/06
Recent Posts
You will never have an SCSS in a theme import. SCSS files need to be transpiled into straight CSS, this occurs during theme build.
Then, why is it failing searching for the css files?
Ra Jo Ga Cha:
Then, why is it failing searching for the css files?
Does your theme contain those files? How are you migrating your theme from 6.2 to 7.0? By deploying the old theme? Did you change something?
First step was upgrading theme by upgrade tool given with the Liferay 7 Eclipse IDE. This wasn't enough so then I updated it again using the import tool of the themes generator. Next steps are "translating" manually vm templates to ftl. The only problematic part that I skipped commenting it, prior to make styles work, are bottom.jsp, body_bottom.jsp, etc references because I didn't find easy to solve it so I just delayed that part, but now I'm doubting if they're the files mandated to make this styles work.
The files are into the .war, .scss extended.
Edit: The errors about the bottom are that they're just "not found". They're called this way.
Avoided this issues creating a new Liferay 7 theme from the ashes (and Liferay 7's classic theme).
The files are into the .war, .scss extended.
Edit: The errors about the bottom are that they're just "not found". They're called this way.
Avoided this issues creating a new Liferay 7 theme from the ashes (and Liferay 7's classic theme).
Hi,
have you tried using gulp to update your theme by executing gulp upgrade?
S.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™