4

通过主题文件夹上的 liferay-plugins-sdk-6.1.1,我为我的 liferay 门户 6.1.1 CE-GA2 创建了一个主题。

我的 liferay-plugin-package :

    name=internal_portal
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL
liferay-versions=6.1.1

My liferay-look-and-feel :

    <?xml version="1.0"?>
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.1.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_1_0.dtd">

<look-and-feel>
<compatibility>
<version>6.1.1</version>
</compatibility>
<theme id="internal_portal" name="internal_portal" />
</look-and-feel>

但是在启动我的 liferay 门户之后,在使用我的门户之后,我看不到指定主题 id 的主题。在我的 liferay 门户控制台中返回默认主题。

我该如何解决这个问题?????????

4

5 回答 5

4

尝试在您的 portal-ext.properties 中设置此属性并重新启动您的服务器:

#
# Set the default theme id for regular themes.
#
default.regular.theme.id=internal_portal

但是,我建议从该部分的控制面板中检查主题的正确 ID

插件配置->主题插件

点击你的主题,你会得到这样的东西:

在此处输入图像描述

于 2013-10-01T20:00:34.827 回答
3

Liferay 6.2 上“找不到指定主题 ID 的主题”错误的另一个非常令人困惑的原因是 liferay-look-and-feel.xml 中主题的 ID 是否以“-theme”结尾。这将导致使用 CKEditor 的 portlet 在您尝试编辑其内容时请求错误的主题 ID,例如,如果您尝试编辑 Wiki 条目或 Web Content portlet 的内容。例如,如果 liferay-look-and-feel.xml 中的 id 如下所示:

<theme id="example-theme" name="Example Theme" />

编辑 Web 内容 portlet 将导致 portlet 请求主题 ID example_WAR_exampletheme。但是,数据库中布局和布局集表中引用的主题的实际 ID 是 exampletheme_WAR_exampletheme。由于没有 ID 为 example_WAR_exampletheme 的主题,因此将返回默认主题。这会导致 SASS 编译错误,因为 Compass 在错误的位置查找文件,这将导致 CSS 文件出现 404 错误。因此,如果您在日志中看到“找不到指定主题 ID 的主题”,然后是 SASS 编译错误,并且 CSS 文件出现 404,请确保您的结尾没有“-theme” liferay-look-and-feel.xml 中的 ID。

于 2017-04-13T15:10:17.583 回答
0

Can you check console when the war for your theme is build ? were there any error there ? While your theme is deployed in tomcat check the console there should be some errors / problem that is causing the above error message.

I hope you have gone through Theme Development Overview in below link. So in your theme you would have created _diffs folder having your custom css, images, js, templates.

https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-liferay-them-7

于 2013-10-01T04:36:16.307 回答
0

我对这些错误有类似的问题:

WARN  [http-bio-3000-exec-69][ThemeLocalServiceImpl:156] No theme found for specified theme id My_Theme_WAR_MyThemetheme. Returning the default theme.
Sass::SyntaxError: File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy.
Load paths:
  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common
  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css
  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass
  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets
  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets
  Compass::SpriteImporter
            import at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:67
     imported_file at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:28
       css_import? at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:37
      visit_import at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:217
              send at org/jruby/RubyKernel.java:2097
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100
    visit_children at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53
           collect at org/jruby/RubyArray.java:2318
    visit_children at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53
    visit_children at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:109
  with_environment at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:121
    visit_children at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:108
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37
        visit_root at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:128
              send at org/jruby/RubyKernel.java:2097
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100
              send at org/jruby/RubyKernel.java:2097
             visit at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:7
            render at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/root_node.rb:20
           _render at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/engine.rb:315
            render at file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/engine.rb:262
            (root) at <script>:48
