Fórum

image gallery liferay theme lay-out problem

gerald hemmers, modificado 14 Anos atrás.

image gallery liferay theme lay-out problem

Junior Member Postagens: 93 Data de Entrada: 13/05/08 Postagens Recentes
Hi There,

the stragest lay-out issue is happening on my liferay test server (centos liferay 5.2.3 tomcat bundle install)

i think the issue happened after changing the max upload image size through the admin interface. But i dindn;t know i any one can reproduce it or saw it before.

the thunbnails are overlapping each other... and this is happening in firefox (latest) ie 7 ie6 chrome (latest)
this bug is also happening in my own theme so it looking like a portlet bug.

If this is a new issue i will create a bug for it in jira

[edit] i recreate on a local test machine running the liferay install on tomcat but a windows xp machine. This bug happens when you place a '0' extra on the image gallery - max file size, through the 'server administration' -> 'file uploads tab' . After changing it back to its original size the error is still there.

Aftet this happens it sames that the ' Maximum Thumbnail Dimensions ' setting is "0" while it was 150 before, when i change it back to 150 and hit save it is set back to '0' again, i think that is the problem. i'm going to look into the databse for the settings.. i will keep you posted.
gerald hemmers, modificado 14 Anos atrás.

RE: image gallery liferay theme lay-out problem

Junior Member Postagens: 93 Data de Entrada: 13/05/08 Postagens Recentes
It is looking like a db setting but i vcan't find out where ... Can someone tell me what tables are changing when i use the file settings through the back-end of liferay 5.2.3

ok liferay is saving its settings i exported both database, the working on ... and found the following difference

the working is:
insert into `portletpreferences`(`portletPreferencesId`,`ownerId`,`ownerType`,`plid`,`portletId`,`preferences`) values (10111,0,1,0,'LIFERAY_PORTAL','<portlet-preferences />'),(10117,10112,1,0,'LIFERAY_PORTAL','<portlet-preferences />'),(10166,0,3,10139,'103','<portlet-preferences />'),(10167,0,3,10139,'47','<portlet-preferences />'),(10168,0,3,10139,'58','<portlet-preferences />'),(10169,0,3,10139,'1_WAR_chatportlet','<portlet-preferences />'),(10170,10115,4,0,'LIFERAY_PORTAL','<portlet-preferences />'),(10179,10144,4,0,'LIFERAY_PORTAL','<portlet-preferences />'),(10180,0,3,10171,'71_INSTANCE_OY0d','<portlet-preferences />'),(10181,0,3,10171,'82','<portlet-preferences />'),(10182,0,3,10171,'23','<portlet-preferences />'),(10183,0,3,10171,'61','<portlet-preferences />'),(10184,0,3,10171,'11','<portlet-preferences />'),(10185,0,3,10171,'29','<portlet-preferences />'),(10186,0,3,10171,'8','<portlet-preferences />'),(10187,0,3,10171,'19','<portlet-preferences xmlns=\"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd\">\n <preference>\n <name>priorities</name>\n <value>Urgent,/message_boards/priority_urgent.png,3.0</value>\n <value>Sticky,/message_boards/priority_sticky.png,2.0</value>\n <value>Announcement,/message_boards/priority_announcement.png,1.0</value>\n </preference>\n <preference>\n <name>ranks</name>\n <value>Youngling=0</value>\n <value>Padawan=25</value>\n <value>Jedi Knight=100</value>\n <value>Jedi Master=250</value>\n <value>Jedi Council Member=500</value>\n <value>Yoda=1000</value>\n <value>Moderator=community-role:Message Boards Administrator</value>\n <value>Moderator=organization:Message Boards Administrator</value>\n <value>Moderator=organization-role:Message Boards Administrator</value>\n <value>Moderator=regular-role:Message Boards Administrator</value>\n <value>Moderator=user-group:Message Boards Administrator</value>\n </preference>\n </portlet-preferences>'),(10188,0,3,10132,'87','<portlet-preferences />'),(10189,0,3,10132,'31','<portlet-preferences />'),(10212,0,3,10171,'88','<portlet-preferences />'),(10217,0,3,10213,'103','<portlet-preferences />'),(10218,0,3,10213,'1_WAR_chatportlet','<portlet-preferences />'),(10219,0,3,10213,'87','<portlet-preferences />'),(10220,0,3,10213,'31','<portlet-preferences />');

