Solved: 4 Months, 1 Week, 6 Days ago Unable to review search settings
#1
Solved: 4 Months, 1 Week, 6 Days ago
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
Reply
#2
Solved: 4 Months, 1 Week, 6 Days ago
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 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)