• Before you send me off to check past posts on this… I’ve read them. I would have to dramatically change my budget to with Hostgator to bump up from 64MB (unless somebody has other knowledge). I would rather know what is causing the problem.

    I have 1350 pages and when I try to add/edit a page, I get this error [Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 40 bytes) in /home/admin/public_html/manausa.com/tallahassee-mls/wp-includes/meta.php on line 197]

    I’ve read all the forum stuff recommending I change php.ini or .htaccess, but I’m limited by Hostgator to 64MB. I’m wondering what is causing the problem (yes deactivated plugins, etc). I think it only happens when it tries to load the 1350 pages in the wp-admin. They are small and simple pages, but that is I think it lies.

    Any clues?

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • hostgator isn’t limiting the php memory last I installed there

    try adding this line to your wp-config.php and see what happens
    define('WP_MEMORY_LIMIT', '96M');

    Are you using pretty permalinks? If so, what custom structure are you using?

    Thread Starter joemanausa

    (@joemanausa)

    Samboll: Hostgator support says they limit memory to 64M and I would have to switch to VPS to get more

    esmi: If pretty permalinks is a plugin, no. I’m just using custom structure /%postname%

    Pretty permalinks = custom permalink structure. Try resetting your custom permalinks back to the default setting. If that works, then try reading Using_Permalinks before setting a custom permalink structure back up again.

    Thread Starter joemanausa

    (@joemanausa)

    If I reset the permalinks, will that mess with my incoming links?

    Unfortunately, yes.

    I fixed this issue by adding the code:
    $wpdb->flush();

    As a hashmap is being built it is somewhat redundant to have the query results cached as well. A limit to the number of lines called might be handy in some cases.

    in meta.php function update_meta_cache() as follows:

    // Get meta info
    	$id_list = join(',', $ids);
    	$cache = array();
    	$meta_list = $wpdb->get_results( $wpdb->prepare("SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list)",
    		$meta_type), ARRAY_A );
            $wpdb->flush();
    	if ( !empty($meta_list) ) {

    Hi,

    Check with these options:

    1) Either rename/remove Plugins folder via FTP or disables all the Plugins from database.

    2. If you have an access of PHP.ini file of the account/server then change the line in PHP.ini where line shows 32M to 128M:
    memory_limit = 128M; Maximum amount of memory a script may consume (64MB)

    3. If you do not have access of PHP.ini file then add this to an .htaccess file of your domain:
    php_value memory_limit 128M

    Thanks,

    Shane G.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error: Allowed memory size of 67108864 bytes exhausted’ is closed to new replies.