MyBB Community Forums

Full Version: [resolved]Unable to review search settings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When i try to review search settings : i have a white page

And i have this error
( ! ) Parse error: syntax error, unexpected 'upsetting' (T_STRING) in ./admin/modules/config/settings.php(1540) : eval()'d code on line 2

commenting the parse : it's OK
			else if($type[0] == "php")
			{
				$setting['optionscode'] = substr($setting['optionscode'], 3);
				//eval("\$setting_code = \"".$setting['optionscode']."\";");
			}

I have it on 2 different installation.
one have PHP 7.4.28
Have an issue

i must update with
UPDATE `mybb_settings` SET `optionscode` = 'php\r\n<select name=\\\"upsetting[{$setting[\'name\']}]\\\"><option value=\\\"standard\\\">\".($lang->setting_searchtype_standard?$lang->setting_searchtype_standard:\"Standard\").\"</option>\".($db->supports_fulltext(\"threads\") && $db->supports_fulltext_boolean(\"posts\")?\"<option value=\\\"fulltext\\\"\".($setting[\'value\']==\"fulltext\"?\" selected=\\\"selected\\\"\":\"\").\">\".($lang->setting_searchtype_fulltext?$lang->setting_searchtype_fulltext:\"Full Text\").\"</option>\":\"\").\"</select>\'' WHERE `mybb_settings`.`name` = 'searchtype'; 

Strangely : seems my settings.xml file are not up to date with https://github.com/mybb/mybb/blob/featur...ttings.xml ?