MyBB Community Forums
[F] error in searching item in template admin [C-Michael83] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.2 (https://community.mybb.com/forum-100.html)
+------ Thread: [F] error in searching item in template admin [C-Michael83] (/thread-40447.html)



[F] error in searching item in template admin [C-Michael83] - luke83 - 2008-11-13

admin cp->templates->search template

try to find agreement_1 leaving blank the replace input and you will have:
Warning [2] Missing argument 2 for build_str_ireplace() - Line: 99 - File: inc/functions_compat.php PHP 4.4.7 (Linux)
File 	Line 	Function
[PHP] 	  	errorhandler->error
/inc/functions_compat.php 	99 	build_str_ireplace
/inc/functions_compat.php 	112 	build_str_ireplace
/admin/modules/style/templates.php 	577 	str_ireplace
/admin/index.php 	378 	require
Warning [2] Missing argument 2 for build_str_ireplace() - Line: 99 - File: inc/functions_compat.php PHP 4.4.7 (Linux)
File 	Line 	Function
[PHP] 	  	errorhandler->error
/inc/functions_compat.php 	99 	build_str_ireplace
/inc/functions_compat.php 	112 	build_str_ireplace
/admin/modules/style/templates.php 	577 	str_ireplace
/admin/index.php 	378 	require

mybb version: 1.4.3
php version: 5.2.4
os: ubuntu 5.3


RE: error in searching item in template admin - Matt - 2008-11-13

Can't reproduce.

   


RE: error in searching item in template admin - Ryan Gordon - 2008-11-13

This is only if you have PHP 4

in inc/functions_compat.php find

	function build_str_ireplace(&$pattern, $k)
	{
		$pattern = "#".preg_quote($pattern, "#")."#";
	}

and replace with

	function build_str_ireplace(&$pattern)
	{
		$pattern = "#".preg_quote($pattern, "#")."#";
	}



[F] error in searching item in template admin - Ryan Gordon - 2008-11-16

Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group