the wrong one is:
insert into `portletpreferences`(`portletPreferencesId`,`ownerId`,`ownerType`,`plid`,`portletId`,`preferences`) values (10111,0,1,0,'LIFERAY_PORTAL','<portlet-preferences><preference><name>sc.image.max.size</name><value>307200</value></preference><preference><name>sc.image.thumbnail.max.width</name><value>0</value></preference><preference><name>users.image.max.size</name><value>307200</value></preference><preference><name>sc.image.thumbnail.max.height</name><value>200</value></preference><preference><name>dl.file.max.size</name><value>3072000</value></preference><preference><name>com.liferay.portal.upload.UploadServletRequestImpl.max.size</name><value>104857600</value></preference><preference><name>shopping.image.extensions</name><value></value></preference><preference><name>shopping.image.large.max.size</name><value>307200</value></preference><preference><name>shopping.image.medium.max.size</name><value>0</value></preference><preference><name>ig.image.thumbnail.max.dimension</name><value></value></preference><preference><name>journal.image.extensions</name><value>.gif,.jpeg,.jpg,.png</value></preference><preference><name>shopping.image.small.max.size</name><value>51200</value></preference><preference><name>ig.image.max.size</name><value>20240000</value></preference><preference><name>ig.image.extensions</name><value>.bmp,.gif,.jpeg,.jpg,.png,.tif,.tiff</value></preference><preference><name>dl.file.extensions</name><value>.bmp,.css,.doc,.docx,.dot,.gif,.gz,.htm,.html,.jpg,.js,.lar,.odb,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.ppt,.pptx,.rtf,.swf,.sxc,.sxi,.sxw,.tar,.tiff,.tgz,.txt,.vsd,.xls,.xlsx,.xml,.zip,.jrxml</value></preference><preference><name>journal.image.small.max.size</name><value>51200</value></preference></portlet-preferences>'),(10117,10112,1,0,'LIFERAY_PORTAL','<portlet-preferences />'),(10166,0,3,10139,'103','<portlet-preferences />'),(10167,0,3,10139,'47','<portlet-preferences />'),(10168,0,3,10139,'58','<portlet-preferences />'),(10169,0,3,10139,'1_WAR_chatportlet','<portlet-preferences />'),(10170,10115,4,0,'LIFERAY_PORTAL','<portlet-preferences />'),(10179,10144,4,0,'LIFERAY_PORTAL','<portlet-preferences />'),(10180,0,3,10171,'71_INSTANCE_OY0d','<portlet-preferences />'),(10181,0,3,10171,'82','<portlet-preferences />'),(10182,0,3,10171,'23','<portlet-preferences />'),(10183,0,3,10171,'61','<portlet-preferences />'),(10184,0,3,10171,'11','<portlet-preferences />'),(10185,0,3,10171,'29','<portlet-preferences />'),(10186,0,3,10171,'8','<portlet-preferences />'),(10187,0,3,10171,'19','<portlet-preferences xmlns=\"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd\">\n <preference>\n <name>priorities</name>\n <value>Urgent,/message_boards/priority_urgent.png,3.0</value>\n <value>Sticky,/message_boards/priority_sticky.png,2.0</value>\n <value>Announcement,/message_boards/priority_announcement.png,1.0</value>\n </preference>\n <preference>\n <name>ranks</name>\n <value>Youngling=0</value>\n <value>Padawan=25</value>\n <value>Jedi Knight=100</value>\n <value>Jedi Master=250</value>\n <value>Jedi Council Member=500</value>\n <value>Yoda=1000</value>\n <value>Moderator=community-role:Message Boards Administrator</value>\n <value>Moderator=organization:Message Boards Administrator</value>\n <value>Moderator=organization-role:Message Boards Administrator</value>\n <value>Moderator=regular-role:Message Boards Administrator</value>\n <value>Moderator=user-group:Message Boards Administrator</value>\n </preference>\n </portlet-preferences>'),(10188,0,3,10132,'87','<portlet-preferences />'),(10189,0,3,10132,'31','<portlet-preferences />'),(10212,0,3,10171,'88','<portlet-preferences />'),(10217,0,3,10213,'103','<portlet-preferences />'),(10218,0,3,10213,'1_WAR_chatportlet','<portlet-preferences />'),(10219,0,3,10213,'87','<portlet-preferences />'),(10220,0,3,10213,'31','<portlet-preferences />'),(10221,0,3,10132,'137','<portlet-preferences />');
gerald hemmers, modificado 14 Anos atrás.

RE: image gallery liferay theme lay-out problem

Junior Member Postagens: 93 Data de Entrada: 13/05/08 Postagens Recentes
After replacing the the field with the 'standart option' <portlet-preferences /> the image gallery is fixed again..

I think something is going wrong with writing the settings to the database sames that there are options missing on save.
thumbnail
cometta cometta cometta, modificado 14 Anos atrás.

RE: image gallery liferay theme lay-out problem

Regular Member Postagens: 109 Data de Entrada: 27/04/09 Postagens Recentes
Gerald, u mentioned "After replacing the the field with the 'standart option' <portlet-preferences /> the image gallery is fixed again.. " can you elaborate which file u modified? or you just modify the databse field entry directly?

2. does it only happen to one image or all images?
gerald hemmers, modificado 14 Anos atrás.

RE: image gallery liferay theme lay-out problem

Junior Member Postagens: 93 Data de Entrada: 13/05/08 Postagens Recentes
I made the change directly in the database in de table portletpreferences in the first row.

after the change the lay-out of the image gallery is fixed again. so the problem mentioned in the screenshot is solved. But the bug will happend again after changing the configuration through the interface. So i think not all of the correct settings are written in the database this is a bug http://issues.liferay.com/browse/LPS-3889 grz, gerald
Bala T, modificado 14 Anos atrás.

