Jump to the post that solved this thread.
Not Solved [Performance] Mybb Php 8.0
#16
Not Solved
(2021-07-05, 11:35 AM)Matt Wrote: These files are not designed to be run from the command line, MyBB expects to be run via a web server so REQUEST_METHOD would normally be set. What's the rationale for running on the command line?

well it allowed me to correct the isset issue in class_core.php without running from the command line I would have had no clue where to start looking as the browser is just returning the apache default error page

Quote:
#1 /var/www/html/mybb27/install/index.php(28): MyBB->__construct()

took me to the point that the $mybb object was failing which in turn took me to class_core.php with the error
#0 /var/www/html/mybb27/inc/class_core.php(264): errorHandler->error()
 
where I found the issue. adding the adjustments in the previous post I was able to install mybb using php 8.08 as the web browser no longer gave a 500 error and processed as expected

admin cp does not find correct lang string  to fix change 
this block at around line 1930 in admin/modules/config/settings.php

 while($group = $db->fetch_array($query))
                {
                        $group_lang_var = "setting_group_{$group['name']}";
                        if($lang->$group_lang_var)
                        {
                                $group_title = htmlspecialchars_uni($lang->$group_lang_var);
                        }
                        else
                        {
                                $group_title = htmlspecialchars_uni($group['title']);
                        }

                        $group_desc_lang_var = "setting_group_{$group['name']}_desc";
                        if($lang->$group_desc_lang_var)
                        {
                                $group_desc = htmlspecialchars_uni($lang->$group_desc_lang_var);
                        }
                        else
                        {
                                $group_desc = htmlspecialchars_uni($group['description']);
                        }

                        $table->construct_cell("<strong><a href=\"index.php?module=config-settings&amp;action=change&amp;gid={$group['gid']}\">{$group_title}</a></strong> ({$group['settingcount']} {$lang->bbsetti>
                        $table->construct_row();
                }

to 
 while($group = $db->fetch_array($query))
                {
                        $group_lang_var = "setting_group_{$group['name']}";
                        if(isset($lang->$group_lang_var))
                        {
                                $group_title = htmlspecialchars_uni($lang->$group_lang_var);
                        }
                        else
                        {
                                $group_title = htmlspecialchars_uni($group['title']);
                        }

                        $group_desc_lang_var = "setting_group_{$group['name']}_desc";
                        if(isset($lang->$group_desc_lang_var))
                        {
                                $group_desc = htmlspecialchars_uni($lang->$group_desc_lang_var);
                        }
                        else
                        {
                                $group_desc = htmlspecialchars_uni($group['description']);
                        }

                        $table->construct_cell("<strong><a href=\"index.php?module=config-settings&amp;action=change&amp;gid={$group['gid']}\">{$group_title}</a></strong> ({$group['settingcount']} {$lang->bbsetti>
                        $table->construct_row();
                }
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)