Recent Topics

New forum error message, but forum working

Started by on Aug 13, 2017 – Contents updated: Aug 14, 2017

Aug 13, 2017 11:24    

6.8.10 Just added a new Forum collection with Bootstrap Forums skin and accepted the default checkboxes and received the following error:

Notice: Trying to get property of non-object in /home/calstock/public_html/inc/users/model/_user.class.php on line 2392
Notice: Trying to get property of non-object in /home/calstock/public_html/inc/users/model/_user.class.php on line 2395

which relates to

	function set_Group( & $Group )
	{
		if( $this->grp_ID !== $Group->ID )
		{
			$this->Group = & $Group;
			$this->set( 'grp_ID', $Group->ID );
			return true;
		}

		return false;
	}

and
MySQL error!
Column 'user_grp_ID' cannot be null(Errno=1048)
Your query: DataObject::dbinsert()

Ignoring that and returning to main site I can access the forum and it appears fine with no demo content ??

It seems to work fine though.

So what is this user_grp_ID that is missing ??

Aug 14, 2017 00:46

We'll check that asap.

Aug 14, 2017 02:47

Hi @amoun,

It looks more like the 'User::set_Group()' function received an empty or null $Group parameter value. Could you verify if the default groups are available?

Aug 14, 2017 03:03

@winskie if the default groups are not available, please gracefully display a message like "Cannot create demo user "xyz" because User Group #w was not found." and consequently gracefully handle demo contents creation (maybe it means all demo contents will be have current user as creator)

This post has 1 feedback awaiting moderation...


Form is loading...

blog engine – This forum is powered by b2evolution CMS, a complete engine for your website.