• Resolved ghall100

    (@ghall100)


    I’m having trouble installing wordpress on a hosting service.

    I’m getting the message

    ” Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 128 bytes) in **mysite**/wp-includes/pomo/mo.php on line 268”

    when I run wp-admin/install.php

    This is a clean install of the software. There is no content yet, nor any plugins.

    I’ve downloaded wordpress 4.5.2 en_GB off the wordpress.org site, uploaded it to my site via FTP, extracted it (and deleted the zip file that was left).

    I’ve amended wp-config-sample.php, putting in the MySQL database user, password, database name etc, and saved it as wp-config.php

      Based on my attempts at self help using info in previous answers to similar problems, I’ve also changed the following:

    • Added these lines to wp-config.php:
    • define('WP_DEBUG', true);
    • define('WP_MEMORY_LIMIT', '64M');
    • Created a php.ini file in the wp-admin, wp-includes and pomo folders, containing the following single line: memory_limit = 256M;
    • (I’ve also tried that line with a space between the M and the semi-colon, as well as lower values of megabytes)

    That php.ini file seems especially minimal – have I missed something really basic here?

    This seems to have worked for others, but is not working for me – so please could I have some ideas on what to do next, as I’m now stuck.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Dion Hulse

    (@dd32)

    Meta Developer

    Hi @ghall100,

    It sounds like your host severely limits the amount of memory available to PHP, and doesn’t allow for you to easily increase it.

    There’s two main options you can try:
    – Contact your web host and ask about them increasing the available memory for PHP
    or
    – Removing the en_GB translations and setting your locale to en_US, as loading these uses significant memory.

    Removing the translations isn’t an ideal solution, but will at least get you moving if your host is unable to increase the PHP memory limits for you.

    Thread Starter ghall100

    (@ghall100)

    Thanks Dion

    I’ll give those a go

    Graham

    Thread Starter ghall100

    (@ghall100)

    Thanks Dion

    That all worked.

    Going without the GB translations allowed it to install initially.

    Getting the memory for PHP increased also worked. (Contact Form 7 plugin wouldn’t install without that stage)

    Then I hit some unrelated server problems, but I’ll do a separate thread on those.

    Thanks for your help
    Graham

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clean wordpress 4.5.2 install – Fatal error: Allowed memory size’ is closed to new replies.