• I found two problems posting big text with more 120k lines.

    The first is in wp_insert_post ( wp-includes/post.php ).

    The php function

    extract($postarr, EXTR_SKIP);

    lost the content of $postarr[‘content’] so the variable $post_content is empty. ( at the moment i fixed this problem forcing the value )

    This cause an empty column in mysql.

    The second is in wpautop ( wp-includes/formatting.php ).

    $pee = preg_replace_callback(‘!(<pre[^>]*>)(.*?)!is’, ‘clean_pre’, $pee );

    There is not any check on the error for this step. So is a nightmare understand why the post is empty.

    Thanks

The topic ‘My problems posting big text’ is closed to new replies.