• Hi All.
    I am hosting at Hostgator and recently moved my hosting from a reseller platform to a shared account.

    When I try to update or create a new blog post, I receive the following error.

    Fatal error: Out of memory (allocated 62652416) (tried to allocate 6571071 bytes) in /public_html/wp-includes/wp-db.php on line 785

    The update actually works, but I still get the error.

    This does not happen when I update or create a new page.

    After searching this forum, I renamed my plugs directory to plugins2 and I still get the error.

    My site is pretty simple without that many posts or pages.

    I use a theme from ithemes called Builder.

    Thank you in advanced.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1. Try adding this line to your wp-config.php file:
    define('WP_MEMORY_LIMIT', '64M');
    
    2. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
    
    3. If you don't have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 64M
    
    4. Talk to your host.

    Hello,

    I Tried to fix one of my wordpress installation, using several ways i found in web, but none have the result i expected, so i tried installing some plugins to try resolve the problem:

    Problem:

    1º Main page is gone (Blank Page) !!!
    2º Edit Post is gone (Blank Page) !!!

    Solutions:

    1. Adding line to your wp-config.php file:
    define('WP_MEMORY_LIMIT', '128M');

    Result:
    No Use Host limits to 64 Mb

    2. W3-Total Cache:

    Install Plugin, cache pages to logged User’s, this way you will see post edit;

    Cache main Page;

    3. In you template, in index.php, you may have to alter some code, has example:

    Instead of use all post’s, i will use only the post’s of current month !!

    <?php if (have_posts()) : ?>
    	<?if ( is_home() ) {?>
    	<?	query_posts( $query_string . '&monthnum=' . date( 'n', current_time( 'timestamp' ) ) );?>
            <?	}?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				 <small class="time">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Posted on <?php the_time('D ,d/m/Y') ?></small><small class="author"> by <?php the_author() ?> </small>
    
    				<div class="entry">
    					<?php the_content('Continue reading &raquo;'); ?>
    				</div>
    
    				<p class="postmeta"><span class="tags"><?php the_tags('Tags : ', ', ', '<br />'); ?></span><span class="category"> Categorized under :<?php the_category(', ') ?> </span><span class="edit"> <?php edit_post_link('Edit', '', ''); ?></span>  <span class="comments"><?php comments_popup_link('Leave a comment »', '1 Comment »', '% Comments »'); ?></span><div class="clear"></div></p>
    			</div>
    
    		<?php endwhile; ?>
    <?wp_reset_query();?>

    I Will Publish more, but these are very effective !!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Out of memory (allocated 62652416) (tried to allocate 6571071 bytes’ is closed to new replies.