
(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&action=change&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&action=change&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
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