Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Paul Preiss
New themes not working on bitnami liferay 6.1.1
18. Dezember 2012 15:33
Antwort

Paul Preiss

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 17. Dezember 2012

Neue Beiträge

I have recently setup a liferay 6.1.1 stack on bitnami. Everything works well except one problem which is the new themes do not work. I can install them from the marketplace and the log says successful but when I create a site with them there are no images or CSS styling. All the pages are created but they are just a long list of bullet points etc. When I try deploying the .lpkg file I get a huge list of errors. Was wondering if anyone else had this or similar problem?
James Falkner
RE: New themes not working on bitnami liferay 6.1.1
18. Dezember 2012 16:55
Antwort

James Falkner

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1216

Eintrittsdatum: 17. September 2010

Neue Beiträge

Paul Preiss:
I have recently setup a liferay 6.1.1 stack on bitnami. Everything works well except one problem which is the new themes do not work. I can install them from the marketplace and the log says successful but when I create a site with them there are no images or CSS styling. All the pages are created but they are just a long list of bullet points etc. When I try deploying the .lpkg file I get a huge list of errors. Was wondering if anyone else had this or similar problem?


I am guessing that this is due to the BitNami distros being relocated (by default) to the /bitnami context (as opposed to /), which causes LPS-29050 and the related LPS-29051.

One workaround is, after deploying the theme, go to Control Panel -> Site Templates. Look for the one named after the theme you installed. Next to it, click on Actions -> View Pages. This will show you the site template that the theme is using when new sites are created. Within the template are individual Web Content Display portlets that are used to populate pages when sites are created. Turn on "Edit Controls" at the top, and click on the little "Pencil" icon at the lower left of each broken web content article. Within there you'll probably find many places where the /bitnami prefix failed to be added due to the above bugs. For example, anything that starts with /documents/... should be fixed to be /bitnami/documents/...

I don't think it's possible to fix everything this way (e.g. the broken CSS links lie in template files somewhere in the theme that cannot, to my knowledge, be edited within the GUI). Of course, if you have command line access (which I think you get with BitNami) you can find the files within the theme that weren't properly relocated, and do it manually. This is tedious though.

The other workaround is to relocate Liferay back to / by removing the portal.ctx=/bitnami from the portal-ext.properties and/or portal-setup-wizard.properties that BitNami creates (and, at the OS level, moving the tomcat-xx.xx.xx/webapps/bitnami directory to be tomcat-xx.xx.xx/webapps/ROOT). Do all of that while the server is not running emoticon Also, I'm not sure if BitNami has stuff in the ROOT context, but if they do, this will destroy it. So buyer beware.