Forum not activating
Started by: Rui SalgadoRui Salgado
On: 1259258945|%e %b %Y, %H:%M %Z|agohover
Number of posts: 4
rss icon RSS: New posts
Forum not activating
Rui SalgadoRui Salgado 1259258945|%e %b %Y, %H:%M %Z|agohover

I am trying to activate the foruns on a wikidot instalation but it seems that the DB records required to do so are not actually there.

The error is "Call to a member function getForumSettings() on a non-object in ManageSiteForumAction.php on line 46".

Seems that it is looking for a site "template-en" but that does not exist on the sites table. Also the forum_settings and forum_categories tables are empty.

Could you please provide the scripts?

Thank you

Installed from GIT with version of November 5th.

Reply  |  Options
Unfold Forum not activating by Rui SalgadoRui Salgado, 1259258945|%e %b %Y, %H:%M %Z|agohover
Re: Forum not activating
GabrysGabrys 1259259227|%e %b %Y, %H:%M %Z|agohover

See if you have a row with site_id 0 in table site_settings. If not, create it (using default values). It should work then.


Piotr Gabryjeluk, Wikidot Inc.
visit my blog

Reply  |  Options
Unfold Re: Forum not activating by GabrysGabrys, 1259259227|%e %b %Y, %H:%M %Z|agohover
Re: Forum not activating
Rui SalgadoRui Salgado 1259319150|%e %b %Y, %H:%M %Z|agohover

I had to do several inserts:

insert into site values (DEFAULT, 'Forum', null, 'template-en', null, null, null, false, start, true, false);

I couldn't insert the site_id = 0. It created a site_id 111 used below.

insert into site_settings values (111, true, null,null, 314572800, false, 'system:join', 50, 20, true, null, false, false, 10485760, true);

insert into forum_settings values ( 111, null, 'true', 500);

insert into category values (DEFAULT, 111, 'forum', true, 20, false, 'e:;c:;m:;d:;a:;r:;z:;o:', true, 1, null, true, null, null, null, true, true, null, null, null, true, false, false, null);

Then I had to create all the forum pages using the instructions here

I might have put the wrong permissions but it seems to be working for now.

Reply  |  Options
Unfold Re: Forum not activating by Rui SalgadoRui Salgado, 1259319150|%e %b %Y, %H:%M %Z|agohover
Re: Forum not activating
GabrysGabrys 1259325537|%e %b %Y, %H:%M %Z|agohover

Nice job! Sorry for giving giving not-detailed instructions before. I'm glad you figured the rest out! Very helpful, for other users.

Thank you very much.


Piotr Gabryjeluk, Wikidot Inc.
visit my blog

Reply  |  Options
Unfold Re: Forum not activating by GabrysGabrys, 1259325537|%e %b %Y, %H:%M %Z|agohover
New Post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License