xoops forums

Cifug

Quite a regular
Posted on: 4/18 6:14
Cifug
Cifug (Show more)
Quite a regular
Posts: 205
Since: 2007/12/13
#1

NewBB 4.33 RC 13 Problem

XOOPS Version XOOPS 2.5.8
PHP Version 5.6.30
mySQL Version 5.6.35
NewBB 4.33 RC 13

When I post I get a blank page with this error:
Fatal errorCall to a member function getPermission() on null in /modules/newbb/class/post.php on line 634


Debug says this:
NoticeUndefined variabletopicHandler in file /modules/newbb/class/post.php line 634


I have set and double checked the permissions. Should I be using an earlier version?

Cheers,
Marty

Bleekk

Theme Designer
Posted on: 4/18 6:33
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 862
Since: 2002/12/14
#2

Re: NewBB 4.33 RC 13 Problem

Have you tried the final version from mamba
https://github.com/mambax7/newbb

Cifug

Quite a regular
Posted on: 4/18 6:47
Cifug
Cifug (Show more)
Quite a regular
Posts: 205
Since: 2007/12/13
#3

Re: NewBB 4.33 RC 13 Problem

That is the one I used

trabis

Core Developer
Posted on: 4/18 8:51
trabis
trabis (Show more)
Core Developer
Posts: 2261
Since: 2006/9/1 1
#4

Re: NewBB 4.33 RC 13 Problem

Try adding the line:
$topicHandler xoops_getModuleHandler('topic''newbb');

before
$thread_action = array();
 
// irmtfan add pdf permission


in class class/post.php around line 623.

Not tested.

Cifug

Quite a regular
Posted on: 4/19 23:09
Cifug
Cifug (Show more)
Quite a regular
Posts: 205
Since: 2007/12/13
#5

Re: NewBB 4.33 RC 13 Problem

My apologies, I had a problem with some apache extensions.

Everything appears to be fine

Again, I apologise for any confusion I may have caused.

Cheers,
Marty

Cifug

Quite a regular
Posted on: 4/19 23:44
Cifug
Cifug (Show more)
Quite a regular
Posts: 205
Since: 2007/12/13
#6

Re: NewBB 4.33 RC 13 Problem

I do have these errors in debug on the forum index page though.

Notice: Undefined offset: 1 in file /modules/newbb/class/forum.php line 805
Notice: Undefined offset: 2 in file /modules/newbb/class/forum.php line 805
Notice: Undefined offset: 3 in file /modules/newbb/class/forum.php line 805
Notice: Undefined offset: 4 in file /modules/newbb/class/forum.php line 805
Notice: Undefined offset: 5 in file /modules/newbb/class/forum.php line 805
Notice: Undefined offset: 6 in file /modules/newbb/class/forum.php line 805

Are these notices for developers and no need to worry?

Marty

Cifug

Quite a regular
Posted on: 4/20 3:20
Cifug
Cifug (Show more)
Quite a regular
Posts: 205
Since: 2007/12/13
#7

Re: NewBB 4.33 RC 13 Problem

I created a test user. This test user can reply to topics but cannot start new topic. I have set permissions so that registered users can start a new topic but I cannot. As admin user I can start a new topic no problems.

Marty

Bleekk

Theme Designer
Posted on: 4/20 3:51
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 862
Since: 2002/12/14
#8

Re: NewBB 4.33 RC 13 Problem

We are using this version here on xoops.org and everything works fine.
What a error do you get?

Cifug

Quite a regular
Posted on: 4/20 5:36
Cifug
Cifug (Show more)
Quite a regular
Posts: 205
Since: 2007/12/13
#9

Re: NewBB 4.33 RC 13 Problem

I'm not getting any errors, Just the "New Topic" button is replaced with the "Register" button.

Maybe it's a template problem...

Where can I get a copy of the templates used here at Xoops.org?

Bleekk

Theme Designer
Posted on: 4/20 7:14
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 862
Since: 2002/12/14
#10

Re: NewBB 4.33 RC 13 Problem

Oh it is a template problem.
Now I can remember that I changed it for xoops.org

I will check the templates later and tell you the changes you need to do