Fixed PHP crash or blank post when editing large post

Mike

XenForo developer
Staff member
#1
This was improved in 1.2.1 but it still comes up in some scenarios. Please try this fix.

In library/XenForo/BbCode/Formatter/Wysiwyg.php, change:
Code:
'#<(xf' . $i . ':([a-z0-9-]+))([^>]*)(?<!/)>((?:(?>[^<]*?)|<)*)</\\1>#siU',
to:
Code:
'#<(xf' . $i . ':((?>[a-z0-9-]+?)))([^>]*)(?<!/)>((?:(?>[^<]*?)|<)*)</\\1>#siU',
 

Brad L

Well-known member
#2
@Mike
A few members using older devices have reported that the edit button does not work. After doing some research here I discovered that the problem was related to bbcode. The same members are able to edit simple posts without bbcode. I was excited to find this fix but the line above no longer exists. I'm using 1.4.12.
 

Mike

XenForo developer
Staff member
#3
This was a server side issue, so it wouldn't be device specific. You should post more details in the support forum.
 
Top