WordPress.org

Ready to get started?Download WordPress

Forums

Memory problems :( (5 posts)

  1. payneardo
    Member
    Posted 2 years ago #

    Hi, hope you can help as this is now doing my head in.

    I am trying to upload an image which is about 190K in size and getting an error Fatal error: Allowed memory size of 31457280 bytes exhausted (tried to allocate 12032 bytes)

    I have edited the php file, edited my wp_config file, edited the media.php file and wherever else it says :( if I put it in my .htacces file it crashes my site.

    I have phoned 1 and 1 my hosting provider and they have said I have to put a php.ini in every single folder on my website is this right??

    Please help

    Cheers

    Dave

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    It varies from host to host. If that's what 1&1 say, then it must be so on their servers.

  3. ce_kevinw
    Member
    Posted 2 years ago #

    Dave,

    The php.ini file is not recursive, however if you add this to your .htaccess file:

    suPHP_ConfigPath /home/username/public_html (the path to your root directory)

    That will apply your local php.ini settings to all folders (assuming 1and1 has suPHP on their servers).

    Which php.ini settings are you modifying and what are you modifying it to?

  4. Christophtopherson
    Member
    Posted 2 years ago #

    I dont mean to hostbash, but 1and1 sucks. I use certifiedhosting and they seem to me to have their servers configured pretty well, i see problems like yours and even more ridiculous ones all the time and im happy to say I never have those problems. id switch to another host while you still can

  5. payneardo
    Member
    Posted 2 years ago #

    Cheers for all the message, if I change it in .htaccess file my website stops working but I think I have now solved the problem.

    It seemed to be if the photo was above 1920x1024 resolution it wouldn't upload no matter what physical size of the photo was. Its a bit steange but when I used gimp to size the photo down, it uploaded no problems :)

    Thanks again for all the replies :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.