• Hi, WordPress people!

    I’m trying to upload a picture to my blog and I keep getting this….

    Fatal error: Out of memory (allocated 22282240) (tried to allocate 4194304 bytes) in /home/rewind1/public_html/wp-admin/includes/image.php on line 147

    My website is http://www.stonebroketv.com

    Any help would be grandly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Resize and compress the picture to something under 100 kB with Irfanview for example. Your visitors will appreciate that too; site loads quicker. No reason for 4 mB pics on the internet.

    Thread Starter rewindboy1

    (@rewindboy1)

    ok. thanks.

    Hi,

    Without compressing the image it can be resolve the issue. For that check with these options:

    1) Please check php.ini file in the root/public_html folder of your site. Open php.ini file in text editor and change the values for memory_limit. By default it should see memory_limit = 8M. Try changing it to 12M. if it wil not resolve the problem then try to increase it either 16M or 24M.

    2) If you can’t find the php.ini file, open up the PHP file which requires more memory and add this line just after ini_set(’memory_limit’, ‘12M’); we can increase memory upto 16M or 24M to resolve the issue. But do it try with 12M first.

    3) In last, open the .htaccess file from the root/public_html folder and add this line php_value memory_limit 12M

    http://www.bestwpthemez.com/wordpress/case-study-php-fatal-error-out-of-memory-2360/

    Thanks,

    Shane G.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can’t upload picture’ is closed to new replies.