Jump to the post that solved this thread.
Not Solved [Performance] Mybb Php 8.0
#14
Not Solved
Just setting up a new copy of mybb using php 8.08
file install/index.php just gives a HTTP error 500
however from the command line it give the following errors, which are the same as in the admin cp from previous posts 
PHP Warning:  Attempt to read property "settings" on null in /var/www/html/mybb27/inc/class_error.php on line 174
PHP Warning:  Trying to access array offset on value of type null in /var/www/html/mybb27/inc/class_error.php on line 174
PHP Fatal error:  Uncaught Error: Attempt to modify property "settings" on null in /var/www/html/mybb27/inc/class_error.php:176
Stack trace:
#0 /var/www/html/mybb27/inc/class_core.php(264): errorHandler->error()
#1 /var/www/html/mybb27/install/index.php(28): MyBB->__construct()
#2 {main}
thrown in /var/www/html/mybb27/inc/class_error.php on line 176


running with php7.4 causes no issues at all, so I am guessing there is an issue there as this is a totally clean install.

UPDATE :-
found one bug in inc/class_core.php line 265 or thereabouts 
 if($_SERVER['REQUEST_METHOD'] == "POST")
                {
                        $this->request_method = "post";
                }
                else if($_SERVER['REQUEST_METHOD'] == "GET")
                {
                        $this->request_method = "get";
                }

change it to
 if(isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == "POST")
                {
                        $this->request_method = "post";
                }
                else if(isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == "GET")
                {
                        $this->request_method = "get";
                }

the error 500 error is gone.
all the other errors appear to stem from plugins not defining variables so plugin coders may have to use a load of isset's or do a re write of their plugins
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er

Reply
Jump to the post that solved this thread.


Messages In This Thread
Mybb Php 8.0 - by feilian - 2021-01-15, 06:27 PM
RE: Mybb Php 8.0 - by Omar G. - 2021-01-15, 06:40 PM
RE: Mybb Php 8.0 - by Gene Steinberg - 2021-06-23, 03:15 PM
RE: Mybb Php 8.0 - by Vilicious - 2021-06-23, 03:32 PM
RE: Mybb Php 8.0 - by Ben - 2021-06-23, 04:04 PM
RE: Mybb Php 8.0 - by Omar G. - 2021-06-23, 07:37 PM
RE: Mybb Php 8.0 - by JimR - 2021-06-27, 11:28 AM
RE: Mybb Php 8.0 - by Devilshakerz - 2021-06-27, 02:54 PM
RE: Mybb Php 8.0 - by JimR - 2021-07-01, 07:47 AM
RE: Mybb Php 8.0 - by Devilshakerz - 2021-07-01, 01:32 PM
RE: Mybb Php 8.0 - by JimR - 2021-07-01, 02:49 PM
RE: Mybb Php 8.0 - by JimR - 2021-07-03, 09:38 AM
RE: Mybb Php 8.0 - by Devilshakerz - 2021-07-02, 07:30 PM
RE: Mybb Php 8.0 - by JimR - 2021-07-05, 07:53 AM
RE: Mybb Php 8.0 - by Matt - 2021-07-05, 11:35 AM
RE: Mybb Php 8.0 - by JimR - 2021-07-05, 12:21 PM
RE: Mybb Php 8.0 - by JimR - 2021-07-14, 08:44 AM
RE: Mybb Php 8.0 - by Devilshakerz - 2021-07-14, 11:35 AM
RE: Mybb Php 8.0 - by Gene Steinberg - 2021-07-19, 05:26 AM
RE: Mybb Php 8.0 - by JimR - 2021-07-19, 07:28 AM
RE: Mybb Php 8.0 - by Crazycat - 2021-07-19, 07:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)