Info
- 6 posts
- 4 voices
- Started 2 years ago by hydroweb
- Latest reply from zhivka
- This topic is resolved
Deprecated???
-
- Posted 2 years ago #
XAMPP on local machine, here is one line of several that appear at top of bbpress login page after installation was apparently completed successfully.
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\bbpress\bbpress\bb-settings.php on line 186
and when I try to log in a bunch more error messages. XAMPP works fine with wordpress by the way.
Thanks, Roger
-
- Posted 2 years ago #
Somewhere around line 25 of bb-load.php there should be a line that starts with
error_reporting(. Change it toerror_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);(This has been fixed in the development version, but I don't suggest using it on a live site)
-
- Posted 2 years ago #
Worked great. Thanks for the prompt reply.
Do you mean that you do not recommend using the "development version" on a live site?
Is this version OK for a live site with the fix you identified?
-
- Posted 2 years ago #
I don't suggest using the development version on a live site because it isn't as "tried and true" as the released versions.
The snippet is fine to use on a live site.
-
- Posted 2 years ago #
This is the proper fix for PHP 5.3
In bb-load.php, replace:
error_reporting( E_ALL ^ E_NOTICE );With:
if (!defined('E_DEPRECATED'))
{
define('E_DEPRECATED', 8192);
}
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); -
- Posted 2 years ago #
Thanks ...
-
You must log in to post.