18:16:12,505 ERROR [http-bio-3000-exec-29][DynamicCSSFilter:182] Unable to parse SASS on CSS /css/dockbar_vertical.css
com.liferay.portal.kernel.scripting.ScriptingException: java.util.concurrent.ExecutionException: org.jruby.embed.EvalFailedException: (SyntaxError) File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy._Load paths:  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets  Compass::SpriteImporter [Sanitized]
    at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:254)
    at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:129)
    at com.liferay.portal.servlet.filters.dynamiccss.DynamicCSSUtil._parseSass(DynamicCSSUtil.java:509)
    at com.liferay.portal.servlet.filters.dynamiccss.DynamicCSSUtil.parseSass(DynamicCSSUtil.java:178)
    at com.liferay.portal.servlet.filters.dynamiccss.DynamicCSSFilter.getDynamicContent(DynamicCSSFilter.java:147)
    at com.liferay.portal.servlet.filters.dynamiccss.DynamicCSSFilter.processFilter(DynamicCSSFilter.java:209)
    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:74)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
    at com.sun.proxy.$Proxy611.doFilter(Unknown Source)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
    at com.liferay.portal.servlet.filters.aggregate.AggregateFilter.processFilter(AggregateFilter.java:518)
    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:74)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
    at com.sun.proxy.$Proxy611.doFilter(Unknown Source)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:74)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
    at com.sun.proxy.$Proxy611.doFilter(Unknown Source)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:165)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
    at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:74)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:119)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.ExecutionException: org.jruby.embed.EvalFailedException: (SyntaxError) File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy._Load paths:  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets  Compass::SpriteImporter [Sanitized]
    at java.util.concurrent.FutureTask.report(Unknown Source)
    at java.util.concurrent.FutureTask.get(Unknown Source)
    at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:248)
    ... 68 more
Caused by: org.jruby.embed.EvalFailedException: (SyntaxError) File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy._Load paths:  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets  Compass::SpriteImporter [Sanitized]
    at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:127)
    at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
    at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
    at com.liferay.portal.scripting.ruby.RubyExecutor.doEval(RubyExecutor.java:189)
    at com.liferay.portal.scripting.ruby.RubyExecutor$EvalCallable.call(RubyExecutor.java:332)
    at com.liferay.portal.scripting.ruby.RubyExecutor$EvalCallable.call(RubyExecutor.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    ... 1 more
Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) File to import not found or unreadable: aui/alloy-font-awesome/scss/mixins-alloy._Load paths:  C:/myproject/tomcat-7.0.62/webapps/ROOT/html/css/common  C:/myproject/tomcat-7.0.62/webapps/My_Theme-theme/html/themes/classic/css  C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/sass  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/blueprint/stylesheets  file:C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.12.2/frameworks/compass/stylesheets  Compass::SpriteImporter [Sanitized]
    at Sass::Tree::ImportNode.import(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:67)
    at Sass::Tree::ImportNode.imported_file(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:28)
    at Sass::Tree::ImportNode.css_import?(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/import_node.rb:37)
    at Sass::Tree::Visitors::Perform.visit_import(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:217)
    at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2097)
    at rubyjit.visit_A0E8B1FA377AB9D1DEC5F2DD57734F88312F36B9.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37)
    at Sass::Tree::Visitors::Perform.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100)
    at rubyjit.visit_children_2CE1DD94F811FAA517E73B1DDDD68EFAF663D935.visit_children(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53)
    at org.jruby.RubyArray.collect(org/jruby/RubyArray.java:2318)
    at rubyjit.visit_children_2CE1DD94F811FAA517E73B1DDDD68EFAF663D935.visit_children(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53)
    at Sass::Tree::Visitors::Perform.visit_children(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:109)
    at Sass::Tree::Visitors::Perform.with_environment(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:121)
    at Sass::Tree::Visitors::Perform.visit_children(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:108)
    at rubyjit.visit_A0E8B1FA377AB9D1DEC5F2DD57734F88312F36B9.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37)
    at Sass::Tree::Visitors::Perform.visit_root(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:128)
    at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2097)
    at rubyjit.visit_A0E8B1FA377AB9D1DEC5F2DD57734F88312F36B9.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37)
    at Sass::Tree::Visitors::Perform.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100)
    at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2097)
    at #<Class:0x5a10abe4>.visit(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:7)
    at Sass::Tree::RootNode.render(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/tree/root_node.rb:20)
    at Sass::Engine._render(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/engine.rb:315)
    at Sass::Engine.render(file:/C:/myproject/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.2.12/lib/sass/engine.rb:262)
    at #<Class:0x510084bc>.(root)(<script>:48)    

正如我在上一篇文章中所读到的,更改主题的名称,删除“_”和“-”,解决了这个问题。

于 2018-06-21T13:31:50.253 回答
0

因为更改portal-XXX.properties强制使用主题可能是一种解决方案。首先,使用 UI 检查您的门户配置设置。可能您已经从 Liferay 中删除了一个主题,并且仍然在门户中使用。

检查此配置:

配置 ->门户设置

在横向菜单中,在您的门户中检查Display Settings

在显示设置中,您可以选择Default ThemeDefault Control Panel Theme

检查最后两个选项。也许指向一个不存在的主题。将其更改为Classic

于 2018-02-27T16:07:41.363 回答