Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Error: "The /e modifier is no longer supported" on Upgrade Mybb 1.8.21 and php 7.3
#1
Not Solved
I upgrade mybb 1.8.21 and i got this error.

"SELECT * FROM mybb_attachtypes WHERE enabled=1" 

I lock to install directory and for now there was no problem. Then I made the php version 7.3 as recommended and I got the following error;

   

Warning [2] preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead - Line: 484 - File: inc/class_parser.php PHP 7.3.9 (Linux)
 // Replace the rest
if($this->mycode_cache['standard_count'] > 0)
{
Line 484: $message = preg_replace($this->mycode_cache['standard']['find'], $this->mycode_cache['standard']['replacement'], $message);
}


Warning [2] preg_match(): The /e modifier is no longer supported, use preg_replace_callback instead - Line: 500 - File: inc/class_parser.php PHP 7.3.9 (Linux)



// Replace the nestable mycode's
		if($this->mycode_cache['nestable_count'] > 0)
		{
			foreach($this->mycode_cache['nestable'] as $mycode)
			{
Line 500: while(preg_match($mycode['find'], $message))
				{
					$message = preg_replace($mycode['find'], $mycode['replacement'], $message);
				}
			}
		}


How can I solved this problem?

Note: I don't get any problems when I make php version 5.6.
Reply
#2
Not Solved
Oh, sorry. It might not relate to user-add MyCode.

Do you have any plugin that would affect MyCode parsing, eg. will add another MyCode support?

And make sure you've uploaded and overwritten files from 1.8.21.

I think it should be a problem of user-added MyCode either by hand or by a plugin. Turn to your AdminCP, and follow Configuration > MyCode check all custom MyCode and plugins that might affect MyCode parsing.
Worth a try.
Reply
#3
Not Solved
This user has been denied support. This user has been denied support.
Not solved?
Reply
#4
Not Solved
(09-15-2019, 12:04 PM)noyle Wrote: Oh, sorry. It might not relate to user-add MyCode.

Do you have any plugin that would affect MyCode parsing, eg. will add another MyCode support?

And make sure you've uploaded and overwritten files from 1.8.21.

I think it should be a problem of user-added MyCode either by hand or by a plugin. Turn to your AdminCP, and follow Configuration > MyCode check all custom MyCode and plugins that might affect MyCode parsing.

Thank you Noyle;


I try to deactive all plugins for try this but not solved. And yes, I've uploaded all update files and overwritten.
Reply
#5
Not Solved
(09-15-2019, 12:22 PM)Dralix Wrote:
Thank you Noyle;


I try to deactive all plugins for try this but not solved. And yes, I've uploaded all update files and overwritten.

If so, I've no idea where the problem might be. You may PM me with the URL displaying those warnings and maybe a user credential that can view your custom MyCode settings for investigating. However, I still doubt any plugin that may hijack MyCode parsing.

I've tested a basic MyBB 1.8.21 installation with some custom MyCodes on PHP 7.3 and there's no problem upon MyCode parsing. Also checked the code, currently MyBB doesn't use the /e modifier anymore.
Worth a try.
Reply
#6
Not Solved
(09-15-2019, 01:05 PM)noyle Wrote:
(09-15-2019, 12:22 PM)Dralix Wrote:
Thank you Noyle;


I try to deactive all plugins for try this but not solved. And yes, I've uploaded all update files and overwritten.

If so, I've no idea where the problem might be. You may PM me with the URL displaying those warnings and maybe a user credential that can view your custom MyCode settings for investigating. However, I still doubt any plugin that may hijack MyCode parsing.

I've tested a basic MyBB 1.8.21 installation with some custom MyCodes on PHP 7.3 and there's no problem upon MyCode parsing. Also checked the code, currently MyBB doesn't use the /e modifier anymore.

You try to yourcode plugin? I use to ; Yourcode 2.1.3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)