Forum

Accueil » Liferay Social Office

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Jonathon Lachlan-Hache
Social Office hook not loading?
2 avril 2013 20:34
Réponse

Jonathon Lachlan-Hache

Rang: New Member

Publications: 7

Date d'inscription: 21 mars 2013

Publications Récentes

I'm doing a fresh install of Liferay 6.1 with Social Office. When I try to install SO, however, I can only get to the point where I have my Dashboard, topbar, and other SO elements, but I can't view or edit the site template, and I can't add a new site with the SO template.
Jonathon Lachlan-Hache
RE: Social Office hook not loading?
2 avril 2013 20:50
Réponse

Jonathon Lachlan-Hache

Rang: New Member

Publications: 7

Date d'inscription: 21 mars 2013

Publications Récentes

As a further explanation, attached is the dialog box for creating a new SO site. You'll see that the options for the different kinds of pages are missing. I also can't view the Pages for the Default Social Office Site template.

Any help would be greatly appreciated, I'm really excited to get Liferay and SO working on my server.

Regards,
Jon
Attachement

Pièces jointes: SO Problem.png (15,8k)
Mandy Lee
RE: Social Office hook not loading?
3 avril 2013 09:38
Réponse

Mandy Lee

LIFERAY STAFF

Rang: New Member

Publications: 12

Date d'inscription: 22 juin 2010

Publications Récentes

Hi Jon,

Can you walk me through how you installed SO? Also, can you tell me whether there were any console errors and what app server and database you are using? Thanks!

- Mandy
Jonathon Lachlan-Hache
RE: Social Office hook not loading?
3 avril 2013 09:54
Réponse

Jonathon Lachlan-Hache

Rang: New Member

Publications: 7

Date d'inscription: 21 mars 2013

Publications Récentes

Thanks for the prompt response. This is using the most recent Tomcat bundle, connecting to MySQL. It's a LAMP server with cPanel, so my configuration is heavily automated (i.e. I let the scripts to the work, I didn't set it up myself).

To install SO, I used the marketplace. I downloaded and installed and the let it sit and think for a while. Then I assigned myself the Social Office User role and tested the Dashboard. Then I restarted Tomcat to make sure the hook had fully engaged.

This problem seems to always occur when I deploy Liferay in my jakarta folder, but there are no problems when I use the bundle only. I wonder if I didn't move something from the bundle that I should have -- for example, I didn't create a data or deploy folder that's one folder above Tomcat. Would this cause an issue? I'll try to reinstall.

Unfortunately I can't access my VNC from this computer, so I will have to get back to you about the specific errors. When I reviewed catalina.out last night it said so-hook and so theme had deployed without trouble. The only error I found was with a Java package not being installed, "which might result in reduced functionality". However, I would assume that this is not the source of this specific problem since I had successfully deployed SO on this server before (in a "clean" bundle).

I'll try to reinstall once again (for the 10th time as I figure out how to make my configuration work), but I was hoping that this problem might have been seen before and therefore had a specific solution.

Thanks again,
Jon
Jonathon Lachlan-Hache
RE: Social Office hook not loading?
3 avril 2013 10:00
Réponse

Jonathon Lachlan-Hache

Rang: New Member

Publications: 7

Date d'inscription: 21 mars 2013

Publications Récentes

This is the other symptom of the problem -- the Default Social Office template isn't even found when I try to Open Site Template.
Attachement

Pièces jointes: Template Error.png (50,4k)
Jonathan Lee
RE: Social Office hook not loading?
3 avril 2013 11:05
Réponse

Jonathan Lee

LIFERAY STAFF

Rang: New Member

Publications: 12

Date d'inscription: 16 septembre 2010

Publications Récentes

It seems like there are no pages in your template. I suspect there is an error during installation. Do you have the stacktrace while you are installing Social Office? Can you also verify that?

1) You are using 6.1 CE GA2 Liferay Portal Bundle
2) You set your mysql database to utf8

If you can include some stacktrace from your console, it will help us troubleshoot this faster.

Thanks!
James Falkner
RE: Social Office hook not loading?
3 avril 2013 11:38
Réponse

James Falkner

LIFERAY STAFF

Rang: Liferay Legend

Publications: 1236

Date d'inscription: 17 septembre 2010

Publications Récentes

Jonathan Lee:
It seems like there are no pages in your template. I suspect there is an error during installation. Do you have the stacktrace while you are installing Social Office? Can you also verify that?

1) You are using 6.1 CE GA2 Liferay Portal Bundle
2) You set your mysql database to utf8

If you can include some stacktrace from your console, it will help us troubleshoot this faster.

Thanks!


As Jon mentions, it's important to set your database's encoding to utf8. This is a very common problem with Social Office, because Liferay itself (the base bundle) appears to work when it first starts up, even if you don't set the encoding to utf8, as Liferay doesn't require utf8 for initial startup, but you'll quickly hit this if you use it for any non-trivial length of time, or if you install SO, because SO tickles this particular requirement during installation.

See this thread, but ensure your database is configured with a utf8 encoding. I usually use

1
2create database lportal default character set utf8;
Jonathon Lachlan-Hache
RE: Social Office hook not loading?
3 avril 2013 16:42
Réponse

Jonathon Lachlan-Hache

Rang: New Member

Publications: 7

Date d'inscription: 21 mars 2013

Publications Récentes

Setting the charset to utf8 for the MySQL database appears to have worked! I had seen the thread you referenced, and I knew that I needed it to be UTF8, but I honestly had no idea what that meant. I guess I assumed that utf8 was a standard that my cPanel server was likely adhering to...and cPanel doesn't give options for changing this. And I don't know any SQL so I had to learn how to do this: I created the database in cPanel, then went into my VCN command line and entered:
1mysql
2alter database lportal charset=utf8;

I'm sure there's some other ignoramus like me out there that will find this useful...

Yes it's the 6.1 CE GA2 bundle.

I appreciate the help!!