• I’ve ploughed the FAQs and forum and tried everything. I will try to cover everything here!

    I have three blogs sat on one hosted server (via 1&1). One’s a very old version of WP and aside from being covered in cobwebs works fine. The other two are v2.8.4 and both exhibit the same problem

    As of a week or so back, I receive the following error when I upload images from my PC to the blog. The “loading” bar goes fully to 100%, the system pauses for maybe 45 seconds and then:

    Fatal error: Out of memory (allocated 32505856) (tried to allocate 4096 bytes) in /homepages/8/d151455252/htdocs/Moshtour/wordpress/wp-includes/media.php on line 345

    I have added the following lines (one at a time and both at once) to my wp-config.php:

    ini_set("memory_limit","128M");
    define('WP_MEMORY_LIMIT', '128MB');

    I tried adding the suggested line to the .htaccess file but then receives “Error 500” when accessing the web sites. I assume this is a security restriction by my ISP and fair enough.

    I don’t have access to my php.ini file, so contacted my site hosts. They told me to upload a fresh one which would supersede the existing one. I did this, including the line:

    memory_limit = 256M

    I’ve checked that this ini file is being picked up and it definitely is. But it still doesn’t fix the error – I’m still running out of memory after the 32M (specifically 32505856B) point.

    I finally disabled all plug-ins. This fixed it. Next step was to re-enable them. I got as far as three (the third being WordPress.Com Stat) before the error reappeared. I’ve tried a few other combinations and there is no single plug-in that’s causing the issue.

    I have to wonder, though, despite every ini and cfg file telling the system to ramp up or 128M or 256M why my WP is collapsing as it can’t find any space after 32M?

    Pretty please, anyone? It’s such a pain not being able to upload photos to a travel blog!

    Thanks

Viewing 2 replies - 16 through 17 (of 17 total)
  • @ philerb- I made a website and had to abandon it (and opt for wordpress) after a year of …because the website builder provided by 1and1 was locking up, to the extent that I had to delete 5 pages and reorder things I don’t know how many times–and now I think that I might know why! I don’t know whether to cry more or be happy about this…. Never once was I given this information in the excruciating amount of tech ‘help’ and website ‘fixes’ that I received.

    Oh…my…gosh.

    I have been looking…and looking…and looking for an answer to this problem.

    philerb, your comment was really informative. But the limit for 1and1.com at the site you listed (https://faq.1and1.com/scripting_languages_supported/php/9.html) is actually only 30MB, not 40! I’m not sure if they’ve gone down, or what. I’ve tried cutting my xml into up to 15 pieces (and it was only 1mb to start), but I keep getting fatal errors like this one:

    Fatal error: Out of memory (allocated 32243712) (tried to allocate 12288 bytes) in /homepages/26/d329539586/htdocs/wp-admin/includes/image.php on line 162.

    I’ve successfully changed from the 1and1.com default PHP v.4 to v.5. I’ve been able to import about 1/2 of my posts from my wordpress.com site. But I can’t get the rest to load, and 1and1.com tech support was unwilling to increase the 30MB PHP limit and were generally unhelpful.

    I’ve now also disabled all plug-ins, hoping that might help. It hasn’t.

    So…anyone able to recommend a next step? I’ve been basically trying to teach myself php all day, have made some progress, but this is tripping me up.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Out of Memory when uploading images’ is closed to new replies.