About this topic

  • Posted by rodb 1 year ago. There are 2 posts. The latest reply is from byron.
  • This topic is not resolved
  1. Hi,
    I'm having trouble uploading 'large' images (anything over about 750kb). After clicking "Submit" it just hangs. I've looked at many forum posts here and tried stuff suggested but still have no solution. I'm pretty sure it's memory-related.
    My question is this: is it possible to set php memory limit like this ...
    ini_set('memory_limit','256M');
    ... and do this somewhere in the gallery plugin code so that it takes effect for image uploads?
    My web hoster allows me to put a php.ini file (with memory_limit = 256M) in the root folder of my site to increase memory, but I've found I also need to copy this to the wp-admin folder for it to take effect for admin pages. This makes me wonder if it's not reaching the plugin processes. I've asked the web hoster to increase the php limit globally but I don't know if they'll do that.

    thanks, Rod

  2. Hi Rod,

    That does sound like a memory issue. Normally, the ini_set doesn't work with Web Hosts. They lock it down for obvious reasons.

    It does have to be set in the php ini file, but I am not really up on how that is done or what it would take to make it work.

    PhotoSmash uses the standard WP functions (and therefore the admin files containing them) to perform resizing. Resizing does take a ton of memory. Hopefully your web host can get you set up properly.

    Byron

RSS feed for this topic