• Hi,

    When I want to update WordPress or a pluggin, I always get the following error:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in /var/www/wp/wp-admin/includes/file.php on line 159

    I already post on the french forum. At last, I got the following answer:
    If google has nothing on your issue, It seems that none of us will be able to help you here. Try on the official forum in englesh. That is what I am doing now.

    For your information:
    I did the last update manually (From 4.2 to 4.2.1).
    I have no known issue on the hosting plateform. I host myself the WebSite.
    In PHP.ini, allowed memory = 512Mo

    Here is the result of P3 profiler:

    WordPress Plugin Profile Report
    ===========================================
    Report date: tuesday 5 may 2015
    Theme name: unknown
    Pages browsed: 16
    Avg. load time: 1.3321 sec
    Number of plugins: 12
    Plugin impact: 167.22% of load time
    Avg. plugin time: 2.2274 sec
    Avg. core time: 3.2770 sec
    Avg. theme time: 0.0144 sec
    Avg. mem usage: 28.56 MB
    Avg. ticks: 2,658
    Avg. db queries : 38.25
    Margin of error : -4.1868 sec
    
    Plugin list:
    ===========================================
    P3 (Plugin Performance Profiler) - 1.9103 sec - 85.76%
    Advanced Excerpt - 0.0077 sec - 0.35%
    Akismet - 0.0061 sec - 0.27%
    Auto SyntaxHighlighter - 0.0031 sec - 0.14%
    Ckeditor For WordPress - 0.0082 sec - 0.37%
    Jetpack By WordPress.com - 0.2532 sec - 11.37%
    Relevanssi - 0.0175 sec - 0.79%
    Simple Login Log - 0.0013 sec - 0.06%
    Ssl For Logged In Users - 0.0005 sec - 0.02%
    Syntaxhighlighter Ckeditor Button - 0.0035 sec - 0.15%
    SyntaxHighlighter Evolved - 0.0131 sec - 0.59%
    Wp Mail Smtp - 0.0030 sec - 0.13%

    Regards
    Vandman

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Something must be eating tons of memory. Disable your plugins before you upgrade. Might help.

    Thread Starter vandman

    (@vandman)

    Hi,

    I already desabled all the pluggin to do the update.

    This does not solve the issue.

    Any other idea?

    Regards

    Vandman

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    If disabling your plugins and theme doesn’t solve the issue, then you have a major problem with your hosting services which is likely unfixable. It’s unfathomable that an update with a base core of WordPress could eat up 256M of memory. That’s just not possible.

    Did you *really* disable the plugins first? Because I’m fairly sure that that will actually solve your problem.

    I am having the exact same problem! And Yes I disabled all of my plugins. I have been with WordPress for over 2 years and never had this problem before. I have been able to update all of my plugins while they have been disabled, but I can’t update WordPress. I got an email saying that WordPress has automatically updated my website to 4.1.5 but I was already running 4.2. It’s dated 5/10/2015. If they can update something on their end why can’t I update?

    This is my error message: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 261904 bytes) in D:\Hosting\12674284\html\wp-admin\includes\file.php on line 159

    and this is line 159: $file[‘size’] : filesize( $file[‘tmp_name’] ); // A non-empty file will pass this test. if ( $test_size && ! ( $test_file_size > 0 ) ) {

    There are many people having this issue! Something needs to be done.

    Ok I just found something. I don’t know if I can do anything about it though. What are drop in plugins and can you disable them or do you want to? I have 2 advanced-cache.php and install.php. I would say if I were to bet the advanced-cache.php is the problem.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    You can try renaming those temporarily to see if that fixes your issue. Especially the install.php one, you probably don’t need that file at all after the initial install.

    Did you originally install WordPress through some third-party auto-install system? We don’t recommend using those, for good reasons.

    That didn’t work πŸ™ I think I’ll just try to manually update it.

    Thread Starter vandman

    (@vandman)

    Hi,

    I come back whit this question as I did not solve it.

    Does someone knows why WordPress exhauste the memory at 256MB when I set up the limit in php.ini at 512MB?

    Regards
    Vandman

    I got mine to update but I had to do it manually. I went to https://codex.wordpress.org/Upgrading_WordPress#Manual_Update and used it as a guide because I didn’t want to lose my content info. Hope this helps.

    Thread Starter vandman

    (@vandman)

    Thanks, but I want to fix my issue regarding the amount of memory that wordpress use.

    I can not explane why I can’t go over 256MB when the only memory parameter is in php.ini and is set at 512MB???

    I can not explain as well why wordpress is consuming that much amount of memory???

    Nobody seems to know why?

    Vandman

    Thread Starter vandman

    (@vandman)

    OK, Now I know why there is a limit at 256MB.

    It is implied within WordPress. Look at this post.
    It seems that to be able to use more memory than 256MB, you must set in the wp-config.php file:
    define('WP_MAX_MEMORY_LIMIT', '512M');

    I will try it to do my update.

    Regards
    vandman

    Thread Starter vandman

    (@vandman)

    OK, I have tried, It is simply crazy.
    I set first the max memory limit at 512MB, it did not work. Then I tried with a max memory limit of 1024MB, the resulte was the same.

    Who can help me with this issue?

    vandman

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Update not possible anymore since WP4.1’ is closed to new replies.