RE: RE: [SOLVED] CSS issue after upgrade from 7.3.6-ga7 to 7.4.3.53-ga53

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 17 Join Date: 4/29/21 Recent Posts

Hi,

I encountered CSS issue after upgrade from 7.3.6 to latest 7.4.3.53. I found following error on my catalina.out log.

2022-12-09 05:18:09.053 ERROR [http-nio-9090-exec-6][ComboServlet:374] Skip com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_oayr:/liferay/o/asset-publisher-web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:18:09.054 ERROR [http-nio-9090-exec-6][ComboServlet:374] Skip com_liferay_portal_search_web_search_bar_portlet_SearchBarPortlet_INSTANCE_templateSearch:/liferay/o/portal-search-web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:18:09.055 ERROR [http-nio-9090-exec-6][ComboServlet:374] Skip com_liferay_product_navigation_product_menu_web_portlet_ProductMenuPortlet:/liferay/o/product-navigation-product-menu-web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:18:09.055 ERROR [http-nio-9090-exec-6][ComboServlet:374] Skip com_liferay_product_navigation_user_personal_bar_web_portlet_ProductNavigationUserPersonalBarPortlet:/liferay/o/com.liferay.product.navigation.user.personal.bar.web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:18:09.056 ERROR [http-nio-9090-exec-6][ComboServlet:374] Skip com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet:/liferay/o/site-navigation-menu-web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:25:04.837 ERROR [http-nio-9090-exec-9][ComboServlet:374] Skip com_liferay_contacts_web_portlet_ProfilePortlet_INSTANCE_PdUfk2gR0dC0:/liferay/o/contacts-web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:25:04.838 ERROR [http-nio-9090-exec-9][ComboServlet:374] Skip com_liferay_portal_search_web_search_bar_portlet_SearchBarPortlet_INSTANCE_templateSearch:/liferay/o/portal-search-web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:25:04.839 ERROR [http-nio-9090-exec-9][ComboServlet:374] Skip com_liferay_product_navigation_user_personal_bar_web_portlet_ProductNavigationUserPersonalBarPortlet:/liferay/o/com.liferay.product.navigation.user.personal.bar.web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:25:04.839 ERROR [http-nio-9090-exec-9][ComboServlet:374] Skip com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet:/liferay/o/site-navigation-menu-web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:25:15.715 ERROR [http-nio-9090-exec-1][ComboServlet:374] Skip com_liferay_my_account_web_portlet_MyAccountPortlet:/liferay/o/users-admin-web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:25:15.716 ERROR [http-nio-9090-exec-1][ComboServlet:374] Skip com_liferay_portal_search_web_search_bar_portlet_SearchBarPortlet_INSTANCE_templateSearch:/liferay/o/portal-search-web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:25:15.717 ERROR [http-nio-9090-exec-1][ComboServlet:374] Skip com_liferay_product_navigation_user_personal_bar_web_portlet_ProductNavigationUserPersonalBarPortlet:/liferay/o/com.liferay.product.navigation.user.personal.bar.web/css/main.css because its content type is not CSS or JavaScript
2022-12-09 05:25:15.717 ERROR [http-nio-9090-exec-1][ComboServlet:374] Skip com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet:/liferay/o/site-navigation-menu-web/css/main.css because its content type is not CSS or JavaScript

On the header menu looks incorrect Home hot button display:


 

Where can start to solve this?

Thank you,

[bayu]

 

 

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 17 Join Date: 4/29/21 Recent Posts

It's solved after I add include-and-override=portal-developer.properties on top of portal-ext.properties.

The open and close button is display correctly now. But I still don't know where the real problem is ;-)



Thank you,

thumbnail
Russell Bohl, modified 2 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts

Well I guess it's the CSS properties or something with caching. See the portal-developer.properties for the exact properties you added.

Maybe it's just a browser cache issue? Clear the cache and see if that helps.

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 17 Join Date: 4/29/21 Recent Posts

Hi Russell,

About the CSS properties, I guess as appears on error messages "...because its content type is not CSS or JavaScript" shown, so that caused the css issues. I have cleared the browser cache but the problem is still there. By adding include-and-override=portal-developer.properties on top of portal-ext.properties the problem is solved.

Since I'm new on Liferay and my current focus is only on simple/basic administration, I still have a big unanswered question about portal-developer.properties despite reading several resources/links.

Some of my reading resources:

  • https://liferay.dev/blogs/-/blogs/liferay-developer-mode-optimizing-liferay-for-development
  • https://learn.liferay.com/dxp/latest/en/liferay-internals/reference/portal-developer-properties.html
  • https://liferay.dev/ask/questions/development/liferay-developer-properties-1

I still don't know where the actual location or correct path of the portal-developer.properties is. I found it on /liferay-ce-portal-7.4.3.53-ga53/tomcat-9.0.68/webapps/ROOT/WEB-INF/classes/portal-developer.properties. Is that correct file accessed by Liferay? Should be in the same location as the portal-ext.properties file (application root)?

Secondly, there is a new problem regarding the image on the edit page which does not appear after the page is published. Maybe this is still related to the liferay cache, but I don't have much knowledge about it.