Wordpress Limit on Length and/or Captions


I was having issues with WordPress page being blank after adding so many characters or captions.  It was easy to replicate time and time again.  I found a lot of people with the same issue and found a few lengthy solutions.  The one I choose was easy and it worked:


/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/** Number of saved revisions; false = 0 */
define('WP_POST_REVISIONS', 10);

/** Trick for long posts */
ini_set('pcre.recursion_limit',20000000);
ini_set('pcre.backtrack_limit',10000000);

This code was added to the wp-config.php file, just after the DB_Collate entry. Once that was added, i refreshed the page it worked instantly after re-saving the page. Found this information on WordPress.org forums. The revision code was optional but will keep your database from growing, set the number of revisions you wish, i used 10.

Advertisements

~ by worldcrossings on November 2, 2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: