tags:

views:

152

answers:

3

I am using the latest nightly build WordPress 3.0-beta2-14729 and the Theme TwentyTen. The content is not showing up where I indicated below. But when I go to the edit window, it is all there. Does anyone know what the problem is? The content in the edit box is ~400KB of text.

<div id="post-125" class="post-125 page type-page hentry"> 
<h1 class="entry-title">Post title</h1> 
<div class="entry-content">
// There should be something here
<span class="edit-link"><a class="post-edit-link" href="http://abp.bhc.com/wp-books-beta/aig/wp-admin/post.php?post=125&amp;amp;action=edit" title="Edit Post">Edit</a></span>                  </div><!-- .entry-content --> 
</div><!-- #post-125 --> 

the php code is:

<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
A: 

Are you sure is not still a draft your content? Is it published? Or is it static? I'm not seeing any embedded php code that should be inside entry-content.

dierre
No, the title is there and everything else except the content. I did check.
Arlen Beiler
That is what is in the webpage when it goes to the browser.
Arlen Beiler
put there the template code, mate.
dierre
I put it there now.
Arlen Beiler
A: 

I'd say you're hitting the memory limit/backtrace limit of the Preg Regular expressions on your server.

wpautop and wptexturize can sometimes hit it with larger posts.

Have a look at phpinfo() for pcre.backtrack_limit & pcre.recursion_limit (Report back on their size?)

You may be able to add this to your wp-config.php file:

ini_set('pcre.backtrack_limit', '100000');
ini_set('pcre.recursion_limit', '100000');

And see if that helps? You could try upping the limits even further if it doesnt, just to test it. (Note: Those values are what my default install has set, No idea if they're high enough, too high, or what)

Cheers, Dion

Arlen Beiler
Is that in bytes or kilobytes?
Arlen Beiler
Neither. They're the number of times the regular expression library is able to backtrace, and the number its allowed to recurse, in a extremely simple expression, on a large peice of text, it'll only use very little, when you use a large piece of text, with a complex expression, it can often cause the backtracing to increase as it attempts to match the longer text.
Arlen Beiler
Well, it didn't work, so I added another 0 to each number and then it worked. Thanks Dion. Also, how do I define this in php.ini?
Arlen Beiler
I'm not entirely sure, But according to google, this should do:[Pcre] \newline\ pcre.backtrack_limit=1000000 \newline\ pcre.recursion_limit=1000000 (I added the 0 on there too btw)
Arlen Beiler
For everyone's benefit I copied this from an email conversation on wp-hackers with Dion.
Arlen Beiler
To be specific, it was the Backtrack limit that was set too low.
Arlen Beiler
A: 

There are some stories in the WP forums of post text limits in WP because of server and WP memory limits, where the post title shows but not the post content, but no clear solutions. Try a smaller post ~50k or ~100K and see what happens.

Try to simply increase overall memory for WP by using php_value memory_limit 64Min .htaccess; or this near the top of your wp-config.php file: define('WP_MEMORY_LIMIT', '64M'); or this in your php.ini, if you have access to it: memory_limit = 64M;

songdogtech