Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] error in searching item in template admin [C-Michael83]
#1
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
..:: Luca ::..
» my italian personal blog:
[Image: ub.gif]
#2
Can't reproduce.

   
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#3
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, "#")."#";
	}
#4
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


Forum Jump:


Users browsing this thread: 1 Guest(s)