PHP 5.4 allowed memory exhausted - upload error within WordPress

Asked by:
Zhenguo / 28 Points
Time:
2012-05-13 6:04 pm EST
Category:
Website
Hits:
1,285
Hello.When I use WordPress to upload the image file, an error occurs: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2213829656 bytes) in / home/cnmira5/public_html/oldgun/wp-admin/includes/image.php online 229.I'm using the CPANEL adjust the PHP version 5.4 will appear this error.This error does not occur when the exchange PHP5.3.Whether it is the the PHP5.4 memory limit.Thank you!

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

bradm
Staff
1,846 Points
2012-05-14 3:36 pm EST
Hi Zhenguo,

Based upon your description, if something works in php 5.3, and under the same exact settings does not work under php 5.4, it does sound like it is a problem with php 5.4.

Before we begin to investigate this further, I'd first like to review your PHP memory settings to ensure they are appropriate for what it is you're trying to do.

Based upon your error message, it appears that you were trying to use over 2GB of memory when your php setup was only allowing 256MB.

How large is the image that you are trying to upload?
(You can post more information in the comments at the bottom of this page)

Based upon the size of the image that you'll be uploading, we'll want to make sure that your php memory_limit is set appropriately in your php.ini file.

Thanks,
- Brad

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}