Recent Topics

1 May 26, 2015 14:38    

Hi. :)

I think b2evolution is great software and I'd like to try it.
I've just installed a 6.4.3-beta version of b2evolution on my (fresh) XAMPP instalation and... I've got lots of warnings.

First of - "Deprecated: iconv_set_encoding()". I edited that piece of code "inc/_ext/_portable_utf8.php" in line ~1660 and this:

{ // iconv is loaded, set encodings to "UTF-8"
			if(PHP_VERSION_ID < 50600)
			{	
			  iconv_set_encoding( "internal_encoding", "UTF-8" );
			  iconv_set_encoding( "input_encoding", "UTF-8" );
			  iconv_set_encoding( "output_encoding", "UTF-8" );
			}
			else
			{
			  ini_set("default_charset", "UTF-8");
			}

}


works now fine.
But now I've got lots of warns

Deprecated: Non-static method Module::check_perm() should not be called statically, assuming $this from incompatible context in (..)/inc/users/model/_user.class.php on line 2732

and similar about other files too.

What should I do? Should I switch off displaying warns or try to repair all of this? Or maybe this is my fault because I've changed that piece in "_portable_utf8.php"...?

2 May 27, 2015 08:51

@draghan You can try switching error display to off. The dev team is already working hard to address all those warnings, notices, etc, so there is no need for you to try to fix them separately, just keep your site updated to get the latest fixes.

Regards!

3 May 27, 2015 12:36

Thank you very much for your quick reply. :)
If it is, as you say - that you are already working on it, I'm not worried about it and quietly wait for the update. :)
Best regards, have a nice day. :)

4 Jun 14, 2015 23:23

Just upgraded to 6.4.4-beta, I still have "Deprecated: Non-static method Module::check_perm() should not be called statically, assuming $this from incompatible context" errors.
I'm going to switch error display off until next release.

5 Jun 15, 2015 09:02

@rv06 does the notice include a file name and line number? The original notice in this post was fixed in version 6.4.4, so I think you're reporting a new one.

Thanks.

6 Jun 22, 2015 12:55

Niltze, all!

PHP Version => 5.6.10

Trying out 6.4.4-beta and I am getting multiple repeat errors of output below:

Displayed on the blog pages:

Deprecated: Non-static method Module::check_perm() should not be called statically, assuming $this from incompatible context in /b2evolution/inc/users/model/_user.class.php on line 2732

Deprecated: Non-static method Module::check_perm() should not be called statically, assuming $this from incompatible context in /b2evolution/inc/users/model/_group.class.php on line 364

Deprecated: Non-static method FileRoot::gen_ID() should not be called statically, assuming $this from incompatible context in /b2evolution/inc/files/model/_filerootcache.class.php on line 136

Logged to a file for that purpose:

[22-Jun-2015 03:30:32 America/Los_Angeles] PHP Deprecated: Non-static method Module::check_perm() should not be called statically, assuming $this from incompatible context in /b2evolution/inc/users/model/_user.class.php on line 2732

[22-Jun-2015 03:30:32 America/Los_Angeles] PHP Deprecated: Non-static method Module::check_perm() should not be called statically, assuming $this from incompatible context in /b2evolution/inc/users/model/_group.class.php on line 364

[22-Jun-2015 04:04:03 America/Los_Angeles] PHP Deprecated: Non-static method FileRoot::gen_ID() should not be called statically, assuming $this from incompatible context in /b2evolution/inc/files/model/_filerootcache.class.php on line 136

Best Regards.

9 Jun 23, 2015 10:49

Appreciated, @fplanque!

As I was perusing the skins -- and found out "glossyblue" is not included -- I saw a couple more error directives:

[23-Jun-2015 01:07:39 America/Los_Angeles] PHP Deprecated: Non-static method Skin::disp_skinshot() should not be called statically, assuming $this from incompatible context in /b2evolution/inc/skins/views/_coll_skin.view.php on line 99

[23-Jun-2015 01:08:06 America/Los_Angeles] PHP Deprecated: Non-static method Skin::disp_skinshot() should not be called statically, assuming $this from incompatible context in /b2evolution/inc/skins/views/_skin_list_available.view.php on line 146

Best Regards.

10 Jun 23, 2015 21:12

Oops, sorry @mgsolipa, I hadn't seen my message had been answered.

I applied your patches @fplanque, works better now!
Thanks!


Form is loading...