RE: image gallery liferay theme lay-out problem

New Member Postagens: 2 Data de Entrada: 06/08/09 Postagens Recentes
Thanks for the suggestion. It worked for me too!! (I have installed 5.2.3)

However, I did not delete the first entry.. only removed all the <preferences> that had image settings. I did not delete other preferences like mail settings etc.
MIke Robbins, modificado 14 Anos atrás.

RE: image gallery liferay theme lay-out problem

New Member Mensagem: 1 Data de Entrada: 19/08/09 Postagens Recentes
server.jspf is sending a wrong variable name to EditServerAction.updateFileUploads. igImageThumbnailMaxDimensions should read igThumbnailMaxDimension
thumbnail
Dennis Greiffenberg, modificado 14 Anos atrás.

RE: image gallery liferay theme lay-out problem

Regular Member Postagens: 222 Data de Entrada: 30/04/07 Postagens Recentes
MIke Robbins:
server.jspf is sending a wrong variable name to EditServerAction.updateFileUploads. igImageThumbnailMaxDimensions should read igThumbnailMaxDimension


That fixed the issue!
After updatig the file as described above, the settings max Thumbnail size can be reconfigured using the GUI.

Thanks a lot,
Dennis
Sultee khan, modificado 13 Anos atrás.

RE: image gallery liferay theme lay-out problem

Regular Member Postagens: 145 Data de Entrada: 31/10/09 Postagens Recentes
I tried to update server.jspf as said but it didn't work. Only changing the database entry worked for me
gerard sabine, modificado 13 Anos atrás.

RE: image gallery liferay theme lay-out problem

New Member Postagens: 5 Data de Entrada: 18/05/10 Postagens Recentes
Liferay 5.2.3 : saving changes to the page "Server Administration -> file uploads" does not work for three attributes:
- Maximum Thumbnail Size
- Maximum File Size (Medium Frame)
- Max Thumbnail Width

This is due to a difference between the names of these fields in the jsp (admin/server.jspf) and the variable names in Java class associated (admin/action/EditServerAction)
Rik Maglaya, modificado 12 Anos atrás.

RE: image gallery liferay theme lay-out problem

New Member Postagens: 2 Data de Entrada: 02/03/12 Postagens Recentes
Gerard, were you able to resolve this issue by fixing server.jspf and the EditServerAction.java?
Sultee khan, modificado 13 Anos atrás.

RE: image gallery liferay theme lay-out problem

Regular Member Postagens: 145 Data de Entrada: 31/10/09 Postagens Recentes
Please find the entry in the database
SELECT * FROM PortletPreferences where portletid='liferay_portal' and preferences like '%image%'

there you find entry ig.image.thumbnail.max.dimension to have an empty value. Please set it in
to <name>ig.image.thumbnail.max.dimension</name><value>150</value>

I tried to update the value through portal-ext.properties but it didn't work
Rik Maglaya, modificado 12 Anos atrás.

RE: image gallery liferay theme lay-out problem

New Member Postagens: 2 Data de Entrada: 02/03/12 Postagens Recentes
SZ khan:
Please find the entry in the database
SELECT * FROM PortletPreferences where portletid='liferay_portal' and preferences like '%image%'

there you find entry ig.image.thumbnail.max.dimension to have an empty value. Please set it in
to <name>ig.image.thumbnail.max.dimension</name><value>150</value>

I tried to update the value through portal-ext.properties but it didn't work


Hi SZ, I have zero (0) result. can you post the INSERT statement I will try if it will work (temporarily)... I'm new with this tool - just inherited this tool from someone.

Many thanks!
Peter Ludikar, modificado 11 Anos atrás.

RE: image gallery liferay theme lay-out problem

New Member Postagens: 7 Data de Entrada: 07/07/10 Postagens Recentes
I know this thread is old and has been latent for some time, but in case anyone is interested the solution is actually quite simpleemoticon. The following is relevant to LR 5.2.3

Mike Robbins (August 18, 2009 post, earlier in this thread) put his finger on the issue - "server.jspf is sending a wrong variable name". This can be corrected by creating a hook and uploading it to your site. I've created and attached a war file for your convenience that can be uploaded via the control panel>plugins installation>install more portlets - then upload the war file and press install.

Go to control panel>server administration>file uploads - enter a max dimension of the thumbnails (such as 150) under the image gallery section and press save. That should be it!! If the number you just entered appears in the image gallery section after saving then the patch has worked. If it hasn't, then you may need to restart the web server.

NOTE: image gallery appears to only create thumbnails on 1st upload of the image file - that means the images you already have will have to be refreshed before the patch will work. Unfortunately this will mean having to download all your image gallery files and re-upload them. The easiest way to do that I found was to go via the WEBDAV link found on the image gallery pages. Once the patch has been applied any new images will be correctly laid out in image gallery.

I hope that helps anyone who is looking for a solution in the future (if there are still people like me who are using 5.2.3). Good luck.

Regards
Peter