MyBB Community Forums

Full Version: PHP 8 warnings in utf8mb4 conversion process
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Clean install with UTF8 coding selected initially.
AdminCP / Tools and Maintenance / System Health / UTF-8 Conversion
Please note that my changes cleared the warnings, but may not be the best solution. I defer to judgment of more experienced coders.

Undefined array key 'table in line 441 of admin/modules/tools/system_health.php
Change
	if($mybb->input['table'] || $mybb->input['do'] == "all")
to
	if(!empty($mybb->input['table']) || $mybb->input['do'] == "all")

Undefined variable '$converting_table' in line 241 of system_health.php
Change
		$table->output($converting_table." {$mybb->input['table']}");
to
		$table->output($lang->convert_table." {$mybb->input['table']}");

Undefined variable '$fulltext_to_create' in line 360 of system_health.php
Change
		if(is_array($fulltext_to_create))
to
		if(!empty($fulltext_to_create))