[wp-trac] [WordPress Trac] #58406: Post/Page Content Renders Empty (was: Post page content renders empty)

WordPress Trac noreply at wordpress.org
Thu May 25 12:43:04 UTC 2023


#58406: Post/Page Content Renders Empty
--------------------------+------------------------------
 Reporter:  svgator       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  6.2.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by svgator):

 A bit more detailed description:

 Description
 When page or post content exceeds a given size limit (1,001,318 length),
 preg_split returns false, thus the content renders empty.
 A warning also shows up (in developer mode):
 Warning: count(): Parameter must be an array or an object that implements
 Countable in /var/www/html/wp-includes/formatting.php on line 3444 Notice:
 Trying to access array offset on value of type bool in /var/www/html/wp-
 includes/formatting.php on line 3451
 PHP version: 7.3.19
 Wordpress version: 6.2.2
 in /wp-includes/formatting.php, in function convert_smilies, line 3442
 $textarr = preg_split( '/(<.*>)/U', $text, -1, PREG_SPLIT_DELIM_CAPTURE );
 // Capture the tags as well as in between.
 function convert_smilies in formatting.php file

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58406#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list