• Resolved tbrym

    (@tbrym)


    I know this is a topic that has been hashed out many times. I have read almost every post going back as far as 3yrs. To be honest I’m as dumb as a bag of laymens terms when it comes to this stuff. I found my php.ini file and increased the memory limit from 128M to 256M. Nothing.

    Question: Am I to be making this change locally or from my WP dashboard? I hope it’s local because I can’t get to my dashboard.

    The website is http://www.theprimaryline.com

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /data/24/2/135/109/2950761/user/3270787/htdocs/Theprimaryline/wp-content/plugins/wp-e-commerce/wpsc-merchants/chronopay.php on line 278

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try to add it to your wp-config.php file in the WordPress install root.

    Like: define('WP_MEMORY_LIMIT', '256M'); ( placing it on top after the <?php tag)

    The reason for this, is that i have seen sometimes that changes to the PHP.INI files for some reason does not kicks in (one time you could edit the PHP.ini file, but when talking to the hosting support they said that i was to use the wp-config way, and then it did actually work. The PHP.ini files didn’t do anything. The host users did not have access to the ”real” PHP.ini file).

    I’m not an expert on this. But try.

    Thread Starter tbrym

    (@tbrym)

    Nope, still nothing. Thanks for the help though.

    In my PHP.ini i have:

    max_execution_time = 30     ; Maximum execution time of each script, in seconds
    max_input_time = 60	; Maximum amount of time each script may spend parsing request data
    memory_limit = 512M      ; Maximum amount of memory a script may consume

    After changing this i needed to restart the server. I don’t know how it works on shared hosting.

    Or another option. Add php_value memory_limit 256M to you .htaccess file. Else (if your are on shared hosting) you may need to contact your host.

    Also you can test with creating a empty text file and add: <?php phpinfo(); ?>
    Save as info.php and upload to your server (example: to your web root so the URL is http://www.yourdomain.com/info.php)

    There you could see how much memory that is used by PHP. Just for diagnostics.

    Thread Starter tbrym

    (@tbrym)

    I ended up calling my host and they increased the memory for me.

    Thanks for the help Anderton. It’s refreshing when someone offers clear solutions, even if they don’t work.

    Thread Starter tbrym

    (@tbrym)

    Issue resolved

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